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