]> git.pld-linux.org Git - packages/libsndfile.git/commitdiff
- BR: alsa-lib-devel, pkgconfig and sqlite3-devel (+ without bcond) auto/th/libsndfile-1_0_16-1
authorKarol Krenski <charles@pld-linux.org>
Mon, 1 May 2006 00:11:03 +0000 (00:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added without static_libs bcond

Changed files:
    libsndfile.spec -> 1.52

libsndfile.spec

index 3d42f060718a116f236f3cfc68caf2c8a059282b..a2e41b9f94199fb2b7c75088020b2f9c568576fd 100644 (file)
@@ -1,3 +1,8 @@
+#
+# 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
@@ -9,10 +14,13 @@ Group:               Development/Libraries
 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)
 
@@ -76,7 +84,10 @@ d
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static} \
+       %{!?with_sqlite:--disable-sqlite}
+
 %{__make}
 
 %install
@@ -108,9 +119,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_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)
This page took 0.034639 seconds and 4 git commands to generate.