SPECS: libcmml.spec, liboggz.spec, libannodex.spec - added bcond_w...

witekfl witekfl at pld-linux.org
Sun Jul 22 15:22:54 CEST 2007


Author: witekfl                      Date: Sun Jul 22 13:22:54 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs
- added BR: docbook-to-man

---- Files affected:
SPECS:
   libcmml.spec (1.4 -> 1.5) , liboggz.spec (1.3 -> 1.4) , libannodex.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/libcmml.spec
diff -u SPECS/libcmml.spec:1.4 SPECS/libcmml.spec:1.5
--- SPECS/libcmml.spec:1.4	Tue Feb 13 07:46:50 2007
+++ SPECS/libcmml.spec	Sun Jul 22 15:22:49 2007
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	A library for parsing CMML files
 Summary(pl.UTF-8):	Biblioteka do analizy plików CMML
 Name:		libcmml
@@ -9,6 +12,7 @@
 Source0:	http://annodex.net/software/libcmml/download/%{name}-%{version}.tar.gz
 # Source0-md5:	44a1575a91ad32100df215766ca95b83
 URL:		http://annodex.net/software/libcmml/index.html
+BuildRequires:	docbook-to-man
 BuildRequires:	expat-devel >= 1.95
 Requires:	expat >= 1.95
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,7 +67,8 @@
 %setup -q
 
 %build
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -96,9 +101,11 @@
 %{_includedir}/cmml.h
 %{_pkgconfigdir}/cmml.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcmml.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -106,6 +113,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2007/07/22 13:22:49  witekfl
+- added bcond_without static_libs
+- added BR: docbook-to-man
+
 Revision 1.4  2007/02/13 06:46:50  glen
 - tabs in preamble
 

================================================================
Index: SPECS/liboggz.spec
diff -u SPECS/liboggz.spec:1.3 SPECS/liboggz.spec:1.4
--- SPECS/liboggz.spec:1.3	Tue Feb 13 07:46:51 2007
+++ SPECS/liboggz.spec	Sun Jul 22 15:22:49 2007
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	A library for reading and writing Ogg encapsulated data
 Summary(pl.UTF-8):	Biblioteka do odczytu i zapisu danych w opakowaniu Ogg
 Name:		liboggz
@@ -9,6 +12,7 @@
 Source0:	http://annodex.net/software/liboggz/download/%{name}-%{version}.tar.gz
 # Source0-md5:	781fab29dea3c5e9d39ecbd1d007fb98
 URL:		http://annodex.net/software/liboggz/index.html
+BuildRequires:	docbook-to-man
 BuildRequires:	libogg-devel >= 2:1.0
 BuildRequires:	pkgconfig
 Requires:	libogg >= 2:1.0
@@ -65,7 +69,8 @@
 %setup -q
 
 %build
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -97,9 +102,11 @@
 %{_includedir}/oggz
 %{_pkgconfigdir}/oggz.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/liboggz.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -107,6 +114,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2007/07/22 13:22:49  witekfl
+- added bcond_without static_libs
+- added BR: docbook-to-man
+
 Revision 1.3  2007/02/13 06:46:51  glen
 - tabs in preamble
 

================================================================
Index: SPECS/libannodex.spec
diff -u SPECS/libannodex.spec:1.4 SPECS/libannodex.spec:1.5
--- SPECS/libannodex.spec:1.4	Tue Feb 13 07:46:50 2007
+++ SPECS/libannodex.spec	Sun Jul 22 15:22:49 2007
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	A library for reading and writing annodexed media
 Summary(pl.UTF-8):	Biblioteka do odczytu i zapisu mediów w formacie Annodex
 Name:		libannodex
@@ -14,6 +17,7 @@
 URL:		http://annodex.net/software/libannodex/index.html
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake
+BuildRequires:	docbook-to-man
 BuildRequires:	libcmml-devel >= 0.9.2
 BuildRequires:	liboggz-devel >= 0.9.1
 BuildRequires:	libsndfile-devel >= 1.0.0
@@ -71,7 +75,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -107,9 +112,11 @@
 %{_includedir}/annodex
 %{_pkgconfigdir}/annodex.pc
 
+%if %{with static}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libannodex.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -117,6 +124,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2007/07/22 13:22:49  witekfl
+- added bcond_without static_libs
+- added BR: docbook-to-man
+
 Revision 1.4  2007/02/13 06:46:50  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libcmml.spec?r1=1.4&r2=1.5&f=u
    http://cvs.pld-linux.org/SPECS/liboggz.spec?r1=1.3&r2=1.4&f=u
    http://cvs.pld-linux.org/SPECS/libannodex.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list