Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
sox
sox.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sox.spec of Package sox
# # spec file for package sox # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %bcond_with ffmpeg %bcond_with mad %bcond_with lame %bcond_with amrwb %bcond_with amrnb Name: sox BuildRequires: alsa-devel BuildRequires: file-devel BuildRequires: flac-devel BuildRequires: ladspa-devel BuildRequires: libao-devel BuildRequires: libgsm-devel BuildRequires: libid3tag-devel BuildRequires: libpng-devel BuildRequires: libpulse-devel BuildRequires: libsamplerate-devel BuildRequires: libsndfile-devel BuildRequires: libvorbis-devel BuildRequires: pkg-config BuildRequires: wavpack-devel %if %{with ffmpeg} BuildRequires: libffmpeg-devel %endif %if %{with mad} BuildRequires: libmad-devel %endif %if %{with lame} BuildRequires: libmp3lame-devel %endif %if %{with amrwb} && %{with amrnb} BuildRequires: libopencore-amr-devel %endif Version: 14.3.2 Release: 3 License: LGPLv2.1+ ; GPLv2+ Summary: Sound Conversion Tools and Library Url: http://sox.sourceforge.net Group: Productivity/Multimedia/Sound/Editors and Convertors Source: http://downloads.sourceforge.net/project/sox/sox/%{version}/%{name}-%{version}.tar.bz2 Source1: audioio.h # PATCH-FIX-UPSTREAM %{name}-14.3.2-new_ffmpeg.patch reddwarf@opensuse.org -- make it work with new ffmpeg, from upstream GIT Patch0: %{name}-14.3.2-new_ffmpeg.patch # PATCH-FIX-UPSTREAM %{name}-14.3.1-undefined.patch sf#3072301 reddwarf@opensuse.org -- fix undefined behavior problems as reported by post-build script Patch2: %{name}-14.3.1-undefined.patch # PATCH-FIX-UPSTREAM %{name}-14.3.1-aliasing.patch sf#3072320 reddwarf@opensuse.org -- fix an aliasing problem as reported by post-build script Patch3: %{name}-14.3.1-aliasing.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description SOX is intended to be the Swiss Army knife of sound processing tools. It does many things, it just does not do them all well. Sooner or later it will come in very handy. SOX is really only usable day-to-day if you hide the wacky options with one-line shell scripts. %package devel License: LGPLv2.1+ ; GPLv2+ Summary: Sound Conversion Tools and Library Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: pkg-config %description devel SOX is intended to be the Swiss Army knife of sound processing tools. It does many things, it just does not do them all well. Sooner or later it will come in very handy. SOX is really only usable day-to-day if you hide the wacky options with one-line shell scripts. %prep %setup -q %patch0 -p1 %patch2 %patch3 FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/sox.c FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/sox.c %build # /dev/audio (OSS) support. If it ever breaks just remove it. if [ ! -f %{_includedir}/sun/audioio.h ]; then mkdir -p include/sun cp %{S:1} include/sun/audioio.h fi export CPPFLAGS=-I$PWD/include # %configure --disable-static make %{?_smp_mflags} %install %makeinstall rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/sox/*.la %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(0644,root,root,0755) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README src/monkey.* %attr(0755,root,root) %{_bindir}/* # I don't know of anything which uses libsox, but if the soname changes perhaps # it's the time to split the package and follow SLPP %{_libdir}/libsox.so.1* %{_mandir}/man1/* %{_mandir}/man3/* %{_mandir}/man7/* %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/lib*.so %{_libdir}/pkgconfig/sox.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor