SHA256
1
0
forked from pool/soundtouch
soundtouch/soundtouch.spec

95 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package soundtouch (Version 1.3.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: soundtouch
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: http://www.surina.net/soundtouch
Summary: Audio Processing Library
Version: 1.3.1
Release: 1
BuildRequires: gcc-c++ libstdc++
Source: %{name}-%{version}.tar.bz2
Patch: soundtouch-keep-flags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SoundTouch is an open-source audio processing library that allows
changing the sound tempo, pitch and playback rate parameters
independently from each other.
Authors:
--------
Olli Parviainen
%package devel
Summary: Audio Processing Library
Group: Productivity/Multimedia/Sound/Editors and Convertors
Requires: %{name} = %{version} glibc-devel
%description devel
SoundTouch is an open-source audio processing library that allows
changing the sound tempo, pitch and playback rate parameters
independently from each other.
Authors:
--------
Olli Parviainen
%prep
%setup -q
%patch
chmod -x README.html
for FILE in COPYING.TXT README.html ; do
tr -d $'\r\z' <$FILE >$FILE~
mv $FILE~ $FILE
done
%build
for FILE in NEWS README AUTHORS ChangeLog ; do
echo -n "" >| $FILE
done
autoreconf -f -i
rm NEWS README AUTHORS ChangeLog
# NOTE: Upstream builds only static library. Check why.
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
export LDFLAGS="-fPIC"
%configure
make %{?jobs:-j%jobs} pkgdocdir=%{_docdir}/%{name}
%install
%makeinstall pkgdocdir=%{_docdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%{_bindir}/*
%files devel
%defattr(-,root,root)
%{_datadir}/aclocal/*.m4
%{_includedir}/soundtouch
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%changelog
* Thu Jun 21 2007 - sbrabec@suse.cz
- New SuSE package, version 1.3.1.