]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- s/mad-devel/libmad-devel/
[packages/sox.git] / sox.spec
1 #
2 # Conditional build:
3 # _without_alsa - without ALSA support
4 #
5 Summary:        A general purpose sound file conversion tool
6 Summary(de):    Mehrzweck-Sounddatei-Konvertierungs-Tool
7 Summary(es):    Herramienta para conversión de archivos de sonido
8 Summary(fr):    outil général de conversion de fichiers son
9 Summary(pl):    Program do konwersji plików d¼wiêkowych
10 Summary(pt_BR): Ferramenta para conversão de arquivos de som
11 Summary(ru):    õÔÉÌÉÔÁ ÏÂÝÅÇÏ ÎÁÚÎÁÞÅÎÉÑ ÄÌÑ ÒÁÂÏÔÙ ÓÏ Ú×ÕËÏ×ÙÍÉ ÆÁÊÌÁÍÉ
12 Summary(tr):    Genel amaçlý ses dosyasý çevirme aracý
13 Summary(uk):    õÔÉ̦ÔÁ ÚÁÇÁÌØÎÏÇÏ ÐÒÉÚÎÁÞÅÎÎÑ ÄÌÑ ÒÏÂÏÔÉ ¦Ú Ú×ÕËÏ×ÉÍÉ ÆÁÊÌÁÍÉ
14 Name:           sox
15 Version:        12.17.4
16 Release:        1
17 License:        distributable
18 Group:          Applications/Sound
19 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
20 # Source0-md5: 39bdb64e06a8c456057e87eff7d0b339
21 Patch0:         %{name}-play.patch
22 Patch1:         %{name}-soundcard.patch
23 Patch2:         %{name}-install.patch
24 URL:            http://sox.sourceforge.net/
25 %{!?_without_alsa:BuildRequires:        alsa-driver-devel}
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  lame-libs-devel
29 BuildRequires:  libgsm-devel
30 BuildRequires:  libmad-devel
31 BuildRequires:  libvorbis-devel >= 1:1.0
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
36 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
37 can convert between many different digitized sound formats and perform
38 simple sound manipulation functions, including sound effects.
39
40 Install the sox package if you'd like to convert sound file formats or
41 manipulate some sounds.
42
43 %description -l es
44 sox se autodenomina "navaja suiza de las herramientas de sonido".
45 Entiende varios formatos de sonidos digitalizados, pudiendo hacer
46 conversiones entre estos formatos y desempeñar funciones sencillas de
47 manejo de sonido.
48
49 %description -l pl
50 SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
51 Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
52 formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
53 na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
54
55 %description -l ru
56 ëÁË ÇÏ×ÏÒÉÔÓÑ × ÄÏËÕÍÅÎÔÁÃÉÉ, "Û×ÅÊÃÁÒÓËÉÊ ÁÒÍÅÊÓËÉÊ ÎÏÖ Ú×ÕËÏ×ÙÈ
57 ÕÔÉÌÉÔ", sox ÕÍÅÅÔ ËÏÎ×ÅÒÔÉÒÏ×ÁÔØ Ú×ÕËÏ×ÙÅ ÆÁÊÌÙ ÓÁÍÙÈ ÒÁÚÎÏÏÂÒÁÚÎÙÈ
58 ÆÏÒÍÁÔÏ× É ÐÒÏÉÚ×ÏÄÉÔØ ÎÅÓÌÏÖÎÕÀ ÉÈ ÏÂÒÁÂÏÔËÕ. ó ÐÒÉÌÁÇÁÅÍÙÍ ÓËÒÉÐÔÏÍ
59 ÔÁËÖÅ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁΠÄÌÑ ÐÒÏÉÇÒÙ×ÁÎÉÑ Ú×ÕËÏ×ÙÈ ÆÁÊÌÏ×.
60
61 %description -l pt_BR
62 O sox se autodenomina "canivete suíço das ferramentas de som". Ele
63 entende vários formatos de sons digitalizados, podendo fazer
64 conversões entre esses formatos e desempenhar funções simples de
65 manipulação de som.
66
67 %description -l uk
68 ÷ ÄÏËÕÍÅÎÔÁ槠ÃÅÊ ÐÁËÅÔ ÎÁÚ×ÁÎÏ "Û×ÅÊÃÁÒÓØËÉÍ ÁÒͦÊÓØËÉÍ ÎÏÖÉËÏÍ
69 Ú×ÕËÏ×ÉÈ ÕÔÉ̦Ô". ÷¦Î ×ͦ¤ ËÏÎ×ÅÒÔÕ×ÁÔÉ Ú×ÕËÏצ ÆÁÊÌÉ
70 ÎÁÊÒ¦ÚÎÏÍÁΦÔΦÛÉÈ ÆÏÒÍÁԦנÔÁ ×ÉËÏÎÕ×ÁÔÉ ÎÅÓËÌÁÄÎÕ §È ÏÂÒÏÂËÕ. ÷
71 ÐÁËÅÔ ×ÈÏÄÉÔØ ÓËÒÉÐÔ, ÑËÉÊ ÍÏÖÎÁ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÄÌÑ ÐÒÏÇÒÁ×ÁÎÎÑ
72 Ú×ÕËÏ×ÉÈ ÆÁÊ̦×.
73
74 %package devel
75 Summary:        The SoX sound file format converter libraries
76 Summary(pl):    Biblioteka SoX do konwertowania plików d¼wiêkowych
77 Group:          Development/Libraries
78
79 %description devel
80 This package contains the library needed for compiling applications
81 which will use the SoX sound file format converter.
82
83 Install sox-devel if you want to develop applications which will use
84 SoX.
85
86 %description devel -l es
87 Bibliotecas que pueden ser usadas para compilar aplicaciones que usen
88 las bibliotecas del sox.
89
90 %description devel -l pl
91 Ten pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
92 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
93
94 %description devel -l pt_BR
95 Bibliotecas que podem ser usadas para compilar aplicações que usem as
96 bibliotecas do sox.
97
98 %prep
99 %setup -q
100 %patch0 -p1
101 %patch1 -p1
102 %patch2 -p1
103
104 %build
105 %{__aclocal}
106 %{__autoconf}
107 %configure \
108         --with-oss-dsp \
109         --with-gsm \
110         %{!?_without_alsa:--with-alsa-dsp}
111
112 %{__make} PREFIX=%{_prefix}
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116
117 %{__make} install install-lib \
118         DESTDIR=$RPM_BUILD_ROOT
119
120 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
121 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
122 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %files
128 %defattr(644,root,root,755)
129 %doc monkey.* Changelog README TODO
130 %attr(755,root,root) %{_bindir}/[!l]*
131 %{_mandir}/man1/*
132
133 %files devel
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_bindir}/libst-config
136 %{_libdir}/libst.a
137 %{_includedir}/*.h
138 %{_mandir}/man3/*
This page took 0.077794 seconds and 4 git commands to generate.