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