]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- updated to 12.18.2, updated install patch
[packages/sox.git] / sox.spec
1 #
2 # Conditional build:
3 %bcond_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.18.2
16 Release:        1
17 License:        distributable
18 Group:          Applications/Sound
19 Source0:        http://dl.sourceforge.net/sox/%{name}-%{version}.tar.gz
20 # Source0-md5:  ba25e512a6c824d6e56d76767a18af99
21 Patch0:         %{name}-install.patch
22 Patch1:         %{name}-gsm.patch
23 URL:            http://sox.sourceforge.net/
24 %{?with_alsa:BuildRequires:     alsa-lib-devel}
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  lame-libs-devel
28 BuildRequires:  libgsm-devel
29 BuildRequires:  libmad-devel
30 BuildRequires:  libvorbis-devel >= 1:1.0
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¼wiêkowe.
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
102 %build
103 cp -f /usr/share/automake/config.sub .
104 %{__autoconf}
105 %{__autoheader}
106 %configure \
107         %{!?with_alsa:--disable-alsa-dsp}
108
109 %{__make} \
110         PREFIX=%{_prefix}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114
115 %{__make} install install-lib \
116         DESTDIR=$RPM_BUILD_ROOT
117
118 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
119 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
120 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %files
126 %defattr(644,root,root,755)
127 %doc src/monkey.* Changelog README TODO
128 %attr(755,root,root) %{_bindir}/[!l]*
129 %{_mandir}/man1/*
130
131 %files devel
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/libst-config
134 %{_libdir}/libst.a
135 %{_includedir}/*.h
136 %{_mandir}/man3/*
This page took 0.084932 seconds and 3 git commands to generate.