tibbs / rpms / audacity

Forked from rpms/audacity 5 years ago
Clone
bdc207a
Name:           audacity
77ba62c
Version:        1.3.2
da102d0
Release:        21%{?dist}
bdc207a
Summary:        A multitrack audio editor
bdc207a
bdc207a
Group:          Applications/Multimedia
6ee15eb
License:        GPLv2
bdc207a
URL:            http://audacity.sourceforge.net
18cd6e6
Source:         http://dl.sf.net/sourceforge/audacity/audacity-src-%{version}.tar.gz
bdc207a
Source1:        audacity.png
98247b8
# iconv on src/Languages.cpp (ISO Latin-1 to UTF-8)
98247b8
Patch1:         audacity-1.3.2-languages.patch
98247b8
# iconv on locale/fr.po (MAC to ISO Latin-1)
98247b8
Patch2:         audacity-1.3.2-fr.patch
98247b8
Patch3:         audacity-1.3.2-exportmp3.patch
77ba62c
Patch4:         audacity-1.3.2-destdir.patch
132bab4
Patch5:         audacity-1.3.2-resample.patch
278585d
Patch6:         audacity-1.3.2-FLAC.patch
da102d0
Patch7:         audacity-1.3.2-expat2.patch
da102d0
Patch8:         audacity-1.3.2-gcc43.patch
da102d0
Patch9:         audacity-1.3.2-libdir.patch
da102d0
Patch10:        audacity-1.3.2-jack-api-109.patch
da102d0
Patch11:        audacity-1.3.2-soundtouch-cxxflags.patch
da102d0
Patch12:        audacity-1.3.2-allegro-cflags.patch
da102d0
Patch13:        audacity-1.3.2-CVE-2007-6061.patch
37f2430
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4f19b6d
BuildRequires:  alsa-lib-devel
4f19b6d
BuildRequires:  desktop-file-utils
4f19b6d
BuildRequires:  expat-devel
4f19b6d
BuildRequires:  flac-devel
4f19b6d
BuildRequires:  gettext
4f19b6d
BuildRequires:  jack-audio-connection-kit-devel
bdc207a
BuildRequires:  ladspa-devel
4f19b6d
BuildRequires:  libid3tag-devel
4f19b6d
BuildRequires:  libogg-devel
4f19b6d
BuildRequires:  libsamplerate-devel
bdc207a
BuildRequires:  libsndfile-devel
4f19b6d
BuildRequires:  libvorbis-devel
18cd6e6
BuildRequires:  compat-wxGTK26-devel
4f19b6d
BuildRequires:  zip
4f19b6d
BuildRequires:  zlib-devel
132bab4
%{?_with_mp3:BuildRequires: libmad-devel}
132bab4
77ba62c
Requires(post):   shared-mime-info, desktop-file-utils
77ba62c
Requires(postun): shared-mime-info, desktop-file-utils
021b88b
021b88b
# Compile options:
021b88b
# --with mp3          : enable mp3 support
021b88b
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
18cd6e6
%setup -q -n %{name}-src-%{version}-beta
98247b8
%patch1 -p1 -b .languages
98247b8
%patch2 -p1 -b .fr
98247b8
%patch3 -p1 -b .exportmp3
77ba62c
%patch4 -p1 -b .destdir
132bab4
%patch5 -p1 -b .resample
278585d
%patch6 -p1 -b .FLAC
da102d0
%patch7 -p1 -b .expat2
da102d0
%patch8 -p1 -b .gcc43
98247b8
da102d0
# Substitute hardcoded library paths.
da102d0
%patch9 -p1
da102d0
for i in src/effects/ladspa/LoadLadspa.cpp src/export/ExportMP3.cpp
cvsextras 28e0689
do
da102d0
    sed -i -e 's!__RPM_LIBDIR__!%{_libdir}!g' $i
da102d0
    sed -i -e 's!__RPM_LIB__!%{_lib}!g' $i
