fix ftbfs, use %%license
This commit is contained in:
parent
7846ea96ac
commit
a24e4bc84a
@ -1,7 +1,7 @@
|
|||||||
Summary: Library for reading and writing sound files
|
Summary: Library for reading and writing sound files
|
||||||
Name: libsndfile
|
Name: libsndfile
|
||||||
Version: 1.0.25
|
Version: 1.0.25
|
||||||
Release: 15%{?dist}
|
Release: 16%{?dist}
|
||||||
License: LGPLv2+ and GPLv2+ and BSD
|
License: LGPLv2+ and GPLv2+ and BSD
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.mega-nerd.com/libsndfile/
|
URL: http://www.mega-nerd.com/libsndfile/
|
||||||
@ -44,7 +44,6 @@ This package contains files needed to develop with libsndfile.
|
|||||||
Summary: Command Line Utilities for libsndfile
|
Summary: Command Line Utilities for libsndfile
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Obsoletes: libsndfile < 1.0.20-4
|
|
||||||
|
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
@ -58,9 +57,10 @@ This package contains command line utilities for libsndfile.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1 -b .zerodivfix
|
%patch1 -p1 -b .zerodivfix
|
||||||
%patch2 -p1 -b .cve2014_9496
|
%patch2 -p1 -b .cve2014_9496
|
||||||
rm -r src/GSM610 ; autoreconf -I M4 -fiv # for system-gsm patch
|
rm -r src/GSM610
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
autoreconf -I M4 -fiv # for system-gsm patch
|
||||||
%configure \
|
%configure \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--enable-sqlite \
|
--enable-sqlite \
|
||||||
@ -80,9 +80,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
rm -rf __docs
|
rm -rf __docs
|
||||||
cp -pR $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev/html __docs
|
cp -pR $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev/html __docs
|
||||||
rm -rf $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/libsndfile1-dev
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete
|
||||||
|
|
||||||
# fix multilib issues
|
# fix multilib issues
|
||||||
%if %{__isa_bits} == 64
|
%if %{?__isa_bits} == 64
|
||||||
%define wordsize 64
|
%define wordsize 64
|
||||||
%else
|
%else
|
||||||
%define wordsize 32
|
%define wordsize 32
|
||||||
@ -118,7 +119,9 @@ LD_LIBRARY_PATH=$PWD/src/.libs make check
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING AUTHORS README NEWS
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS README NEWS
|
||||||
%{_libdir}/%{name}.so.*
|
%{_libdir}/%{name}.so.*
|
||||||
|
|
||||||
%files utils
|
%files utils
|
||||||
@ -144,9 +147,7 @@ LD_LIBRARY_PATH=$PWD/src/.libs make check
|
|||||||
%{_mandir}/man1/sndfile-play.1*
|
%{_mandir}/man1/sndfile-play.1*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc __docs/*
|
%doc __docs/* ChangeLog
|
||||||
%doc ChangeLog
|
|
||||||
%exclude %{_libdir}/%{name}.la
|
|
||||||
%{_includedir}/sndfile.h
|
%{_includedir}/sndfile.h
|
||||||
%{_includedir}/sndfile.hh
|
%{_includedir}/sndfile.hh
|
||||||
%{_includedir}/sndfile-%{wordsize}.h
|
%{_includedir}/sndfile-%{wordsize}.h
|
||||||
@ -155,6 +156,10 @@ LD_LIBRARY_PATH=$PWD/src/.libs make check
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.25-16
|
||||||
|
- Fix FTBFS
|
||||||
|
- Use %%license
|
||||||
|
|
||||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-15
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-15
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user