packages: db4.7/db4.7.spec - apidocs subpackage

glen glen at pld-linux.org
Sun May 9 12:32:51 CEST 2010


Author: glen                         Date: Sun May  9 10:32:51 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- apidocs subpackage

---- Files affected:
packages/db4.7:
   db4.7.spec (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: packages/db4.7/db4.7.spec
diff -u packages/db4.7/db4.7.spec:1.24 packages/db4.7/db4.7.spec:1.25
--- packages/db4.7/db4.7.spec:1.24	Fri Apr 23 02:01:45 2010
+++ packages/db4.7/db4.7.spec	Sun May  9 12:32:45 2010
@@ -1,11 +1,12 @@
 # $Revision$, $Date$
 #
 # Conditional build:
+%bcond_without	apidocs		# do not build and package API docs
 %bcond_without	java		# don't build java bindings
 %bcond_without	tcl		# don't build Tcl bindings
 %bcond_without	static_libs	# don't build static libraries
 
-%include	/usr/lib/rpm/macros.java
+%{?with_java:%include	/usr/lib/rpm/macros.java}
 
 %define		libver		4.7
 %define		ver			%{libver}.25
@@ -116,6 +117,13 @@
 Ten pakiet zawiera statyczne biblioteki do budowania programów
 używających Berkeley DB.
 
+%package apidocs
+Summary:	Berkeley database library API documentation
+Group:		Documentation
+
+%description apidocs
+API and internal documentation for Berkeley database library.
+
 %package cxx
 Summary:	Berkeley database library for C++
 Summary(pl.UTF-8):	Biblioteka baz danych Berkeley dla C++
@@ -399,6 +407,20 @@
 %{_libdir}/libndbm.la
 %{_includedir}/db.h
 %{_includedir}/db_185.h
+%{_examplesdir}/db-%{version}
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdb-%{libver}.a
+%{_libdir}/libdb4.a
+%{_libdir}/libdb.a
+%{_libdir}/libndbm.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
 %dir %{_docdir}/db-%{version}-docs
 %{_docdir}/db-%{version}-docs/api_c
 %{_docdir}/db-%{version}-docs/articles
@@ -411,15 +433,6 @@
 %{_docdir}/db-%{version}-docs/images
 %{_docdir}/db-%{version}-docs/porting
 %{_docdir}/db-%{version}-docs/ref
-%{_examplesdir}/db-%{version}
-
-%if %{with static_libs}
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/libdb-%{libver}.a
-%{_libdir}/libdb4.a
-%{_libdir}/libdb.a
-%{_libdir}/libndbm.a
 %endif
 
 %files cxx
@@ -502,6 +515,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.25  2010/05/09 10:32:45  glen
+- apidocs subpackage
+
 Revision 1.24  2010/04/23 00:01:45  pawelz
 - Don't force specific jdk.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/db4.7/db4.7.spec?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list