cvsextras 28e0689
done
da102d0
grep -q -s __RPM_LIB * -R && exit 1
98247b8
da102d0
%if 0%{?fedora} > 8
da102d0
%patch10 -p1 -b .jack-api
da102d0
%endif
da102d0
%patch11 -p1 -b .soundtouch-cxxflags
da102d0
%patch12 -p1 -b .allegro-cflags
da102d0
%patch13 -p1 -b .CVE-2007-6061
da102d0
da102d0
# Substitute occurences of "libmp3lame.so" with "libmp3lame.so.0".
da102d0
for i in help/wxhelp/audacity.hhk help/wxhelp/exportmp3.htm locale/*.po src/export/ExportMP3.cpp
98247b8
do
da102d0
    sed -i -e 's!libmp3lame.so\([^.]\)!libmp3lame.so.0\1!g' $i
98247b8
done
98247b8
7353b63
%ifnarch %{ix86} x86_64
98247b8
sed -i -e 's!-msse!!' lib-src/soundtouch/source/SoundTouch/Makefile.*
240c82e
%endif
cvsextras 28e0689
18cd6e6
# for wxGTK26-compat
98247b8
sed -i -e 's!wx-config!wx-2.6-config!g' configure
18cd6e6
1a421ba
77ba62c
%build
98247b8
%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_mp3:--with-libmad=system} 
cvsextras 28e0689
make
cvsextras 28e0689
77ba62c
cvsextras 28e0689
%install
cvsextras 28e0689
rm -rf ${RPM_BUILD_ROOT}
cvsextras 28e0689
make DESTDIR=${RPM_BUILD_ROOT} install
cvsextras 28e0689
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsextras 28e0689
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsextras 28e0689
cvsextras 28e0689
cat > audacity.desktop <
cvsextras 28e0689
[Desktop Entry]
021b88b
Name=Audacity
021b88b
GenericName=Sound editor
cvsextras 28e0689
Type=Application
cvsextras 28e0689
Exec=audacity
cvsextras 28e0689
Icon=audacity.png
cvsextras 28e0689
Terminal=false
cvsextras 28e0689
Comment=A multitrack audio editor
cvsextras 28e0689
Encoding=UTF-8
77ba62c
MimeType=audio/x-wav;application/ogg;audio/x-aiff;audio/x-aiffc;audio/x-aifc;audio/basic;application/x-audacity-project;
cvsextras 28e0689
StartupWMClass=Audacity
cvsextras 28e0689
EOF
77ba62c
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/*
77ba62c
desktop-file-install \
77ba62c
    --vendor fedora \
cvsextras 28e0689
    --add-category GNOME \
cvsextras 28e0689
    --add-category AudioVideo \
cvsextras 28e0689
    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
cvsextras 28e0689
    audacity.desktop
cvsextras 28e0689
cvsextras 28e0689
%{find_lang} %{name}
cvsextras 28e0689
77ba62c
cvsextras 28e0689
%clean
cvsextras 28e0689
rm -rf ${RPM_BUILD_ROOT}
cvsextras 28e0689
77ba62c
021b88b
%post
653879b
umask 022
77ba62c
%{_bindir}/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
da102d0
%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
77ba62c
021b88b
021b88b
%postun
653879b
umask 022
77ba62c
%{_bindir}/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
da102d0
%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
77ba62c
021b88b
cvsextras 28e0689
%files -f %{name}.lang
cvsextras 28e0689
%defattr(-,root,root,-)
cvsextras 28e0689
%{_bindir}/*
cvsextras 28e0689
%{_datadir}/audacity
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
da102d0
* Sat May  3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-21
da102d0
- check ownership of temporary files directory (#436260) (CVE-2007-6061)
da102d0
da102d0
* Fri Mar 21 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-20
da102d0
- make soundtouch and allegro build with RPM optflags
da102d0
da102d0
* Sun Feb 10 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-19
da102d0
- rawhide: patch for JACK 0.109.0 API changes (jack_port_lock/unlock removal).
da102d0
- rebuilt for GCC 4.3 as requested by Fedora Release Engineering
da102d0
- subst _libdir in ladspa plugin loader
da102d0
da102d0
* Thu Jan  3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-18
da102d0
- Patch for GCC 4.3.0 C++.
da102d0
da102d0
* Fri Nov 16 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-17
6ee15eb
- rebuilt for FLAC 1.1.4 -> 1.2.x upgrade, which broke FLAC import
6ee15eb
da102d0
* Tue Aug 28 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-16
da102d0
- rebuilt for new expat (#195888)
da102d0
da102d0
* Tue Aug 21 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-15
da102d0
- rebuild per request on fedora-devel-list
da102d0
- clarify licence (GPLv2)
da102d0
da102d0
* Mon Mar  5 2007 Michael Schwendt <mschwendt@fedoraproject.org>
653879b
- add umask 022 to scriptlets
653879b
da102d0
* Sat Feb 24 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 1.3.2-14
278585d
- patch for FLAC 1.1.4 API compatibility
278585d
da102d0
* 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
da102d0
* 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
da102d0
* 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
da102d0
* 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