SPECS: libusb.spec - without doc bcond

sparky sparky at pld-linux.org
Fri Dec 9 14:55:16 CET 2005


Author: sparky                       Date: Fri Dec  9 13:55:16 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- without doc bcond

---- Files affected:
SPECS:
   libusb.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SPECS/libusb.spec
diff -u SPECS/libusb.spec:1.26 SPECS/libusb.spec:1.27
--- SPECS/libusb.spec:1.26	Thu May  5 10:05:19 2005
+++ SPECS/libusb.spec	Fri Dec  9 14:55:08 2005
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	doc	# don't build documentation
+#
 Summary:	Application access to USB devices
 Summary(es):	libusb - Biblioteca USB
 Summary(pl):	Dostęp z poziomu aplikacji do urządzeń USB
@@ -15,7 +19,7 @@
 BuildRequires:	automake >= 1:1.7.6
 BuildRequires:	docbook-dtd41-sgml
 BuildRequires:	docbook-style-dsssl
-BuildRequires:	doxygen
+%{?with_doc:BuildRequires:	doxygen}
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool >= 2:1.5
 BuildRequires:	openjade
@@ -130,7 +134,7 @@
 %configure
 %{__make}
 
-doxygen
+%{?with_doc:doxygen}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -154,7 +158,7 @@
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/html/*
+%{?with_doc:%doc doc/html/*}
 %attr(755,root,root) %{_bindir}/libusb-config
 %attr(755,root,root) %{_libdir}/libusb.so
 %{_libdir}/libusb.la
@@ -170,7 +174,7 @@
 
 %files -n libusbpp-devel
 %defattr(644,root,root,755)
-%doc apidocs/html/*
+%{?with_doc:%doc apidocs/html/*}
 %attr(755,root,root) %{_libdir}/libusbpp.so
 %{_libdir}/libusbpp.la
 %{_includedir}/usbpp.h
@@ -185,6 +189,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2005/12/09 13:55:08  sparky
+- without doc bcond
+
 Revision 1.26  2005/05/05 08:05:19  adamg
 - reverted
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libusb.spec?r1=1.26&r2=1.27&f=u




More information about the pld-cvs-commit mailing list