From 2d594f1d474f39ac275e51d07256f36c9264d01b Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Jun 16 2014 15:03:54 +0000 Subject: Fix FTBFS, cleanup and modernise spec --- diff --git a/bio2jack.spec b/bio2jack.spec index 10ec78a..09dc410 100644 --- a/bio2jack.spec +++ b/bio2jack.spec @@ -1,6 +1,6 @@ Name: bio2jack Version: 0.9 -Release: 11%{?dist} +Release: 12%{?dist} Group: System Environment/Libraries # The license file says GPLv2+ but the source files say LGPLv2+. # The author of the software confirmed (via email) that it is @@ -8,14 +8,12 @@ Group: System Environment/Libraries License: LGPLv2+ Summary: A library for porting blocked io(OSS/ALSA) applications to jack URL: http://bio2jack.sourceforge.net/ + Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: autoconf -BuildRequires: automake BuildRequires: gettext BuildRequires: jack-audio-connection-kit-devel BuildRequires: libsamplerate-devel -BuildRequires: libtool +BuildRequires: libtool autoconf automake %description Bio (blocked i/o) 2 jack is a library for enabling easy porting of blocked @@ -46,43 +44,37 @@ rm -fr .libs *.o # Screws up the build if left alive rm -f *.lo -# In order to pass the optflags later: -sed -i -e 's|./configure||g' autogen.sh - %build -./autogen.sh -%configure \ - --enable-static=no \ - --enable-shared=yes -make %{?_smp_mflags} +autoreconf -vif +%configure --enable-static=no --enable-shared=yes + +make %{?_smp_mflags} V=1 %install -rm -rf %{buildroot} make install DESTDIR=%{buildroot} # Kill libtool archive -rm %{buildroot}%{_libdir}/lib%{name}.la +find %{buildroot} -type f -name "*.la" -delete -%clean -rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%defattr(-, root, root, -) %doc AUTHORS ChangeLog README NEWS %{_libdir}/lib%{name}.so.* %files devel -%defattr(-, root, root, -) %{_bindir}/%{name}-config %{_includedir}/%{name}.h %{_libdir}/lib%{name}.so %changelog +* Mon Jun 16 2014 Peter Robinson 0.9-12 +- Fix FTBFS, cleanup and modernise spec + * Sat Jun 07 2014 Fedora Release Engineering - 0.9-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild