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