%define name audacity %define version 1.3.3 %define fversion %version %define release %mkrel 1 Summary: Free Audio Editor With Effects/Analysis Tools Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Sound URL: http://audacity.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-src-%{fversion}.tar.bz2 Source1: %{name}_16x16.png Source2: %{name}_32x32.png Source3: %{name}_64x64.png Patch: audacity-src-1.3.0-beta-xdg.patch Patch1: audacity-src-1.3.2-beta-soundtouch-non-x86.patch Patch2: audacity-src-1.3.3-beta-flac.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: wxgtku-devel < 2.7 BuildRequires: libflac++-devel BuildRequires: libogg-devel BuildRequires: libvorbis-devel BuildRequires: libmad-devel BuildRequires: libid3tag-devel BuildRequires: libjack-devel BuildRequires: libsndfile-devel buildrequires: zlib-devel buildrequires: libalsa-devel BuildRequires: autoconf2.5 BuildRequires: ImageMagick BuildRequires: desktop-file-utils #for compressing the help file: BuildRequires: zip Obsoletes: hackaudacity Requires(post): shared-mime-info Requires(postun): shared-mime-info Requires(post): desktop-file-utils Requires(postun):desktop-file-utils %description Audacity is a program that lets you manipulate digital audio waveforms. In addition to letting you record sounds directly from within the program, it imports many sound file formats, including WAV, AIFF, 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. It also has a built-in amplitude envelope editor, a customizable spectrogram mode and a frequency analysis window for audio analysis applications. %prep %setup -q -n %{name}-src-%{fversion}-beta %patch -p1 -b .xdg %patch1 -p1 -b .ppc %patch2 -p1 -b .flac chmod 644 *.txt ln -s %_libdir/wx/config/`multiarch-platform`/gtk2-unicode-release-2.6 wx-config aclocal autoconf pushd lib-src/soundtouch aclocal automake --foreign autoconf popd %build export PATH=$PATH:`pwd` export LDFLAGS=-lz ./configure --prefix=%_prefix --libdir=%_libdir --enable-optimise \ --with-vorbis=system \ --with-libmad=system \ --with-portaudio=v19 --without-portmixer \ --with-libsndfile=system make %install rm -rf %buildroot %name.lang mkdir -p %buildroot/%_bindir %makeinstall BINDIR=%buildroot%_bindir DATADIR=%buildroot%_datadir MANDIR=%buildroot%_mandir mv %buildroot%_datadir/locale/zh %buildroot%_datadir/locale/zh_CN %{find_lang} %{name} # Menu mkdir -p %buildroot/%{_menudir} cat > %buildroot/%{_menudir}/%{name} <<EOF ?package(%{name}): command="%{_bindir}/%{name}" needs="X11" \ icon="%{name}.png" section="Multimedia/Sound" \ title="Audacity" longtitle="Digital audio waveforms editor" xdg="true" EOF desktop-file-install --vendor="" \ --remove-category="Application" \ --remove-category="Multimedia" \ --add-category="AudioVideoEditing;Recorder" \ --add-category="X-MandrivaLinux-Multimedia-Sound" \ --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/* #icon mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir}} convert -transparent white %{SOURCE1} $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png convert -transparent white %{SOURCE2} $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png cp %{SOURCE3} $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png #clean uneeded installed but not packaged rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name} %clean rm -rf %buildroot/ %post %{update_menus} %update_mime_database %update_desktop_database %postun %{clean_menus} %clean_mime_database %clean_desktop_database %files -f %{name}.lang %defattr(-,root,root) %doc LICENSE.txt README.txt %{_bindir}/* %{_menudir}/%{name} %{_iconsdir}/*.png %{_liconsdir}/*.png %{_miconsdir}/*.png %{_datadir}/audacity %{_datadir}/applications/%name.desktop %{_datadir}/mime/packages/audacity.xml %{_mandir}/man1/audacity.1.bz2 %changelog * Fri May 18 2007 Götz Waschk <waschk@mandriva.org> 1.3.3-1mdv2008.0 + Revision: 28074 - fix buildrequires - new version - update flac patch - remove help file * Tue Dec 12 2006 Götz Waschk <waschk@mandriva.org> 1.3.2-4mdv2007.0 + Revision: 95230 - patch for new libflac * Mon Nov 06 2006 Götz Waschk <waschk@mandriva.org> 1.3.2-3mdv2007.1 + Revision: 76854 - fix French translation (bug #23469) * Sun Nov 05 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.3.2-2mdv2007.1 + Revision: 76690 - patch1: fix soundtouch build on non-x86(-64) archs * Mon Oct 30 2006 Götz Waschk <waschk@mandriva.org> 1.3.2-1mdv2007.1 + Revision: 73756 - new version - drop merged patch 1 - drop obsolete source 4 - disable parallel make * Sat Oct 14 2006 Götz Waschk <waschk@mandriva.org> 1.3.0-9mdv2006.0 + Revision: 64568 - bot-friendly buildrequires - Import audacity * Sat Oct 14 2006 Götz Waschk <waschk@mandriva.org> 1.3.0-8mdv2007.1 - unpack patches - build fix * Thu Jun 22 2006 Götz Waschk <waschk@mandriva.org> 1.3.0-7mdv2007.0 - fix zh locale - fix build - xdg menu * Fri Apr 28 2006 Götz Waschk <waschk@mandriva.org> 1.3.0-6mdk - upgrade portaudio to svn snapshot * Fri Apr 28 2006 Götz Waschk <waschk@mandriva.org> 1.3.0-5mdk - compile with portaudio v19 (requested by Antoine Pitrou) * Mon Jan 02 2006 Götz Waschk <waschk@mandriva.org> 1.3.0-4mdk - fix directory ownership * Wed Dec 14 2005 Götz Waschk <waschk@mandriva.org> 1.3.0-3mdk - fix bug 20156 (help file location) * Thu Dec 01 2005 Götz Waschk <waschk@mandriva.org> 1.3.0-2mdk - fix desktop entry * Tue Nov 29 2005 Götz Waschk <waschk@mandriva.org> 1.3.0-1mdk - register mime types - update file list - unicode build - drop patches - New release 1.3.0 * Sun Aug 28 2005 Herton Ronaldo Krzesinski <herton@mandriva.com> 1.2.3-4mdk - rebuild, removed use of %%configure2_5x as something behind it is causing audacity after built and installed to segfault while running on a new installation or while making access to the "Preferences" window, below is the error: (audacity:12866): Gtk-CRITICAL **: gtk_accel_label_new: assertion `string != NULL' failed (audacity:12866): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed (audacity:12866): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed (audacity:12866): Gtk-CRITICAL **: gtk_accel_label_set_accel_widget: assertion `GTK_IS_ACCEL_LABEL (accel_label)' failed Segmentation fault * Tue Jun 14 2005 Götz Waschk <waschk@mandriva.org> 1.2.3-3mdk - work around broken wx-config * Wed Apr 27 2005 Götz Waschk <waschk@mandriva.org> 1.2.3-2mdk - rebuild for new wxGTK * Fri Nov 19 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.2.3-1mdk - New release 1.2.3 * Thu Nov 11 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2.2-4mdk - rebuild for new wxGTK * Tue Oct 12 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.2-3mdk - C++ fixes - parallel make now works it seems * Wed Sep 01 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.2.2-2mdk - new icons from André Pascual, Pierre Jarillon (bugzilla #10792) * Fri Aug 27 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2.2-1mdk - patch2: fix some missing headers - drop patch 0 - New release 1.2.2 * Thu Aug 19 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.2.1-4mdk - enhanced large icon (Fabien ILLIDE) * Tue Aug 17 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.2.1-3mdk - make icons transparent (bugzilla #10792) * Tue Jun 08 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2.1-2mdk - patch for new g++ * Mon May 10 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.2.1-1mdk - New release 1.2.1 * Thu Apr 29 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2.0-2mdk - fix build with wxGTK 2.5.1 (pangelo[at]dcc[dot]online.pt) * Tue Mar 02 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2.0-1mdk - new version * Wed Feb 11 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2.0-0.pre4.1mdk - drop patch 3 - new version