]> git.pld-linux.org Git - packages/libcddb.git/commitdiff
- added bcond_without static
authorwitekfl <witekfl@pld-linux.org>
Wed, 15 Jun 2005 16:51:32 +0000 (16:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- BR: libcdio >= 0.74 because build failed with 0.67

Changed files:
    libcddb.spec -> 1.10

libcddb.spec

index 1f18ea78cbf514a798fe6ea394feec485c06a9e2..2f1c2a612e62c56d699d147f302123f8c33fd6ce 100644 (file)
@@ -1,3 +1,4 @@
+%bcond_without static  # don't build static library
 Summary:       Library to access data on a CDDB server
 Summary(pl):   Biblioteka dostêpu do danych na serwerze CDDB
 Name:          libcddb
@@ -8,10 +9,12 @@ Group:                Libraries
 Source0:       http://dl.sourceforge.net/libcddb/%{name}-%{version}.tar.gz
 # Source0-md5: a8f8549cc1afb3bc702a96c7d71d2241
 URL:           http://libcddb.sourceforge.net/
+BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libcdio-devel >= 0.67
+BuildRequires: libcdio-devel >= 0.74
+BuildRequires: libtool
 BuildRequires: pkgconfig
-Requires:      libcdio >= 0.67
+Requires:      libcdio >= 0.74
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -52,8 +55,12 @@ Statyczna biblioteka libcddb.
 %setup -q
 
 %build
-cp -f /usr/share/automake/config.sub .
-%configure
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       %{!?with_static:--disable-static}
 %{__make}
 
 %install
@@ -81,6 +88,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/cddb
 %{_pkgconfigdir}/*.pc
 
+%if %{with static}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.079937 seconds and 4 git commands to generate.