]> git.pld-linux.org Git - packages/audacity.git/blob - audacity.spec
- one more BR
[packages/audacity.git] / audacity.spec
1 #
2 # Conditional build:
3 # _with_gtk1    - use wxGTK instead of wxGTK2
4 #
5 Summary:        Audacity - manipulate digital audio waveforms
6 Summary(pl):    Audacity - narzêdzie do obróbki plików d¼wiêkowych
7 Summary(ru):    Êðîññïëàòôîðìåííûé çâóêîâîé ðåäàêòîð
8 Name:           audacity
9 Version:        1.1.3
10 Release:        2
11 License:        GPL
12 Vendor:         Dominic Mazzoni <dominic@minorninth.com>
13 Group:          X11/Applications/Sound
14 Source0:        http://dl.sourceforge.net/%{name}/%{name}-src-%{version}.tgz
15 # Source0-md5:  ec00d14cb2d7b3a28aab7e6aa098acf3
16 Source1:        %{name}.desktop
17 Source2:        %{name}-icon.png
18 Patch0:         %{name}-system-expat.patch
19 Patch1:         %{name}-helpfile_location.patch
20 Patch2:         %{name}-not_require_lame-libs-devel.patch
21 Patch3:         %{name}-opt.patch
22 URL:            http://audacity.sourceforge.net/
23 BuildRequires:  autoconf
24 BuildRequires:  expat-devel
25 BuildRequires:  fftw-devel >= 2.1.4
26 BuildRequires:  flac-devel
27 BuildRequires:  libjpeg-devel
28 BuildRequires:  libsamplerate-devel
29 BuildRequires:  libsndfile-devel
30 BuildRequires:  libstdc++-devel
31 BuildRequires:  libvorbis-devel >= 1:1.0
32 BuildRequires:  mad-devel >= 0.14.2b-4
33 BuildRequires:  libid3tag-devel
34 BuildRequires:  zip
35 BuildRequires:  gettext-devel
36 %{?_with_gtk1:BuildRequires:    wxGTK-devel >= 2.4.0}
37 %{!?_with_gtk1:BuildRequires:   wxGTK2-devel >= 2.4.0}
38 Requires:       lame-libs
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Audacity is a program that lets you manipulate digital audio
43 waveforms. It imports many sound file formats, including WAV, AIFF,
44 AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing
45 operations such as Cut, Copy, and Paste, plus it will mix tracks and
46 let you apply plug-in effects to any part of a sound.
47
48 %description -l pl
49 Audacity to program obs³uguj±cy ró¿ne formaty plików audio. Obs³uguje
50 WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umo¿liwia
51 wykonywanie podstawowych czynno¶ci edycyjnych takich jak kasowanie,
52 wstawianie i miksowanie ¶cie¿ki d¼wiêkowej. Umo¿liwia tak¿e
53 wykonywanie dowolnych innych operacji poprzez system wtyczek.
54
55 %description -l ru
56 Audacity - ýòî çâóêîâîé ðåäàêòîð, ïîçâîëÿþùèé ðàáîòàòü ñ ôàéëàìè â
57 ôîðìàòàõ WAV, AIFF, AU, IRCAM, MP3 è Ogg Vorbis. Â íåì ðåàëèçîâàíû âñå
58 îñíîâíûå îïåðàöèè, òàêèå êàê óäàëåíèå, êîïèðîâàíèå, âñòàâêà,
59 ìèêøèðîâàíèå òðåêîâ è ïðèìåíåíèå ýôôåêòîâ, îôîðìëåííûõ â âèäå
60 ïëàãèíîâ, ê ëþáîé ÷àñòè çâóêîâîãî ôàéëà.
61
62 %prep
63 %setup -q -n %{name}-src-%{version}
64 %patch0 -p1
65 %patch1 -p1
66 %patch2 -p1
67 %patch3 -p1
68
69 %build
70 %{__autoconf}
71 export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
72 %configure \
73         --with-help \
74         --with-id3tag=system \
75         --with-libmad=system \
76         --with-libsamplerate=system \
77         --with-libsndfile=system \
78         --with-libflac=system \
79         --with-vorbis=system
80
81 %{__make} \
82         CCC="%{__cxx} -fno-exceptions -fno-rtti" \
83         OPTFLAGS="%{rpmcflags}"
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Multimedia,%{_pixmapsdir}}
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT \
91         INSTALL_PATH=$RPM_BUILD_ROOT
92
93 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
94 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
95
96 # not built in this version
97 #install audacity-help.htb $RPM_BUILD_ROOT%{_datadir}/%{name}
98
99 %find_lang %{name}
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %files -f %{name}.lang
105 %defattr(644,root,root,755)
106 %doc README.txt
107 %attr(755,root,root) %{_bindir}/audacity
108 %{_datadir}/%{name}
109 %{_mandir}/man1/*.1*
110 %{_applnkdir}/*/*
111 %{_pixmapsdir}/*
This page took 0.114954 seconds and 4 git commands to generate.