From 9570f942b441688dc96f1daeefe8eb26aebe02d4a44cb4c9ad3e5b10c3aeea72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 30 Oct 2015 14:46:00 +0000 Subject: [PATCH 1/3] - Add doxygen at build time to add the development documentation. - Disable rpath-install and silent-rules while configure. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=80 --- ldb.changes | 6 ++++++ ldb.spec | 30 +++++++++++++++++++++++------- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/ldb.changes b/ldb.changes index 7e94d82..2a21ea6 100644 --- a/ldb.changes +++ b/ldb.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 30 13:15:15 UTC 2015 - lmuelle@suse.com + +- Add doxygen at build time to add the development documentation. +- Disable rpath-install and silent-rules while configure. + ------------------------------------------------------------------- Thu Oct 22 20:52:14 UTC 2015 - lmuelle@suse.com diff --git a/ldb.spec b/ldb.spec index 8f98835..a4905a1 100644 --- a/ldb.spec +++ b/ldb.spec @@ -27,6 +27,7 @@ Name: ldb BuildRequires: docbook-xsl-stylesheets +BuildRequires: doxygen #!BuildIgnore: libtalloc BuildRequires: libtalloc-devel >= %{talloc_version} BuildRequires: libtdb-devel >= %{tdb_version} @@ -141,6 +142,8 @@ CONFIGURE_OPTIONS="\ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --disable-rpath \ + --disable-rpath-install \ + --disable-silent-rules \ --with-modulesdir=%{_libdir} \ --bundled-libraries=NONE \ --builtin-libraries=replace \ @@ -148,6 +151,9 @@ CONFIGURE_OPTIONS="\ ./configure ${CONFIGURE_OPTIONS} %{__make} %{build_make_smp_mflags} \ all +doxygen Doxyfile +# remove man page with bogus full build dir in path +rm -f apidocs/man/man3/_*_ldb-%{ldb_version}_include_.3 %check # make test doesn't work with --disable-rpath @@ -156,6 +162,8 @@ CONFIGURE_OPTIONS="\ %install DESTDIR=${RPM_BUILD_ROOT} make install +cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} + %post -n %{libldb_name} -p /sbin/ldconfig %postun -n %{libldb_name} -p /sbin/ldconfig @@ -187,6 +195,11 @@ DESTDIR=${RPM_BUILD_ROOT} make install %{_libdir}/libldb.so %dir %{_libdir}/ldb %{_libdir}/pkgconfig/ldb.pc +%{_mandir}/man3/ldb*.3.* +%if 0%{?suse_version} > 1110 || 0%{?fedora_version} > 0 || 0%{?centos_version} > 599 || 0%{?rhel_version} > 599 +%if 0%{?suse_version} != 1110 +%{_mandir}/man3/ldif*.3.* +%endif %files -n ldb-tools %defattr(-,root,root) @@ -197,13 +210,12 @@ DESTDIR=${RPM_BUILD_ROOT} make install %{_bindir}/ldbrename %{_bindir}/ldbsearch %{_libdir}/ldb/libldb-cmdline.so -%{_mandir}/man1/ldbadd.1.gz -%{_mandir}/man1/ldbdel.1.gz -%{_mandir}/man1/ldbedit.1.gz -%{_mandir}/man1/ldbmodify.1.gz -%{_mandir}/man1/ldbrename.1.gz -%{_mandir}/man1/ldbsearch.1.gz -%{_mandir}/man3/ldb.3.gz +%{_mandir}/man1/ldbadd.1.* +%{_mandir}/man1/ldbdel.1.* +%{_mandir}/man1/ldbedit.1.* +%{_mandir}/man1/ldbmodify.1.* +%{_mandir}/man1/ldbrename.1.* +%{_mandir}/man1/ldbsearch.1.* %files -n python-ldb %defattr(-,root,root,-) @@ -215,5 +227,9 @@ DESTDIR=${RPM_BUILD_ROOT} make install %{_includedir}/pyldb.h %{_libdir}/libpyldb-util.so %{_libdir}/pkgconfig/pyldb-util.pc +%if 0%{?suse_version} > 1110 || 0%{?fedora_version} > 0 || 0%{?centos_version} > 599 || 0%{?rhel_version} > 599 +%if 0%{?suse_version} != 1110 +%{_mandir}/man3/PyLdb*.3.* +%endif %changelog From 145847dff29111f247d6e0c6ce7bb6147a13e302139cc0dd037947c585b7ff84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 30 Oct 2015 14:52:02 +0000 Subject: [PATCH 2/3] Document the API doc installation OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=81 --- ldb.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ldb.spec b/ldb.spec index a4905a1..aca1eeb 100644 --- a/ldb.spec +++ b/ldb.spec @@ -162,6 +162,7 @@ rm -f apidocs/man/man3/_*_ldb-%{ldb_version}_include_.3 %install DESTDIR=${RPM_BUILD_ROOT} make install +# Install API documentation cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} %post -n %{libldb_name} -p /sbin/ldconfig From 0cc340c0a821a4f0856dc62bca6ea8e5637d121e78211a0ee94c420c6e36df00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 30 Oct 2015 15:30:43 +0000 Subject: [PATCH 3/3] Fix r80 by removing duplicates lines from the filelist OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=82 --- ldb.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/ldb.spec b/ldb.spec index aca1eeb..142933c 100644 --- a/ldb.spec +++ b/ldb.spec @@ -197,7 +197,6 @@ cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} %dir %{_libdir}/ldb %{_libdir}/pkgconfig/ldb.pc %{_mandir}/man3/ldb*.3.* -%if 0%{?suse_version} > 1110 || 0%{?fedora_version} > 0 || 0%{?centos_version} > 599 || 0%{?rhel_version} > 599 %if 0%{?suse_version} != 1110 %{_mandir}/man3/ldif*.3.* %endif @@ -228,7 +227,6 @@ cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} %{_includedir}/pyldb.h %{_libdir}/libpyldb-util.so %{_libdir}/pkgconfig/pyldb-util.pc -%if 0%{?suse_version} > 1110 || 0%{?fedora_version} > 0 || 0%{?centos_version} > 599 || 0%{?rhel_version} > 599 %if 0%{?suse_version} != 1110 %{_mandir}/man3/PyLdb*.3.* %endif