[packages/libmongocrypt] New package, libmongocrypt-1.0.4

glen glen at pld-linux.org
Mon Aug 3 12:14:25 CEST 2020


commit 31d4ce3333ef1579e2ce2418220d7dc715863a45
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Aug 3 13:10:32 2020 +0300

    New package, libmongocrypt-1.0.4
    
    Based on Fedora package, ad3befa

 README.md          |  3 ++
 libmongocrypt.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)
---
diff --git a/libmongocrypt.spec b/libmongocrypt.spec
new file mode 100644
index 0000000..86ed093
--- /dev/null
+++ b/libmongocrypt.spec
@@ -0,0 +1,89 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# do not build and package API docs
+
+Summary:	The companion C library for client side encryption in drivers
+Name:		libmongocrypt
+Version:	1.0.4
+Release:	1
+# see kms-message/THIRD_PARTY_NOTICES
+# kms-message/src/kms_b64.c is ISC
+# everything else is ASL 2.0
+License:	ASL 2.0 and ISC
+Group:		Libraries
+Source0:	https://github.com/mongodb/libmongocrypt/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	e8939c3ed5c8b797dd8d4ea1290f7652
+URL:		https://github.com/mongodb/libmongocrypt
+BuildRequires:	cmake >= 3.5
+%{?with_apidocs:BuildRequires:	doxygen}
+BuildRequires:	libbson-devel >= 1.11
+BuildRequires:	libstdc++-devel
+BuildRequires:	openssl-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The companion C library for client side encryption in drivers.
+
+%package devel
+Summary:	Header files and development libraries for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+This package contains the header files and development libraries for
+%{name}.
+
+%prep
+%setup -q
+echo "%{version}" > VERSION_CURRENT
+
+%build
+%cmake \
+	-DCMAKE_C_FLAGS="%{optflags} -fPIC" \
+	-DENABLE_SHARED_BSON:BOOL=ON \
+	-DENABLE_STATIC:BOOL=OFF \
+	.
+
+%{__make}
+
+%if %{with tests}
+%{__make} test
+%endif
+
+%if %{with apidocs}
+doxygen doc/Doxygen
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE
+%ghost %{_libdir}/libmongocrypt.so.0
+%attr(755,root,root) %{_libdir}/libmongocrypt.so.*.*.*
+%ghost %{_libdir}/libkms_message.so.0
+%attr(755,root,root) %{_libdir}/libkms_message.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc *.md
+%if %{with apidocs}
+%doc doc/html
+%endif
+%{_libdir}/libkms_message.so
+%{_libdir}/libmongocrypt.so
+%{_includedir}/kms_message
+%{_includedir}/mongocrypt
+%{_libdir}/cmake/kms_message
+%{_libdir}/cmake/mongocrypt
+%{_pkgconfigdir}/libkms_message.pc
+%{_pkgconfigdir}/libmongocrypt.pc
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..0c864a6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# libmongocrypt
+
+The libmongocrypt package
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmongocrypt.git/commitdiff/31d4ce3333ef1579e2ce2418220d7dc715863a45



More information about the pld-cvs-commit mailing list