SPECS: libdbi.spec - added doc bcond; BRs for texlive aren't complete though

mmazur mmazur at pld-linux.org
Wed Apr 22 09:46:29 CEST 2009


Author: mmazur                       Date: Wed Apr 22 07:46:29 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added doc bcond; BRs for texlive aren't complete though

---- Files affected:
SPECS:
   libdbi.spec (1.37 -> 1.38) 

---- Diffs:

================================================================
Index: SPECS/libdbi.spec
diff -u SPECS/libdbi.spec:1.37 SPECS/libdbi.spec:1.38
--- SPECS/libdbi.spec:1.37	Mon Apr 20 16:00:54 2009
+++ SPECS/libdbi.spec	Wed Apr 22 09:46:23 2009
@@ -2,6 +2,7 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# don't build static library
+%bcond_without	doc			# don't build documentation
 #
 Summary:	Database Independent Abstraction Layer for C
 Summary(pl.UTF-8):	Warstwa DBI dla C
@@ -19,11 +20,13 @@
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libtool
+%if %{with doc}
 BuildRequires:	jadetex
 BuildRequires:	docbook-dtd41-sgml
 BuildRequires:	texlive-fonts-ams
 BuildRequires:	texlive-fonts-type1-urw
 BuildRequires:	texlive-fonts-stmaryrd
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -77,7 +80,8 @@
 %{__automake}
 %{__autoconf}
 %configure \
-	%{!?with_static_libs:--disable-static}
+	%{!?with_static_libs:--disable-static} \
+	%{!?with_doc:--disable-docs}
 %{__make}
 
 %install
@@ -115,7 +119,9 @@
 
 %files devel
 %defattr(644,root,root,755)
+%if %{with doc}
 %doc doc/driver-guide doc/programmers-guide doc/programmers-guide.pdf
+%endif
 %attr(755,root,root) %{_libdir}/libdbi.so
 %{_libdir}/libdbi.la
 %{_includedir}/dbi
@@ -133,6 +139,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2009/04/22 07:46:23  mmazur
+- added doc bcond; BRs for texlive aren't complete though
+
 Revision 1.37  2009/04/20 14:00:54  mmazur
 - Added dome BRs for doc generation.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libdbi.spec?r1=1.37&r2=1.38&f=u



More information about the pld-cvs-commit mailing list