[packages/mongo-c-driver] package examples and NEWS
glen
glen at pld-linux.org
Mon Sep 24 21:43:25 CEST 2018
commit 79d243fb55f31e7d8b293a752d61eff8082fd9c2
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Sep 24 22:43:15 2018 +0300
package examples and NEWS
mongo-c-driver.spec | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/mongo-c-driver.spec b/mongo-c-driver.spec
index 0486bc5..c59d529 100644
--- a/mongo-c-driver.spec
+++ b/mongo-c-driver.spec
@@ -131,6 +131,12 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C cmake-build install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/libmongoc-%{version}
+cp -a src/libmongoc/examples/* $RPM_BUILD_ROOT%{_examplesdir}/libmongoc-%{version}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/libbson-%{version}
+cp -a src/libbson/examples/* $RPM_BUILD_ROOT%{_examplesdir}/libbson-%{version}
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -152,6 +158,7 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
+%doc NEWS
%{_includedir}/libmongoc-%{libver}
%{_libdir}/libmongoc-%{libver}.so
%{_pkgconfigdir}/libmongoc-*.pc
@@ -159,6 +166,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with doc}
%{_mandir}/man3/mongoc*
%endif
+%{_examplesdir}/libmongoc-%{version}
%files -n libbson
%defattr(644,root,root,755)
@@ -168,7 +176,9 @@ rm -rf $RPM_BUILD_ROOT
%files -n libbson-devel
%defattr(644,root,root,755)
+%doc src/libbson/NEWS
%{_includedir}/libbson-%{libver}
%{_libdir}/libbson-%{libver}.so
%{_libdir}/cmake/libbson-%{libver}
%{_pkgconfigdir}/libbson-%{libver}.pc
+%{_examplesdir}/libbson-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mongo-c-driver.git/commitdiff/79d243fb55f31e7d8b293a752d61eff8082fd9c2
More information about the pld-cvs-commit
mailing list