]> git.pld-linux.org Git - packages/sox.git/blob - sox.spec
- added pl summary and/or description
[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(fr):    outil général de conversion de fichiers son
8 Summary(pl):    Program do konwersji plików d¼wiêkowych
9 Summary(tr):    Genel amaçlý ses dosyasý çevirme aracý
10 Name:           sox
11 Version:        12.17.1
12 Release:        3
13 LIcense:        Distributable
14 Group:          Applications/Sound
15 Group(de):      Applikationen/Laut
16 Group(pl):      Aplikacje/D¼wiêk
17 Source0:        http://home.sprynet.com/sprynet/cbagwell/%{name}-%{version}.tar.gz
18 Patch0:         %{name}-paths.patch
19 Patch1:         %{name}-makefile.patch
20 Patch2:         %{name}-play.patch
21 Patch3:         %{name}-types.patch
22 Patch4:         %{name}-saywhat.patch
23 PAtch5:         %{name}-soundcard.patch
24 URL:            http://home.sprynet.com/~cbagwell/sox.html
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 Group:          Development/Libraries
49 Group(de):      Entwicklung/Libraries
50 Group(fr):      Development/Librairies
51 Group(pl):      Programowanie/Biblioteki
52
53 %description devel 
54 This package contains the library needed for compiling applications
55 which will use the SoX sound file format converter.
56
57 Install sox-devel if you want to develop applications which will use
58 SoX.
59
60 %description devel -l pl
61 Tan pakiet zawiera biblioteki potrzebne do kompilacji aplikacji, które
62 bêd± wykorzystywa³y konwerter formatów plików d¼wiêkowych SoX.
63
64 %prep
65 %setup -q 
66 %patch0 -p1
67 %patch1 -p1
68 %patch2 -p1
69 %patch3 -p1
70 %patch4 -p1
71 %patch5 -p1
72
73 %build
74 %configure \
75         --with-oss-dsp \
76         --with-gsm \
77 %ifnarch sparc sparc64
78         %{!?_without_alsa:--with-alsa-dsp}
79 %endif
80
81 %{__make} PREFIX=%{_prefix}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}
86
87 %{__make} install install-lib \
88         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
89         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
90         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
91         LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
92         INCDIR=$RPM_BUILD_ROOT%{_includedir} \
93         INSTALL_DIR=$RPM_BUILD_ROOT 
94
95 echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/soxplay
96 echo "" >> $RPM_BUILD_ROOT%{_bindir}/soxplay
97 echo '%{_bindir}/sox $1 -t .au - > /dev/audio' >> $RPM_BUILD_ROOT%{_bindir}/soxplay
98
99 echo .so play.1 >$RPM_BUILD_ROOT%{_mandir}/man1/rec.1
100
101 gzip -9nf Changelog README TODO INSTALL
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %files
107 %defattr(644,root,root,755)
108 %doc *.gz monkey.*
109 %attr(755,root,root) %{_bindir}/sox
110 %attr(755,root,root) %{_bindir}/play   
111 %attr(755,root,root) %{_bindir}/rec  
112 %attr(755,root,root) %{_bindir}/soxplay
113 %{_mandir}/man1/*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %{_libdir}/libst.a
118 %{_includedir}/st.h
119 %{_mandir}/man3/*
This page took 0.090467 seconds and 4 git commands to generate.