]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[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.3
16 Release:        9
17 License:        distributable
18 Group:          Applications/Sound
19 Source0:        http://prdownloads.sourceforge.net/sox/%{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 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  libgsm-devel
27 BuildRequires:  libvorbis-devel >= 1:1.0
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 %clean
126 rm -rf $RPM_BUILD_ROOT
127
128 %files
129 %defattr(644,root,root,755)
130 %doc monkey.* Changelog README TODO INSTALL
131 %attr(755,root,root) %{_bindir}/sox
132 %attr(755,root,root) %{_bindir}/soxmix
133 %attr(755,root,root) %{_bindir}/play
134 %attr(755,root,root) %{_bindir}/rec
135 %attr(755,root,root) %{_bindir}/soxplay
136 %{_mandir}/man1/*
137
138 %files devel
139 %defattr(644,root,root,755)
140 %{_libdir}/libst.a
141 %{_includedir}/*.h
142 %{_mandir}/man3/*
This page took 0.083569 seconds and 4 git commands to generate.