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