Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37560904
en ru br
ALT Linux repos
S:14.4.2-alt5
5.0: 14.0.1-alt3
4.1: 13.0.0-alt3
4.0: 13.0.0-alt2
3.0: 12.17.7-alt1

Group :: Sound
RPM: sox

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Packager: Denis Smirnov <mithraen at altlinux.org>

Name: sox
Version: 14.0.1
Release: alt3

Summary: A general purpose sound file conversion tool
Summary(ru_RU.KOI8-R): Универсальный проигрыватель и конвертер звуковых файлов.
License: LGPL
Group: Sound
Url: http://%name.sourceforge.net/
Source: %name-%version.tar
Source1: soxeffect

Patch1: %name-13.0.0-alt-gsm.patch

BuildPreReq: kernel-headers-alsa

# Automatically added by buildreq on Sun Aug 10 2008

BuildRequires: ladspa_sdk libao-devel libavformat-devel libgsm-devel libid3tag-devel liblame-devel libltdl-devel libmad-devel libsamplerate-devel libsndfile-devel libvorbis-devel

%description
SoX (Sound eXchange) is a sound file format converter for Linux,
UNIX and DOS PCs. The self-described 'Swiss Army knife of sound
tools,' SoX can convert between many different digitized sound
formats and perform simple sound manipulation functions,
including sound effects.

Install the %name package if you'd like to convert sound file formats
or manipulate some sounds.

%description -l ru_RU.KOI8-R
SOX - консольная программа для преобразования, записи и проигрывания
звуковых файлов, поддерживает множество форматов.

%package -n lib%name
Summary: The SoX sound file format converter libraries
Group: Development/C

%description -n lib%name
This package contains libraries for SoX

%package -n lib%name-devel
Requires: %name = %version-%release
Obsoletes: sox-devel
Summary: The SoX sound file format converter headers files and libraries
Group: Sound

%description -n lib%name-devel
This package contains the headers and library needed for compiling
applications which will use the SoX sound file format converter.

%package -n lib%name-devel-static
Requires: %name = %version-%release
Obsoletes: sox-devel
Summary: The SoX sound file format converter headers files and libraries
Group: Sound

%description -n lib%name-devel-static
This package contains the headers and library needed for compiling
applications which will use the SoX sound file format converter.

Install %name-devel if you want to develop applications which will use SoX.

%prep
%setup -q
%patch1 -p2
sed -i 's,\-I/lib/modules/`uname -r`/build/include,,' configure*
# We must link with external libgsm
#rm -rf src/libgsm

%build
%autoreconf
%configure
%make_build

%install
%makeinstall install

install %SOURCE1 %buildroot%_bindir/soxeffect
sed -i 's,\(/usr/\)local/,\1,' %buildroot%_bindir/soxeffect

rm -f %buildroot%_bindir/rec
ln -s play %buildroot%_bindir/rec

cat << EOF >%buildroot%_bindir/%{name}play
#!/bin/sh
%_bindir/%name \$1 -t .au - >/dev/audio
EOF
chmod 755 %buildroot%_bindir/%{name}play

%files
%_bindir/*
%_man1dir/*
%_man3dir/*
%_man7dir/*
%doc ChangeLog README

%files -n lib%name-devel-static
%_libdir/sox/*.a
%exclude %_libdir/sox/*.la

%files -n lib%name
%_libdir/libsox.so.*
%_libdir/libsfx.so.*
%_libdir/sox/*.so.*
%_libdir/sox/*.so

%files -n lib%name-devel
#_bindir/*-config
%_includedir/*
%exclude %_libdir/*.a
%_libdir/libsox.so
%_libdir/libsfx.so
%_man3dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin