# Compile options: # --with mp3 : enable mp3 support %define tartopdir audacity-src-1.3.9 Name: audacity Version: 1.3.9 Release: 0.1.beta%{?dist} Summary: Multitrack audio editor Group: Applications/Multimedia License: GPLv2 URL: http://audacity.sourceforge.net Source0: http://downloads.sf.net/sourceforge/audacity/audacity-minsrc-%{version}.tar.bz2 Source1: audacity.png Source2: audacity.desktop Patch1: audacity-1.3.7-libmp3lame-default.patch Patch2: audacity-1.3.9-libdir.patch Patch3: audacity-1.3.8-gsocket-conflict.patch Patch6: audacity-1.3.7-vamp-1.3.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils BuildRequires: expat-devel BuildRequires: flac-devel BuildRequires: gettext BuildRequires: jack-audio-connection-kit-devel BuildRequires: ladspa-devel BuildRequires: libid3tag-devel BuildRequires: taglib-devel BuildRequires: libogg-devel BuildRequires: libsamplerate-devel BuildRequires: libsndfile-devel BuildRequires: libvorbis-devel BuildRequires: soundtouch-devel %if 0%{?fedora} < 11 BuildRequires: vamp-plugin-sdk-devel %else BuildRequires: vamp-plugin-sdk-devel >= 2.0 %endif BuildRequires: zip BuildRequires: zlib-devel BuildRequires: wxGTK-devel %{?_with_mp3:BuildRequires: libmad-devel} %description Audacity is a cross-platform multitrack audio editor. It allows you to record sounds directly or to import files in various formats. It features a few simple effects, all of the editing features you should need, and unlimited undo. The GUI was built with wxWidgets and the audio I/O supports OSS and ALSA under Linux. %prep %setup -q -n %{tartopdir} # Substitute hardcoded library paths. %patch1 -p1 %patch2 -p1 for i in src/effects/ladspa/LoadLadspa.cpp src/AudacityApp.cpp do sed -i -e 's!__RPM_LIBDIR__!%{_libdir}!g' $i sed -i -e 's!__RPM_LIB__!%{_lib}!g' $i done grep -q -s __RPM_LIB * -R && exit 1 %patch3 -p1 -b .gsocket-conflict %if 0%{?fedora} < 11 %patch6 -p1 -b .vamp-1.3 %endif # Substitute occurences of "libmp3lame.so" with "libmp3lame.so.0". for i in locale/*.po src/export/ExportMP3.cpp do sed -i -e 's!libmp3lame.so\([^.]\)!libmp3lame.so.0\1!g' $i done %build %configure \ --with-help \ --with-libsndfile=system \ --without-libresample \ --with-libsamplerate=system \ --with-libflac=system \ --with-ladspa \ --with-vorbis=system \ --with-id3tag=system \ --with-expat=system \ --with-soundtouch=system \ --without-ffmpeg \ %{?_with_mp3:--with-libmad=system} # _smp_mflags cause problems make %install rm -rf ${RPM_BUILD_ROOT} mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps make DESTDIR=${RPM_BUILD_ROOT} install # Audacity 1.3.8-beta complains if the help/manual directories # don't exist. mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/help/manual %{find_lang} %{name} rm -f $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop desktop-file-install \ --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE2} %clean rm -rf ${RPM_BUILD_ROOT} %post umask 022 update-mime-database %{_datadir}/mime &> /dev/null || : update-desktop-database &> /dev/null || : %postun umask 022 update-mime-database %{_datadir}/mime &> /dev/null || : update-desktop-database &> /dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %{_bindir}/%{name} %{_datadir}/%{name}/ %{_mandir}/man*/* %{_datadir}/applications/* %{_datadir}/pixmaps/* %{_datadir}/mime/packages/* %doc %{_datadir}/doc/* %changelog * Thu Sep 3 2009 Michael Schwendt - 1.3.9-0.1.beta - upgrade to 1.3.9-beta - upstream's changes in the device prefs code make the audiodevdefaults patch unnecessary afaic see * Fri Jul 24 2009 Fedora Release Engineering - 1.3.8-0.3.beta - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jul 20 2009 Michael Schwendt - 1.3.8-0.2.beta - glib2 2.21.1's gio in Rawhide F-12 introduces a GSocket that conflicts with wxGTK's GSocket class (gsocket.h): as a work-around, include less glib headers * Mon Jul 20 2009 Michael Schwendt - 1.3.8-0.1.beta - upgrade to 1.3.8-beta - BR taglib-devel - patches merged/obsoleted upstream: audacity-1.3.7-portaudio-non-mmap-alsa.patch audacity-1.3.7-repeat.patch audacity-1.3.6-flac-import.patch * Wed May 13 2009 Michael Schwendt - 1.3.7-0.7.beta - retag up-to-date files and copy to F-10/F-11 * Mon Mar 2 2009 Michael Schwendt - 1.3.7-0.6.beta - revise default device names patch, so it doesn't save the defaults * Sun Mar 1 2009 Michael Schwendt - 1.3.7-0.5.beta - show default device names in Audio I/O preferences * Sat Feb 28 2009 Kevin Kofler - 1.3.7-0.4.beta - remove no longer needed default hostapi hunk of the non-mmap-alsa patch * Sat Feb 28 2009 Michael Schwendt - 1.3.7-0.3.beta - F-10/F-9 only: patch to build with older Vamp API 1.3 - upgrade to 1.3.7-beta pkg from test branch in Fedora cvs * Mon Feb 23 2009 Fedora Release Engineering - 1.3.5-0.13.beta - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 2 2009 Michael Schwendt - 1.3.5-0.12.beta - buildrequire >= 2.0 of Vamp SDK (because we adjust the include paths and to avoid that the unpatched local copy is used if system version is too old) * Fri Jan 2 2009 David Timms - 1.3.5-0.11.beta - add PortAudio non mmap alsa patch (Kevin Kofler) bz 445644 allows record and playback through pulseaudio * Wed Dec 17 2008 Michael Schwendt - 1.3.5-0.10.beta - patch include paths for changes in new vamp-plugin-sdk-devel * Wed Dec 17 2008 Michael Schwendt - 1.3.5-0.9.beta - rebuild in Rawhide for new SONAME in vamp-plugin-sdk - BR wxGTK-devel for rename of wxGTK2-devel * Tue Nov 4 2008 Michael Schwendt - 1.3.5-0.8.beta - insert a guard in ImportFLAC next to the import assertion * Tue Nov 4 2008 Michael Schwendt - 1.3.5-0.7.beta - BR vamp-plugin-sdk-devel - no longer build with included Vamp API, also drop Vamp multilib patch * Thu Aug 28 2008 Michael Schwendt - 1.3.5-0.6.beta - rediff some patches for Fedora fuzz=0 pedantry * Sun Jun 8 2008 Michael Schwendt - 1.3.5-0.5.beta - fix bad fr.po that makes Fichier>Open dialog too wide * Thu May 15 2008 Michael Schwendt - 1.3.5-0.4.beta - desktop-file: drop deprecated Encoding, drop Icon file extension * Thu May 15 2008 Michael Schwendt - 1.3.5-0.3.beta - merge 1.3.5-beta from test branch * Fri May 9 2008 Michael Schwendt - 1.3.5-0.2.beta - update to 1.3.5-beta - expat2 patch merged upstream - scriptlets: run update-desktop-database without path - drop scriptlet dependencies * Mon May 5 2008 Michael Schwendt - 1.3.5-0.1.rc3.20080505cvs - update to 1.3.5-rc3 cvs snapshot - ExportMP3.cpp libdir patch obsolete * Sat May 3 2008 Michael Schwendt - 1.3.4-0.7.20080123cvs - check ownership of temporary files directory (#436260) (CVE-2007-6061) * Sat Apr 12 2008 Michael Schwendt - 1.3.4-0.6.20080123cvs - set a default location for libmp3lame.so.0 again * Fri Mar 21 2008 Michael Schwendt - 1.3.4-0.5.20080123cvs - package the old 1.3.2-beta and a post 1.3.4-beta snapshot in the same package -- users may stick to the older one, but please help with evaluating the newer one - merge packaging changes from my 1.3.3/1.3.4 test packages: - build newer release with wxGTK 2.8.x - BR soundtouch-devel and --with-soundtouch=system - drop obsolete patches: resample, mp3 export, destdir, FLAC, fr * Fri Mar 21 2008 Michael Schwendt - 1.3.2-20 - make soundtouch and allegro build with RPM optflags * Sun Feb 10 2008 Michael Schwendt - 1.3.2-19 - rawhide: patch for JACK 0.109.0 API changes (jack_port_lock/unlock removal). - rebuilt for GCC 4.3 as requested by Fedora Release Engineering - subst _libdir in ladspa plugin loader * Thu Jan 3 2008 Michael Schwendt - 1.3.2-18 - Patch for GCC 4.3.0 C++. * Fri Nov 16 2007 Michael Schwendt - 1.3.2-17 - rebuilt for FLAC 1.1.4 -> 1.2.x upgrade, which broke FLAC import * Tue Aug 28 2007 Michael Schwendt - 1.3.2-16 - rebuilt for new expat (#195888) * Tue Aug 21 2007 Michael Schwendt - 1.3.2-15 - rebuild per request on fedora-devel-list - clarify licence (GPLv2) * Mon Mar 5 2007 Michael Schwendt - add umask 022 to scriptlets * Sat Feb 24 2007 Michael Schwendt - 1.3.2-14 - patch for FLAC 1.1.4 API compatibility * Sat Feb 24 2007 Michael Schwendt - 1.3.2-13 - patch ExportMP3.cpp (MPEG-2 Layer III bitrates resulted in broken/empty files) - convert locale related perl substitutions into patches (safer) - configure with portaudio/portmixer defaults - drop category Application from desktop file - fix the libmp3lame.so.0 subst - subst _libdir in libmp3lame search - use sed instead of perl * Fri Feb 23 2007 Gerard Milmeister - 1.3.2-12 - build with wxGTK 2.6 compatibility package * Sun Feb 18 2007 Gerard Milmeister - 1.3.2-11.20070106cvs - added patch for compiling with libsamplerate * Thu Feb 15 2007 Gerard Milmeister - 1.3.2-9.20070106cvs - disable flac for now * Thu Feb 15 2007 Gerard Milmeister - 1.3.2-8.20070106cvs - compile with jack * Mon Feb 5 2007 Gerard Milmeister - 1.3.2-7.20070106cvs - compile with libsamplerate * Mon Jan 22 2007 Gerard Milmeister - 1.3.2-6.20070106cvs - convert french locale to iso-8859-1 * Sat Jan 6 2007 Gerard Milmeister - 1.3.2-5.20070106cvs - corrected cvs date * Sat Jan 6 2007 Gerard Milmeister - 1.3.2-3.cvs20060106 - update to cvs * Fri Jan 5 2007 Gerard Milmeister - 1.3.2-2 - remove -msse flag for ppc * Fri Jan 5 2007 Gerard Milmeister - 1.3.2-1 - new version 1.3.2 * Tue Jan 2 2007 Gerard Milmeister - 1.2.6-1 - new version 1.2.6 * Sat Nov 11 2006 Gerard Milmeister - 1.2.5-3 - correct mime types in .desktop file - msse flag only on intel * Fri Nov 3 2006 Gerard Milmeister - 1.2.5-2 - remove -msse flag for ppc * Fri Nov 3 2006 Gerard Milmeister - 1.2.5-1 - new version 1.2.5 * Mon Aug 28 2006 Gerard Milmeister - 1.2.4-0.2.b - Rebuild for FE6 * Fri Mar 17 2006 Michael Schwendt - 1.2.4-0.1.b - Update to 1.2.4b (stable release). - Follow upstream recommendation and use the GTK+ 1.x wxGTK. This is because of various issues with fonts/layout/behaviour. - Build with compat-wxGTK-devel. - Modify build section to find wx-2.4-config instead of wx-config. * Fri May 20 2005 David Woodhouse - 1.2.3-5 - Bump release number again due to spurious build system failure and the fact that the build system seems to be ignoring repeated build requests for the previous version. * Fri May 20 2005 David Woodhouse - 1.2.3-4 - Add more possible MIME types for ogg which may be seen even though they're not standard. * Thu Apr 7 2005 Gerard Milmeister - 1.2.3-3 - Build gtk2 version by default * Fri Apr 7 2005 Michael Schwendt - rebuilt * Tue Apr 5 2005 Gerard Milmeister - 1.2.3-2 - Rebuild to pick a new FLAC dependencies * Sat Nov 20 2004 Gerard Milmeister - 0:1.2.3-1 - New Version 1.2.3 * Sat Oct 30 2004 Michael Schwendt - 0:1.2.2-0.fdr.1 - Update to 1.2.2, patch aboutdialog to be readable with wxGTK. * Mon May 10 2004 Gerard Milmeister - 0:1.2.1-0.fdr.1 - New Version 1.2.1 * Sun Apr 11 2004 Gerard Milmeister - 0:1.2.0-0.fdr.2 - Fix for Language.cpp restored * Tue Mar 2 2004 Gerard Milmeister - 0:1.2.0-0.fdr.1 - New Version 1.2.0 * Mon Nov 24 2003 Gerard Milmeister - 0:1.2.0-0.fdr.4.pre3 - Added icon - Separated mp3 plugin * Sun Nov 23 2003 Gerard Milmeister - 0:1.2.0-0.fdr.2.pre3 - Changes to specfile * Sun Nov 2 2003 Gerard Milmeister - 0:1.2.0-0.fdr.1.pre3 - New upstream version 1.2.0-pre3 * Sat Oct 25 2003 Gerard Milmeister - 0:1.2.0-pre2.fdr.1 - First Fedora release