]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- updated to 12.17.3
[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(fr):    outil général de conversion de fichiers son
9 Summary(pl):    Program do konwersji plików d¼wiêkowych
10 Summary(tr):    Genel amaçlý ses dosyasý çevirme aracý
11 Name:           sox
12 Version:        12.17.3
13 Release:        1
14 License:        distributable
15 Group:          Applications/Sound
16 Group(de):      Applikationen/Laut
17 Group(pl):      Aplikacje/D¼wiêk
18 Source0:        http://prdownloads.sourceforge.net/sox/%{name}-%{version}.tar.gz
19 Patch0:         %{name}-play.patch
20 Patch1:         %{name}-soundcard.patch
21 Patch2:         %{name}-install.patch
22 URL:            http://sox.sourceforge.net
23 BuildRequires:  autoconf
24 BuildRequires:  automake
25 BuildRequires:  libgsm-devel
26 %ifnarch sparc sparc64
27 %{!?_without_alsa:BuildRequires:        alsa-driver-devel}
28 %endif
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 SoX (Sound eXchange) is a sound file format converter for Linux, UNIX
33 and DOS PCs. The self-described 'Swiss Army knife of sound tools,' SoX
34 can convert between many different digitized sound formats and perform
35 simple sound manipulation functions, including sound effects.
36
37 Install the sox package if you'd like to convert sound file formats or
38 manipulate some sounds.
39
40 %description -l pl
41 SoX (Sound eXchange) jest konwerterem formatów plików d¼wiêkowych dla
42 Linuksa, Uniksa i Dosa. SoX mo¿e wykonywaæ konwersjê miêdzy wieloma
43 formatami cyfrowego d¼wiêku. Mo¿e tak¿e dokonywaæ prostych manipulacji
44 na d¼wiêku, wliczaj±c w to ró¿ne efekty d¼wiekowe.
45
46 %package devel
47 Summary:        The SoX sound file format converter libraries
48 Summary(pl):    Biblioteka SoX do konwertowania plików d¼wiêkowych
49 Group:          Development/Libraries
50 Group(de):      Entwicklung/Libraries
51 Group(es):      Desarrollo/Bibliotecas
52 Group(fr):      Development/Librairies
53 Group(pl):      Programowanie/Biblioteki
54 Group(pt_BR):   Desenvolvimento/Bibliotecas
55 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
56 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
57
58 %description devel 
59 This package contains the library needed for compiling applications
60 which will use the SoX sound file format converter.
61
62 Install sox-devel if you want to develop applications which will use
63 SoX.
64
65 %description devel -l pl
66 Ten pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
67 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
68
69 %prep
70 %setup -q 
71 %patch0 -p1
72 %patch1 -p1
73 %patch2 -p1
74
75 %build
76 aclocal
77 autoconf
78 %configure \
79         --with-oss-dsp \
80         --with-gsm \
81 %ifnarch sparc sparc64
82         %{!?_without_alsa:--with-alsa-dsp}
83 %endif
84
85 %{__make} PREFIX=%{_prefix}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install install-lib \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
94 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
95 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
96
97 gzip -9nf Changelog README TODO INSTALL
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %files
103 %defattr(644,root,root,755)
104 %doc *.gz monkey.*
105 %attr(755,root,root) %{_bindir}/sox
106 %attr(755,root,root) %{_bindir}/soxmix
107 %attr(755,root,root) %{_bindir}/play   
108 %attr(755,root,root) %{_bindir}/rec  
109 %attr(755,root,root) %{_bindir}/soxplay
110 %{_mandir}/man1/*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %{_libdir}/libst.a
115 %{_includedir}/st.h
116 %{_mandir}/man3/*
This page took 0.074852 seconds and 3 git commands to generate.