]> git.pld-linux.org Git - packages/audacity.git/blob - audacity.spec
- rel 2 for fixed desktop file
[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.2
10 Release:        2
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:  68d60659ad936792f6d7d746a40a7179
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:  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 %{?with_gtk1:BuildRequires:     wxGTK-devel >= 2.4.0}
36 %{?!with_gtk1:BuildRequires:    wxGTK2-devel >= 2.4.0}
37 BuildRequires:  zip
38 Requires:       lame-libs
39 Requires:       libid3tag >= 0.15.0b-2
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 Audacity is a program that lets you manipulate digital audio
44 waveforms. It imports many sound file formats, including WAV, AIFF,
45 AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing
46 operations such as Cut, Copy, and Paste, plus it will mix tracks and
47 let you apply plug-in effects to any part of a sound.
48
49 %description -l pl
50 Audacity to program obs³uguj±cy ró¿ne formaty plików audio. Obs³uguje
51 WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umo¿liwia
52 wykonywanie podstawowych czynno¶ci edycyjnych takich jak kasowanie,
53 wstawianie i miksowanie ¶cie¿ki d¼wiêkowej. Umo¿liwia tak¿e
54 wykonywanie dowolnych innych operacji poprzez system wtyczek.
55
56 %description -l ru
57 Audacity - ýòî çâóêîâîé ðåäàêòîð, ïîçâîëÿþùèé ðàáîòàòü ñ ôàéëàìè â
58 ôîðìàòàõ WAV, AIFF, AU, IRCAM, MP3 è Ogg Vorbis. Â íåì ðåàëèçîâàíû âñå
59 îñíîâíûå îïåðàöèè, òàêèå êàê óäàëåíèå, êîïèðîâàíèå, âñòàâêà,
60 ìèêøèðîâàíèå òðåêîâ è ïðèìåíåíèå ýôôåêòîâ, îôîðìëåííûõ â âèäå
61 ïëàãèíîâ, ê ëþáîé ÷àñòè çâóêîâîãî ôàéëà.
62
63 %prep
64 %setup -q -n %{name}-src-%{version}
65 %patch0 -p1
66 %patch1 -p1
67 %patch2 -p1
68 %patch3 -p1
69
70 %build
71 cp -f /usr/share/automake/config.sub .
72 %{__autoconf}
73 export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
74 %configure \
75         --with-help \
76         --with-id3tag=system \
77         --with-libmad=system \
78         --with-libsamplerate=system \
79         --with-libsndfile=system \
80         --with-libflac=system \
81         --with-vorbis=system
82
83 %{__make} \
84         CCC="%{__cxx} -fno-rtti" \
85         OPTFLAGS="%{rpmcflags}"
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT \
93         INSTALL_PATH=$RPM_BUILD_ROOT
94
95 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
96 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
97
98 %find_lang %{name}
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %doc README.txt
106 %attr(755,root,root) %{_bindir}/audacity
107 %{_datadir}/%{name}
108 %{_mandir}/man1/*.1*
109 %{_desktopdir}/*
110 %{_pixmapsdir}/*
This page took 0.45775 seconds and 4 git commands to generate.