Add license tag.

- Add back sed on -O3 .
- Not modify soundtouch_config.h because looks correct, just have one line !.
This commit is contained in:
Sérgio M. Basto 2016-02-13 02:08:17 +00:00
parent 0b214c350c
commit 2ede32503f

View File

@ -1,6 +1,6 @@
Name: soundtouch
Version: 1.9.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Audio Processing library for changing Tempo, Pitch and Playback Rates
License: LGPLv2+
Group: System Environment/Libraries
@ -34,8 +34,11 @@ Libraries, include files, etc you can use to develop soundtouch applications.
%prep
%setup -q -n %{name}
# Remove -O3 because we have our default optimizations.
sed -i 's|-O3||' source/SoundTouch/Makefile.*
sed -i 's|-O3||' source/SoundStretch/Makefile.*
autoreconf -iv
#why not in x86_64
#why not in x86_64 !?
#patch0 -p1
# set correct version for .so build
@ -59,20 +62,18 @@ make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/*.la
# remove redundant installed docs
rm -rf %%{_prefix}/doc/%{name}
rm -rf %{buildroot}%{_docdir}/%{name}
# pkgconfig compat links for compat with older (API compatible) releases
# dunno why upstream keeps changing the pkgconfig name
ln -s soundtouch-1.4.pc %{buildroot}%{_libdir}/pkgconfig/libSoundTouch.pc
ln -s soundtouch-1.4.pc %{buildroot}%{_libdir}/pkgconfig/soundtouch-1.0.pc
# soundtouch installs an autoheader generated header file which could very
# well conflict with other autoheader generated header files, so we override
# this with our own version which contains only the bare minimum:
cat %{buildroot}%{_includedir}/soundtouch/soundtouch_config.h
echo '#define FLOAT_SAMPLES 1' \
> %{buildroot}%{_includedir}/soundtouch/soundtouch_config.h
## soundtouch installs an autoheader generated header file which could very
## well conflict with other autoheader generated header files, so we override
## this with our own version which contains only the bare minimum:
#echo '#define FLOAT_SAMPLES 1' \
# > %{buildroot}%{_includedir}/soundtouch/soundtouch_config.h
%post -p /sbin/ldconfig
@ -80,7 +81,8 @@ echo '#define FLOAT_SAMPLES 1' \
%files
%doc COPYING.TXT README.html
%doc README.html
%license COPYING.TXT
%{_bindir}/soundstretch
%{_libdir}/lib*.so.*
@ -92,6 +94,11 @@ echo '#define FLOAT_SAMPLES 1' \
%changelog
* Sat Feb 13 2016 Sérgio Basto <sergio@serjux.com> - 1.9.2-2
- Add license tag.
- Add back sed on -O3 .
- Not modify soundtouch_config.h because looks correct, just have one line !.
* Tue Feb 09 2016 Sérgio Basto <sergio@serjux.com> - 1.9.2-1
- Update to 1.9.2 (#961876).
- Modernize spec file.