+#
+# Conditional build:
+%bcond_with gtk1 # use wxGTK instead of wxGTK2
+#
Summary: Audacity - manipulate digital audio waveforms
Summary(pl): Audacity - narzêdzie do obróbki plików d¼wiêkowych
+Summary(ru): Êðîññïëàòôîðìåííûé çâóêîâîé ðåäàêòîð
Name: audacity
-%define ver 1.1.1
-%define subv 3
-Version: %{ver}.%{subv}
-Release: 1
+Version: 1.2.0
+%define _pre pre3
+Release: 0.%{_pre}.1
License: GPL
Vendor: Dominic Mazzoni <dominic@minorninth.com>
Group: X11/Applications/Sound
-Source0: http://dl.sourceforge.net/%{name}/%{name}-src-%{ver}-%{subv}.tgz
+Source0: http://dl.sourceforge.net/audacity/%{name}-src-%{version}-%{_pre}.tar.bz2
+# Source0-md5: a7efddd64e2ce3e380614796d689e11f
Source1: %{name}.desktop
Source2: %{name}-icon.png
Patch0: %{name}-system-expat.patch
Patch1: %{name}-helpfile_location.patch
Patch2: %{name}-not_require_lame-libs-devel.patch
Patch3: %{name}-opt.patch
-Patch4: %{name}-segv.patch
URL: http://audacity.sourceforge.net/
BuildRequires: autoconf
BuildRequires: expat-devel
+BuildRequires: fftw-devel >= 2.1.4
+BuildRequires: flac-devel
+BuildRequires: gettext-devel
+BuildRequires: libid3tag-devel >= 0.15.0b-2
BuildRequires: libjpeg-devel
+BuildRequires: libmad-devel >= 0.14.2b-4
+BuildRequires: libsamplerate-devel
BuildRequires: libsndfile-devel
BuildRequires: libstdc++-devel
BuildRequires: libvorbis-devel >= 1:1.0
-BuildRequires: mad-devel
-BuildRequires: wxGTK-devel >= 2.4.0
+%{?with_gtk1:BuildRequires: wxGTK-devel >= 2.4.0}
+%{?!with_gtk1:BuildRequires: wxGTK2-devel >= 2.4.0}
+BuildRequires: zip
Requires: lame-libs
+Requires: libid3tag >= 0.15.0b-2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Audacity is a program that manipulates digital audio waveforms.
-Supports wav, mp3 and ogg/vorbis.
+Audacity is a program that lets you manipulate digital audio
+waveforms. It imports many sound file formats, including WAV, AIFF,
+AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing
+operations such as Cut, Copy, and Paste, plus it will mix tracks and
+let you apply plug-in effects to any part of a sound.
%description -l pl
-Audacity to program obs³uguj±cy ró¿ne formaty dzwiêku cyfrowego.
-Obs³uguje .wav, .mp3 oraz ogg/vorbis.
+Audacity to program obs³uguj±cy ró¿ne formaty plików audio. Obs³uguje
+WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umo¿liwia
+wykonywanie podstawowych czynno¶ci edycyjnych takich jak kasowanie,
+wstawianie i miksowanie ¶cie¿ki d¼wiêkowej. Umo¿liwia tak¿e
+wykonywanie dowolnych innych operacji poprzez system wtyczek.
+
+%description -l ru
+Audacity - ýòî çâóêîâîé ðåäàêòîð, ïîçâîëÿþùèé ðàáîòàòü ñ ôàéëàìè â
+ôîðìàòàõ WAV, AIFF, AU, IRCAM, MP3 è Ogg Vorbis. Â íåì ðåàëèçîâàíû âñå
+îñíîâíûå îïåðàöèè, òàêèå êàê óäàëåíèå, êîïèðîâàíèå, âñòàâêà,
+ìèêøèðîâàíèå òðåêîâ è ïðèìåíåíèå ýôôåêòîâ, îôîðìëåííûõ â âèäå
+ïëàãèíîâ, ê ëþáîé ÷àñòè çâóêîâîãî ôàéëà.
%prep
-%setup -q -n %{name}-src-%{ver}-%{subv}
+%setup -q -n %{name}-src-%{version}-%{_pre}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch4 -p1
%build
%{__autoconf}
-export WX_CONFIG=/usr/bin/wxgtk2-2.4-config
+export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
%configure \
+ --with-help \
--with-id3tag=system \
--with-libmad=system \
+ --with-libsamplerate=system \
--with-libsndfile=system \
+ --with-libflac=system \
--with-vorbis=system
%{__make} \
- CCC="%{__cxx} -fno-exceptions -fno-rtti" \
+ CCC="%{__cxx} -fno-rtti" \
OPTFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_applnkdir}/Multimedia,%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
%{__make} install \
- PREFIX=$RPM_BUILD_ROOT%{_prefix}
+ DESTDIR=$RPM_BUILD_ROOT \
+ INSTALL_PATH=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-# not built in this version
-#install audacity-help.htb $RPM_BUILD_ROOT%{_datadir}/%{name}
+install audacity-1.2-help.htb $RPM_BUILD_ROOT%{_datadir}/%{name}
%find_lang %{name}
%attr(755,root,root) %{_bindir}/audacity
%{_datadir}/%{name}
%{_mandir}/man1/*.1*
-%{_applnkdir}/*/*
+%{_desktopdir}/*
%{_pixmapsdir}/*