SPECS: libsndfile.spec - BR: alsa-lib-devel, pkgconfig and sqlite3...

charles charles at pld-linux.org
Mon May 1 02:11:08 CEST 2006


Author: charles                      Date: Mon May  1 00:11:08 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- BR: alsa-lib-devel, pkgconfig and sqlite3-devel (+ without bcond)
- added without static_libs bcond

---- Files affected:
SPECS:
   libsndfile.spec (1.51 -> 1.52) 

---- Diffs:

================================================================
Index: SPECS/libsndfile.spec
diff -u SPECS/libsndfile.spec:1.51 SPECS/libsndfile.spec:1.52
--- SPECS/libsndfile.spec:1.51	Sun Apr 30 16:32:05 2006
+++ SPECS/libsndfile.spec	Mon May  1 02:11:03 2006
@@ -1,4 +1,9 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	sqlite		# disable use of sqlite
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	C library for reading and writing files containing sampled sound
 Summary(pl):	Biblioteka obsługi plików dźwiękowych
 Name:		libsndfile
@@ -10,10 +15,13 @@
 Source0:	http://www.mega-nerd.com/libsndfile/%{name}-%{version}.tar.gz
 # Source0-md5:	773b6639672d39b6342030c7fd1e9719
 URL:		http://www.mega-nerd.com/libsndfile/
+BuildRequires:	alsa-lib-devel
 BuildRequires:	autoconf >= 2.54
 BuildRequires:	automake
 BuildRequires:	flac-devel >= 1.1.1
 BuildRequires:	libtool
+BuildRequires:	pkgconfig
+%{?with_sqlite:BuildRequires:	sqlite3-devel}
 Obsoletes:	libsndfile1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -77,7 +85,10 @@
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static} \
+	%{!?with_sqlite:--disable-sqlite}
+
 %{__make}
 
 %install
@@ -109,9 +120,11 @@
 %{_includedir}/*
 %{_pkgconfigdir}/*.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %files octave
 %defattr(644,root,root,755)
@@ -123,6 +136,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.52  2006/05/01 00:11:03  charles
+- BR: alsa-lib-devel, pkgconfig and sqlite3-devel (+ without bcond)
+- added without static_libs bcond
+
 Revision 1.51  2006/04/30 14:32:05  adamg
 - updated to 1.0.16
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libsndfile.spec?r1=1.51&r2=1.52&f=u



More information about the pld-cvs-commit mailing list