tibbs / rpms / audacity

Forked from rpms/audacity 5 years ago
Clone
021b88b
# Compile options:
021b88b
# --with mp3          : enable mp3 support
021b88b
3998799
%define tartopdir audacity-src-1.3.9
f947c5e
f947c5e
Name: audacity
3998799
Version: 1.3.9
0170145
Release: 0.4.beta%{?dist}
f947c5e
Summary: Multitrack audio editor
f947c5e
Group: Applications/Multimedia
f947c5e
License: GPLv2
f947c5e
URL: http://audacity.sourceforge.net
f947c5e
a86c345
Source0: http://downloads.sf.net/sourceforge/audacity/audacity-minsrc-%{version}.tar.bz2
f947c5e
Source1: audacity.png
f947c5e
Source2: audacity.desktop
f947c5e
3db0ffa
Patch1: audacity-1.3.7-libmp3lame-default.patch
3998799
Patch2: audacity-1.3.9-libdir.patch
2b95c09
Patch3: audacity-1.3.8-gsocket-conflict.patch
b4efd0a
Patch4: audacity-1.3.9-labeltrack-crash.patch
89949d7
Patch5: audacity-1.3.9-labelpopup.patch
30cde3d
Patch6: audacity-1.3.7-vamp-1.3.patch
f947c5e
f947c5e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f947c5e
BuildRequires: alsa-lib-devel
f947c5e
BuildRequires: desktop-file-utils
f947c5e
BuildRequires: expat-devel
f947c5e
BuildRequires: flac-devel
f947c5e
BuildRequires: gettext
f947c5e
BuildRequires: jack-audio-connection-kit-devel
f947c5e
BuildRequires: ladspa-devel
f947c5e
BuildRequires: libid3tag-devel
a86c345
BuildRequires: taglib-devel
f947c5e
BuildRequires: libogg-devel
f947c5e
BuildRequires: libsamplerate-devel
f947c5e
BuildRequires: libsndfile-devel
f947c5e
BuildRequires: libvorbis-devel
f947c5e
BuildRequires: soundtouch-devel
ab665d6
%if 0%{?fedora} < 11
ab665d6
BuildRequires: vamp-plugin-sdk-devel
ab665d6
%else
e8116e7
BuildRequires: vamp-plugin-sdk-devel >= 2.0
ab665d6
%endif
f947c5e
BuildRequires: zip
f947c5e
BuildRequires: zlib-devel
7119121
BuildRequires: wxGTK-devel
f947c5e
%{?_with_mp3:BuildRequires: libmad-devel}
f947c5e
cvsextras 28e0689
cvsextras 28e0689
%description
cvsextras 28e0689
Audacity is a cross-platform multitrack audio editor. It allows you to
92fb137
record sounds directly or to import files in various formats. It features
92fb137
a few simple effects, all of the editing features you should need, and
92fb137
unlimited undo. The GUI was built with wxWidgets and the audio I/O
92fb137
supports OSS and ALSA under Linux.
92fb137
cvsextras 28e0689
cvsextras 28e0689
%prep
f947c5e
%setup -q -n %{tartopdir}
98247b8
3a1f7ff
# Substitute hardcoded library paths.
f947c5e
%patch1 -p1
f947c5e
%patch2 -p1
3db0ffa
for i in src/effects/ladspa/LoadLadspa.cpp src/AudacityApp.cpp
cvsextras 28e0689
do
3a1f7ff
    sed -i -e 's!__RPM_LIBDIR__!%{_libdir}!g' $i
3a1f7ff
    sed -i -e 's!__RPM_LIB__!%{_lib}!g' $i
