Skip to content

Commit e87cc77

Browse files
committed
CDRIVER-3957 vendor Fedora RPM spec file
1 parent 416faa3 commit e87cc77

File tree

3 files changed

+586
-14
lines changed

3 files changed

+586
-14
lines changed

.evergreen/build_snapshot_rpm.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ for arg in "$@"; do
3232
echo " current repository."
3333
echo ""
3434
echo " This script must be called from the base directory of the repository, and"
35-
echo " requires utilites from these packages: rpm-build, mock, curl"
35+
echo " requires utilities from these packages: rpm-build, mock"
3636
echo ""
3737
exit
3838
fi
3939
done
4040

4141
package=mongo-c-driver
4242
spec_file=../mongo-c-driver.spec
43-
spec_url=https://src.fedoraproject.org/rpms/mongo-c-driver/raw/rawhide/f/mongo-c-driver.spec
4443
config=${MOCK_TARGET_CONFIG:=fedora-34-x86_64}
4544

4645
if [ ! -x /usr/bin/rpmbuild -o ! -x /usr/bin/rpmspec ]; then
@@ -58,20 +57,11 @@ if [ ! -x /usr/bin/mock ]; then
5857
exit 1
5958
fi
6059

61-
if [ ! -x /usr/bin/curl ]; then
62-
echo "Missing curl"
63-
exit 1
64-
fi
65-
6660
if [ -f "${spec_file}" ]; then
6761
echo "Found old spec file (${spec_file})...removing"
6862
rm -f ${spec_file}
6963
fi
70-
/usr/bin/curl -f -L --retry 5 -o "${spec_file}" "${spec_url}"
71-
if [ "${?}" != "0" -o ! -f "${spec_file}" ]; then
72-
echo "Could not retrieve spec file from URL: ${spec_url}"
73-
exit 1
74-
fi
64+
cp "$(pwd)/.evergreen/${package}.spec" ..
7565
if [ -f .evergreen/spec.patch ]; then
7666
patch -d .. -p0 -i $(pwd)/.evergreen/spec.patch
7767
fi

0 commit comments

Comments
 (0)