summaryrefslogtreecommitdiffstats
path: root/mongo-c-driver.spec
diff options
context:
space:
mode:
Diffstat (limited to 'mongo-c-driver.spec')
-rw-r--r--mongo-c-driver.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/mongo-c-driver.spec b/mongo-c-driver.spec
index a9673ad..2e6f3bf 100644
--- a/mongo-c-driver.spec
+++ b/mongo-c-driver.spec
@@ -23,13 +23,17 @@
Name: mongo-c-driver
Summary: Client library written in C for MongoDB
Version: 1.3.5
-Release: 1%{?dist}
+Release: 2%{?dist}
License: ASL 2.0
Group: System Environment/Libraries
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/releases/download/%{version}%{?prever:-%{prever}}/%{gh_project}-%{version}%{?prever:-%{prever}}.tar.gz
+# Enforce system crypto policies
+# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
+Patch0: %{name}-crypto.patch
+
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(libbson-1.0)
%if 0%{?fedora} > 21 || 0%{?rhel} > 6
@@ -80,6 +84,8 @@ Documentation: http://api.mongodb.org/c/%{version}/
%prep
%setup -q -n %{gh_project}-%{version}%{?prever:-%{prever}}
+%patch0 -p1 -b .cryptopolicy
+
rm -r src/libbson
# Ignore check for libbson version = libmongoc version
@@ -171,6 +177,9 @@ exit $ret
%changelog
+* Mon May 16 2016 Remi Collet <remi@fedoraproject.org> - 1.3.5-2
+- add patch to enforce system crypto policies
+
* Thu Mar 31 2016 Remi Collet <remi@fedoraproject.org> - 1.3.5-1
- update to 1.3.5
- use --disable-automatic-init-and-cleanup build option