LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File project.diff of Package mongo-c-driver (Project home:mnhauke:nextepc)

--- mongo-c-driver.changes.orig
+++ mongo-c-driver.changes
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Mon Apr 29 19:13:44 UTC 2019 - Martin Hauke <mardnh@gmx.de>
+
+- Only build manpages on newer distributions since it requires
+  Sphinx >= 1.6
+
+-------------------------------------------------------------------
 Wed Feb 27 09:30:35 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
 
 - Small packaging cleanup
--- mongo-c-driver.spec.orig
+++ mongo-c-driver.spec
@@ -21,6 +21,11 @@
 %define DriverVersion 1.14.0
 %define BsonName      libbson-1_0-0
 %define BsonVersion   %{DriverVersion}
+
+%if 0%{?suse_version} >= 1500
+%bcond_without manpages
+%endif
+
 Name:           %{MongocName}
 Version:        %{DriverVersion}
 Release:        0
@@ -34,7 +39,9 @@ BuildRequires:  libtool
 BuildRequires:  openssl-devel
 BuildRequires:  pkgconfig
 BuildRequires:  libicu-devel
+%if 0%{with manpages}
 BuildRequires:  python-Sphinx
+%endif
 BuildRequires:  python-xml
 BuildRequires:  snappy-devel
 BuildRequires:  pkgconfig(libsasl2)
@@ -87,7 +94,9 @@ developing applications that use %{BsonN
   -DENABLE_BSON=ON \
   -DENABLE_STATIC=OFF \
   -DENABLE_TESTS=OFF \
+%if 0%{with manpages}
   -DENABLE_MAN_PAGES=ON \
+%endif
   -DENABLE_ZLIB=SYSTEM \
   -Wno-dev
 %make_jobs
@@ -120,7 +129,9 @@ rm -f %{buildroot}/%{_datadir}/mongo-c-d
 %dir %{_libdir}/cmake
 %{_libdir}/cmake/libmongoc-1.0
 %{_bindir}/mongoc-stat
+%if 0%{with manpages}
 %{_mandir}/man3/mongoc_*
+%endif
 
 %files -n %{BsonName}-devel
 %dir %{_includedir}/libbson-1.0
@@ -131,6 +142,8 @@ rm -f %{buildroot}/%{_datadir}/mongo-c-d
 %{_libdir}/pkgconfig/libbson-1.0.pc
 %dir %{_libdir}/cmake
 %{_libdir}/cmake/libbson-1.0
+%if 0%{with manpages}
 %{_mandir}/man3/bson_*
+%endif
 
 %changelog