021b88b
# Compile options:
021b88b
# --with mp3          : enable mp3 support
021b88b
47c8f54
%define tartopdir audacity-src-1.3.5-beta
47c8f54
47c8f54
Name: audacity
47c8f54
Version: 1.3.5
c205015
Release: 0.8.beta%{?dist}
47c8f54
Summary: Multitrack audio editor
47c8f54
Group: Applications/Multimedia
47c8f54
License: GPLv2
47c8f54
URL: http://audacity.sourceforge.net
47c8f54
47c8f54
Source0: http://downloads.sf.net/sourceforge/audacity/audacity-src-1.3.5.tar.bz2
47c8f54
Source1: audacity.png
47c8f54
Source2: audacity.desktop
47c8f54
47c8f54
Patch1: audacity-1.3.4-libmp3lame-default.patch
a2caec2
Patch2: audacity-1.3.5-libdir.patch
8f999c1
Patch3: audacity-1.3.5-fr.patch
c205015
Patch4: audacity-1.3.5-flac-import.patch
47c8f54
47c8f54
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
47c8f54
BuildRequires: alsa-lib-devel
47c8f54
BuildRequires: desktop-file-utils
47c8f54
BuildRequires: expat-devel
47c8f54
BuildRequires: flac-devel
47c8f54
BuildRequires: gettext
47c8f54
BuildRequires: jack-audio-connection-kit-devel
47c8f54
BuildRequires: ladspa-devel
47c8f54
BuildRequires: libid3tag-devel
47c8f54
BuildRequires: libogg-devel
47c8f54
BuildRequires: libsamplerate-devel
47c8f54
BuildRequires: libsndfile-devel
47c8f54
BuildRequires: libvorbis-devel
47c8f54
BuildRequires: soundtouch-devel
a2caec2
BuildRequires: vamp-plugin-sdk-devel
47c8f54
BuildRequires: zip
47c8f54
BuildRequires: zlib-devel
47c8f54
BuildRequires: wxGTK2-devel
47c8f54
%{?_with_mp3:BuildRequires: libmad-devel}
47c8f54
cvsextras 28e0689
cvsextras 28e0689
%description
cvsextras 28e0689
Audacity is a cross-platform multitrack audio editor. It allows you to
cvsextras 28e0689
record sounds directly or to import Ogg, WAV, AIFF, AU, IRCAM, or MP3
cvsextras 28e0689
files. It features a few simple effects, all of the editing features
cvsextras 28e0689
you should need, and unlimited undo. The GUI was built with wxWindows
cvsextras 28e0689
and the audio I/O currently uses OSS under Linux. Audacity runs on
cvsextras 28e0689
Linux/*BSD, MacOS, and Windows.
cvsextras 28e0689
cvsextras 28e0689
%prep
47c8f54
%setup -q -n %{tartopdir}
98247b8
2bac211
# Substitute hardcoded library paths.
47c8f54
%patch1 -p1
47c8f54
%patch2 -p1
a2caec2
for i in src/effects/ladspa/LoadLadspa.cpp src/export/ExportMP3.cpp src/AudacityApp.cpp
cvsextras 28e0689
do
2bac211
    sed -i -e 's!__RPM_LIBDIR__!%{_libdir}!g' $i
2bac211
    sed -i -e 's!__RPM_LIB__!%{_lib}!g' $i
cvsextras 28e0689
done
2bac211
grep -q -s __RPM_LIB * -R && exit 1
2bac211
8f999c1
%patch3 -p1 -b .fr
c205015
%patch4 -p1 -b .dumb-flac-import
484b0d9
2bac211
# Substitute occurences of "libmp3lame.so" with "libmp3lame.so.0".
47c8f54
for i in locale/*.po src/export/ExportMP3.cpp
98247b8
do
2bac211
    sed -i -e 's!libmp3lame.so\([^.]\)!libmp3lame.so.0\1!g' $i
98247b8
done
98247b8
1a421ba
77ba62c
%build
47c8f54
%configure \
47c8f54
    --with-help \
47c8f54
    --with-libsndfile=system \
47c8f54
    --without-libresample \
47c8f54
    --with-libsamplerate=system \
47c8f54
    --with-libflac=system \
47c8f54
    --with-ladspa \
47c8f54
    --with-vorbis=system \
47c8f54
    --with-id3tag=system \
47c8f54
    --with-expat=system \
47c8f54
    --with-soundtouch=system \
47c8f54
    %{?_with_mp3:--with-libmad=system}
47c8f54
# _smp_mflags cause problems
cvsextras 28e0689
make
cvsextras 28e0689
77ba62c
cvsextras 28e0689
%install
cvsextras 28e0689
rm -rf ${RPM_BUILD_ROOT}
47c8f54
cvsextras 28e0689
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsextras 28e0689
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsextras 28e0689
47c8f54
make DESTDIR=${RPM_BUILD_ROOT} install
47c8f54
47c8f54
%{find_lang} %{name}
47c8f54
47c8f54
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
77ba62c
desktop-file-install \
77ba62c
    --vendor fedora \
cvsextras 28e0689
    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
47c8f54
    %{SOURCE2}
cvsextras 28e0689
77ba62c
cvsextras 28e0689
%clean
cvsextras 28e0689
rm -rf ${RPM_BUILD_ROOT}
cvsextras 28e0689
77ba62c
021b88b
%post
653879b
umask 022
47c8f54
update-mime-database %{_datadir}/mime &> /dev/null || :
47c8f54
update-desktop-database &> /dev/null || :
77ba62c
021b88b
021b88b
%postun
653879b
umask 022
47c8f54
update-mime-database %{_datadir}/mime &> /dev/null || :
47c8f54
update-desktop-database &> /dev/null || :
77ba62c
021b88b
cvsextras 28e0689
%files -f %{name}.lang
cvsextras 28e0689
%defattr(-,root,root,-)
47c8f54
%{_bindir}/%{name}
47c8f54
%{_datadir}/%{name}/
77ba62c
%{_mandir}/man*/*
cvsextras 28e0689
%{_datadir}/applications/*
cvsextras 28e0689
%{_datadir}/pixmaps/*
77ba62c
%{_datadir}/mime/packages/*
cvsextras 28e0689
%doc %{_datadir}/doc/*
cvsextras 28e0689
d6e7261
cvsextras 28e0689
%changelog
c205015
* Sat Jan 17 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.8.beta
c205015
- build this for F-9 for the broken dependency caused by the
c205015
  changed SONAME in vamp-plugin-sdk-1.3-2.fc9
c205015
c205015
* Tue Nov  4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.8.beta
c205015
- insert a guard in ImportFLAC next to the import assertion
c205015
a2caec2
* Tue Nov  4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.7.beta
a2caec2
- BR vamp-plugin-sdk-devel
a2caec2
- no longer build with included Vamp API, also drop Vamp multilib patch
a2caec2
a2caec2
* Thu Aug 28 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.6.beta
a2caec2
- rediff some patches for Fedora fuzz=0 pedantry
a2caec2
aee1006
* Sun Jun  8 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.5.beta
aee1006
- fix bad fr.po that makes Fichier>Open dialog too wide
aee1006
47c8f54
* Thu May 15 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.4.beta
47c8f54
- desktop-file: drop deprecated Encoding, drop Icon file extension
47c8f54
47c8f54
* Thu May 15 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.3.beta
47c8f54
- merge 1.3.5-beta from test branch
47c8f54
47c8f54
* Fri May  9 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.2.beta
47c8f54
- update to 1.3.5-beta
47c8f54
- expat2 patch merged upstream
47c8f54
- scriptlets: run update-desktop-database without path
47c8f54
- drop scriptlet dependencies
47c8f54
47c8f54
* Mon May  5 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.1.rc3.20080505cvs
47c8f54
- update to 1.3.5-rc3 cvs snapshot
47c8f54
- ExportMP3.cpp libdir patch obsolete
47c8f54
47c8f54
* Sat May  3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.4-0.7.20080123cvs
3186fbd
- check ownership of temporary files directory (#436260) (CVE-2007-6061)
3186fbd
47c8f54
* Sat Apr 12 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.4-0.6.20080123cvs
47c8f54
- set a default location for libmp3lame.so.0 again
47c8f54
47c8f54
* Fri Mar 21 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.4-0.5.20080123cvs
47c8f54
- package the old 1.3.2-beta and a post 1.3.4-beta snapshot in the
47c8f54
  same package -- users may stick to the older one, but please help
47c8f54
  with evaluating the newer one
47c8f54
- merge packaging changes from my 1.3.3/1.3.4 test packages:
47c8f54
- build newer release with wxGTK 2.8.x  
47c8f54
- BR soundtouch-devel  and  --with-soundtouch=system
47c8f54
- drop obsolete patches: resample, mp3 export, destdir, FLAC, fr
47c8f54
006cfc8
* Fri Mar 21 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-20
006cfc8
- make soundtouch and allegro build with RPM optflags
006cfc8
781c49e
* Sun Feb 10 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-19
4dbb776
- rawhide: patch for JACK 0.109.0 API changes (jack_port_lock/unlock removal).
781c49e
- rebuilt for GCC 4.3 as requested by Fedora Release Engineering
2bac211
- subst _libdir in ladspa plugin loader
2bac211
2bac211
* Thu Jan  3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-18
eb0acc9
- Patch for GCC 4.3.0 C++.
eb0acc9
2bac211
* Fri Nov 16 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-17
97b0406
- rebuilt for FLAC 1.1.4 -> 1.2.x upgrade, which broke FLAC import
97b0406
2bac211
* Tue Aug 28 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-16
cf831a2
- rebuilt for new expat (#195888)
cf831a2
2bac211
* Tue Aug 21 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-15
7a63194
- rebuild per request on fedora-devel-list
7a63194
- clarify licence (GPLv2)
7a63194
2bac211
* Mon Mar  5 2007 Michael Schwendt <mschwendt@fedoraproject.org>
653879b
- add umask 022 to scriptlets
653879b
2bac211
* Sat Feb 24 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-14
278585d
- patch for FLAC 1.1.4 API compatibility
278585d
2bac211
* Sat Feb 24 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-13
98247b8
- patch ExportMP3.cpp (MPEG-2 Layer III bitrates resulted in
98247b8
  broken/empty files)
98247b8
- convert locale related perl substitutions into patches (safer)
98247b8
- configure with portaudio/portmixer defaults
98247b8
- drop category Application from desktop file
98247b8
- fix the libmp3lame.so.0 subst
98247b8
- subst _libdir in libmp3lame search 
98247b8
- use sed instead of perl
98247b8
18cd6e6
* Fri Feb 23 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-12
18cd6e6
- build with wxGTK 2.6 compatibility package
18cd6e6
132bab4
* Sun Feb 18 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-11.20070106cvs
132bab4
- added patch for compiling with libsamplerate
132bab4
bfd3988
* Thu Feb 15 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-9.20070106cvs
bfd3988
- disable flac for now
bfd3988
c10b707
* Thu Feb 15 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-8.20070106cvs
c10b707
- compile with jack
c10b707
59c2a49
* Mon Feb  5 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-7.20070106cvs
59c2a49
- compile with libsamplerate
59c2a49
6a11b57
* Mon Jan 22 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-6.20070106cvs
6a11b57
- convert french locale to iso-8859-1
6a11b57
e54211f
* Sat Jan  6 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-5.20070106cvs
e54211f
- corrected cvs date
e54211f
d6e7261
* Sat Jan  6 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-3.cvs20060106
d6e7261
- update to cvs
d6e7261
7353b63
* Fri Jan  5 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-2
7353b63
- remove -msse flag for ppc
7353b63
77ba62c
* Fri Jan  5 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.3.2-1
77ba62c
- new version 1.3.2
77ba62c
2c2058a
* Tue Jan  2 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.2.6-1
2c2058a
- new version 1.2.6
2c2058a
7a9e022
* Sat Nov 11 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.2.5-3
7a9e022
- correct mime types in .desktop file
214c621
- msse flag only on intel
214c621
240c82e
* Fri Nov  3 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.2.5-2
240c82e
- remove -msse flag for ppc
240c82e
bdc207a
* Fri Nov  3 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.2.5-1
bdc207a
- new version 1.2.5
bdc207a
1f6c29d
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.2.4-0.2.b
1f6c29d
- Rebuild for FE6
1f6c29d
2bac211
* Fri Mar 17 2006 Michael Schwendt <mschwendt@fedoraproject.org> - 1.2.4-0.1.b
1a421ba
- Update to 1.2.4b (stable release).
1a421ba
- Follow upstream recommendation and use the GTK+ 1.x wxGTK.
1a421ba
  This is because of various issues with fonts/layout/behaviour.
1a421ba
- Build with compat-wxGTK-devel.
1a421ba
- Modify build section to find wx-2.4-config instead of wx-config.
1a421ba
731a1f7
* Fri May 20 2005 David Woodhouse <dwmw2@infradead.org> - 1.2.3-5
731a1f7
- Bump release number again due to spurious build system failure and
731a1f7
  the fact that the build system seems to be ignoring repeated build
731a1f7
  requests for the previous version.
731a1f7
910c558
* Fri May 20 2005 David Woodhouse <dwmw2@infradead.org> - 1.2.3-4
910c558
- Add more possible MIME types for ogg which may be seen even though
910c558
  they're not standard.
910c558
e696c74
* Thu Apr  7 2005 Gerard Milmeister <gemi@bluewin.ch> - 1.2.3-3
e696c74
- Build gtk2 version by default
e696c74
2bac211
* Fri Apr  7 2005 Michael Schwendt <mschwendt@fedoraproject.org>
ca71fc1
- rebuilt
ca71fc1
e9494d9
* Tue Apr  5 2005 Gerard Milmeister <gemi@bluewin.ch> - 1.2.3-2
e9494d9
- Rebuild to pick a new FLAC dependencies
e9494d9
021b88b
* Sat Nov 20 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.3-1
021b88b
- New Version 1.2.3
021b88b
2bac211
* Sat Oct 30 2004 Michael Schwendt <mschwendt@fedoraproject.org> - 0:1.2.2-0.fdr.1
4142a23
- Update to 1.2.2, patch aboutdialog to be readable with wxGTK.
4142a23
cvsextras 28e0689
* Mon May 10 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.1-0.fdr.1
cvsextras 28e0689
- New Version 1.2.1
cvsextras 28e0689
cvsextras 28e0689
* Sun Apr 11 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.0-0.fdr.2
cvsextras 28e0689
- Fix for Language.cpp restored
cvsextras 28e0689
cvsextras 28e0689
* Tue Mar  2 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.0-0.fdr.1
cvsextras 28e0689
- New Version 1.2.0
cvsextras 28e0689
cvsextras 28e0689
* Mon Nov 24 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.0-0.fdr.4.pre3
cvsextras 28e0689
- Added icon
cvsextras 28e0689
- Separated mp3 plugin
cvsextras 28e0689
cvsextras 28e0689
* Sun Nov 23 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.0-0.fdr.2.pre3
cvsextras 28e0689
- Changes to specfile
cvsextras 28e0689
cvsextras 28e0689
* Sun Nov  2 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.0-0.fdr.1.pre3
cvsextras 28e0689
- New upstream version 1.2.0-pre3
cvsextras 28e0689
cvsextras 28e0689
* Sat Oct 25 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:1.2.0-pre2.fdr.1
cvsextras 28e0689
- First Fedora release
cvsextras 28e0689