[libldb/f16] Build and install API documentation
Stephen Gallagher
sgallagh at fedoraproject.org
Mon Nov 21 15:20:52 UTC 2011
commit fe522ac8ea19fe4f3301511b749749197d833b05
Author: Stephen Gallagher <sgallagh at redhat.com>
Date: Mon Nov 21 09:37:52 2011 -0500
Build and install API documentation
libldb.spec | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/libldb.spec b/libldb.spec
index 41ed33e..be2a198 100644
--- a/libldb.spec
+++ b/libldb.spec
@@ -9,7 +9,7 @@
Name: libldb
Version: 1.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Development/Libraries
Summary: A schema-less, ldap like, API and database
Requires: libtalloc >= %{talloc_version}
@@ -35,6 +35,7 @@ BuildRequires: docbook-style-xsl
BuildRequires: python-devel
BuildRequires: python-tdb
BuildRequires: pytalloc-devel
+BuildRequires: doxygen
# Patches
@@ -90,6 +91,7 @@ Development files for the Python bindings for the LDB library
--with-privatelibdir=%{_libdir}/ldb
make V=1 %{?_smp_mflags}
+doxygen Doxyfile
%install
make install DESTDIR=%{buildroot}
@@ -103,6 +105,9 @@ rm -f %{buildroot}/%{python_sitearch}/_tevent.so
# rpmbuild to strip them and include them in debuginfo
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
+# Install API docs
+cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir}
+
%clean
rm -rf %{buildroot}
@@ -144,7 +149,7 @@ rm -rf %{buildroot}
%{_libdir}/libldb.so
%{_libdir}/pkgconfig/ldb.pc
-%{_mandir}/man3/ldb.3.gz
+%{_mandir}/man*/ldb*.gz
%files -n pyldb
%defattr(-,root,root,-)
@@ -156,11 +161,15 @@ rm -rf %{buildroot}
%{_includedir}/pyldb.h
%{_libdir}/libpyldb-util.so
%{_libdir}/pkgconfig/pyldb-util.pc
+%{_mandir}/man*/Py*.gz
%post -n pyldb -p /sbin/ldconfig
%postun -n pyldb -p /sbin/ldconfig
%changelog
+* Mon Nov 21 2011 Stephen Gallagher <sgallagh at redhat.com> - 1.1.0-2
+- Build and install API documentation
+
* Tue Aug 2 2011 Simo Sorce <ssorce at redhat.com> - 1.1.0-1
- Update to 1.1.0
(dependency for samba4 alpha16 snapshot)
More information about the scm-commits
mailing list