cvsextras 28e0689
done
3a1f7ff
grep -q -s __RPM_LIB * -R && exit 1
3a1f7ff
2b95c09
%patch3 -p1 -b .gsocket-conflict
b4efd0a
%patch4 -p1 -b .labeltrack-crash
89949d7
%patch5 -p1 -b .labelpopup
30cde3d
%if 0%{?fedora} < 11
30cde3d
%patch6 -p1 -b .vamp-1.3
30cde3d
%endif
3a045fa
3a1f7ff
# Substitute occurences of "libmp3lame.so" with "libmp3lame.so.0".
f947c5e
for i in locale/*.po src/export/ExportMP3.cpp
98247b8
do
3a1f7ff
    sed -i -e 's!libmp3lame.so\([^.]\)!libmp3lame.so.0\1!g' $i
98247b8
done
98247b8
1a421ba
77ba62c
%build
f947c5e
%configure \
f947c5e
    --with-help \
f947c5e
    --with-libsndfile=system \
f947c5e
    --without-libresample \
f947c5e
    --with-libsamplerate=system \
f947c5e
    --with-libflac=system \
f947c5e
    --with-ladspa \
f947c5e
    --with-vorbis=system \
f947c5e
    --with-id3tag=system \
f947c5e
    --with-expat=system \
f947c5e
    --with-soundtouch=system \
3db0ffa
    --without-ffmpeg \
f947c5e
    %{?_with_mp3:--with-libmad=system}
f947c5e
# _smp_mflags cause problems
cvsextras 28e0689
make
cvsextras 28e0689
77ba62c
cvsextras 28e0689
%install
cvsextras 28e0689
rm -rf ${RPM_BUILD_ROOT}
f947c5e
cvsextras 28e0689
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsextras 28e0689
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsextras 28e0689
f947c5e
make DESTDIR=${RPM_BUILD_ROOT} install
f947c5e
a86c345
# Audacity 1.3.8-beta complains if the help/manual directories
a86c345
# don't exist.
a86c345
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/help/manual
a86c345
f947c5e
%{find_lang} %{name}
f947c5e
f947c5e
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
77ba62c
desktop-file-install \
77ba62c
    --vendor fedora \
cvsextras 28e0689
    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
f947c5e
    %{SOURCE2}
cvsextras 28e0689
77ba62c
cvsextras 28e0689
%clean
cvsextras 28e0689
rm -rf ${RPM_BUILD_ROOT}
cvsextras 28e0689
77ba62c
021b88b
%post
653879b
umask 022
f947c5e
update-mime-database %{_datadir}/mime &> /dev/null || :
f947c5e
update-desktop-database &> /dev/null || :
77ba62c
021b88b
021b88b
%postun
653879b
umask 022
f947c5e
update-mime-database %{_datadir}/mime &> /dev/null || :
f947c5e
update-desktop-database &> /dev/null || :
77ba62c
021b88b
cvsextras 28e0689
%files -f %{name}.lang
cvsextras 28e0689
%defattr(-,root,root,-)
f947c5e
%{_bindir}/%{name}
f947c5e
%{_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
0170145
* Wed Sep 23 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.3.9-0.4.beta
0170145
- Update desktop file according to F-12 FedoraStudio feature
0170145
89949d7
* Mon Sep 14 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.9-0.3.beta
89949d7
- add patch to fix LabelTrack popup
89949d7
b4efd0a
* Sat Sep 12 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.9-0.2.beta
b4efd0a
- add wxGTK work-around patches to fix LabelTrack crash
b4efd0a
  (shall fix #520917 and similar race-conditions)
b4efd0a
3998799
* Thu Sep  3 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.9-0.1.beta
3998799
- upgrade to 1.3.9-beta
3998799
- upstream's changes in the device prefs code make the audiodevdefaults
3998799
  patch unnecessary afaic see
3998799
7935757
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-0.3.beta
7935757
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7935757
2b95c09
* Mon Jul 20 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.8-0.2.beta
2b95c09
- glib2 2.21.1's gio in Rawhide F-12 introduces a GSocket that
2b95c09
  conflicts with wxGTK's GSocket class (gsocket.h): as a work-around,
387946d
  include less glib headers
2b95c09
a86c345
* Mon Jul 20 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.8-0.1.beta
a86c345
- upgrade to 1.3.8-beta
a86c345
- BR taglib-devel
a86c345
- patches merged/obsoleted upstream:
a86c345
  audacity-1.3.7-portaudio-non-mmap-alsa.patch
a86c345
  audacity-1.3.7-repeat.patch
a86c345
  audacity-1.3.6-flac-import.patch
a86c345
9de57f2
* Wed May 13 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.7-0.7.beta
9de57f2
- retag up-to-date files and copy to F-10/F-11
9de57f2
33f347b
* Mon Mar  2 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.7-0.6.beta
33f347b
- revise default device names patch, so it doesn't save the defaults
33f347b
30cde3d
* Sun Mar  1 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.7-0.5.beta
30cde3d
- show default device names in Audio I/O preferences
30cde3d
d75ab66
* Sat Feb 28 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.3.7-0.4.beta
d75ab66
- remove no longer needed default hostapi hunk of the non-mmap-alsa patch
d75ab66
3db0ffa
* Sat Feb 28 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.7-0.3.beta
dc5d7e0
- F-10/F-9 only: patch to build with older Vamp API 1.3
3db0ffa
- upgrade to 1.3.7-beta pkg from test branch in Fedora cvs
3db0ffa
78f2585
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-0.13.beta
78f2585
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
78f2585
e8116e7
* Mon Feb  2 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.12.beta
007a5d9
- buildrequire >= 2.0 of Vamp SDK (because we adjust the include paths
e8116e7
  and to avoid that the unpatched local copy is used if system version
e8116e7
  is too old)
e8116e7
5f614e5
* Fri Jan  2 2009 David Timms <iinet.net.au@dtimms> - 1.3.5-0.11.beta
5f614e5
- add PortAudio non mmap alsa patch (Kevin Kofler) bz 445644
5f614e5
  allows record and playback through pulseaudio
5f614e5
9cc44fc
* Wed Dec 17 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.10.beta
9cc44fc
- patch include paths for changes in new vamp-plugin-sdk-devel
9cc44fc
64e39a8
* Wed Dec 17 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.9.beta
64e39a8
- rebuild in Rawhide for new SONAME in vamp-plugin-sdk
aba3b9d
- BR wxGTK-devel for rename of wxGTK2-devel 
64e39a8
911fdb0
* Tue Nov  4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.8.beta
911fdb0
- insert a guard in ImportFLAC next to the import assertion
911fdb0
d408159
* Tue Nov  4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.7.beta
d408159
- BR vamp-plugin-sdk-devel
d408159
- no longer build with included Vamp API, also drop Vamp multilib patch
d408159
b77154a
* Thu Aug 28 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.6.beta
b77154a
- rediff some patches for Fedora fuzz=0 pedantry
b77154a
57a13a4
* Sun Jun  8 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.5.beta
57a13a4
- fix bad fr.po that makes Fichier>Open dialog too wide
57a13a4
92ef731
* Thu May 15 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.4.beta
db8aa78
- desktop-file: drop deprecated Encoding, drop Icon file extension
92ef731
f947c5e
* Thu May 15 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.3.beta
f947c5e
- merge 1.3.5-beta from test branch
f947c5e
f947c5e
* Fri May  9 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.2.beta
f947c5e
- update to 1.3.5-beta
f947c5e
- expat2 patch merged upstream
f947c5e
- scriptlets: run update-desktop-database without path
f947c5e
- drop scriptlet dependencies
f947c5e
f947c5e
* Mon May  5 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.5-0.1.rc3.20080505cvs
f947c5e
- update to 1.3.5-rc3 cvs snapshot
f947c5e
- ExportMP3.cpp libdir patch obsolete
f947c5e
f947c5e
* Sat May  3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.4-0.7.20080123cvs
3f38768
- check ownership of temporary files directory (#436260) (CVE-2007-6061)
3f38768
f947c5e
* Sat Apr 12 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.4-0.6.20080123cvs
f947c5e
- set a default location for libmp3lame.so.0 again
f947c5e
f947c5e
* Fri Mar 21 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.4-0.5.20080123cvs
f947c5e
- package the old 1.3.2-beta and a post 1.3.4-beta snapshot in the
f947c5e
  same package -- users may stick to the older one, but please help
f947c5e
  with evaluating the newer one
f947c5e
- merge packaging changes from my 1.3.3/1.3.4 test packages:
f947c5e
- build newer release with wxGTK 2.8.x  
f947c5e
- BR soundtouch-devel  and  --with-soundtouch=system
f947c5e
- drop obsolete patches: resample, mp3 export, destdir, FLAC, fr
f947c5e
ab7bd4b
* Fri Mar 21 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-20
ab7bd4b
- make soundtouch and allegro build with RPM optflags
ab7bd4b
e6def45
* Sun Feb 10 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-19
b1c0b5f
- rawhide: patch for JACK 0.109.0 API changes (jack_port_lock/unlock removal).
e6def45
- rebuilt for GCC 4.3 as requested by Fedora Release Engineering
3a1f7ff
- subst _libdir in ladspa plugin loader
3a1f7ff
3a1f7ff
* Thu Jan  3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-18
df862fe
- Patch for GCC 4.3.0 C++.
df862fe
3a1f7ff
* Fri Nov 16 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-17
b1bdcd0
- rebuilt for FLAC 1.1.4 -> 1.2.x upgrade, which broke FLAC import
b1bdcd0
3a1f7ff
* Tue Aug 28 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-16
8a69201
- rebuilt for new expat (#195888)
8a69201
3a1f7ff
* Tue Aug 21 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-15
a0b9826
- rebuild per request on fedora-devel-list
a0b9826
- clarify licence (GPLv2)
a0b9826
3a1f7ff
* Mon Mar  5 2007 Michael Schwendt <mschwendt@fedoraproject.org>
653879b
- add umask 022 to scriptlets
653879b
3a1f7ff
* Sat Feb 24 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-14
278585d
- patch for FLAC 1.1.4 API compatibility
278585d
3a1f7ff
* 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
3a1f7ff
* 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
3a1f7ff
* 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
3a1f7ff
* 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