]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- use new %%doc
[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:        8
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 BuildRequires:  libvorbis-devel >= 1:1.0
29 %ifnarch sparc sparc64
30 %{!?_without_alsa:BuildRequires:        alsa-driver-devel}
31 %endif
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 %ifnarch sparc sparc64
111         %{!?_without_alsa:--with-alsa-dsp}
112 %endif
113
114 %{__make} PREFIX=%{_prefix}
115
116 %install
117 rm -rf $RPM_BUILD_ROOT
118
119 %{__make} install install-lib \
120         DESTDIR=$RPM_BUILD_ROOT
121
122 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
123 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
124 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
125
126 %clean
127 rm -rf $RPM_BUILD_ROOT
128
129 %files
130 %defattr(644,root,root,755)
131 %doc monkey.* Changelog README TODO INSTALL
132 %attr(755,root,root) %{_bindir}/sox
133 %attr(755,root,root) %{_bindir}/soxmix
134 %attr(755,root,root) %{_bindir}/play
135 %attr(755,root,root) %{_bindir}/rec
136 %attr(755,root,root) %{_bindir}/soxplay
137 %{_mandir}/man1/*
138
139 %files devel
140 %defattr(644,root,root,755)
141 %{_libdir}/libst.a
142 %{_includedir}/st.h
143 %{_mandir}/man3/*
This page took 0.030406 seconds and 3 git commands to generate.