2007-05-31 21:42:43 +02:00
#
2010-04-15 23:50:24 +02:00
# spec file for package audacity (Version 1.3.12)
2007-05-31 21:42:43 +02:00
#
2010-01-12 16:00:15 +01:00
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-05-31 21:42:43 +02:00
#
2008-11-20 15:07:59 +01:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2007-05-31 21:42:43 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2009-05-20 03:10:44 +02:00
%bcond_with ffmpeg
%bcond_with mad
%bcond_with twolame
2008-04-03 10:36:39 +02:00
2007-05-31 21:42:43 +02:00
Name : audacity
2010-10-04 18:36:45 +02:00
BuildRequires : alsa-devel
2009-12-11 17:23:20 +01:00
# we use internal PortAudio(so it is not included here in BuildRequires), because audacity team grab sources
2009-08-10 17:19:51 +02:00
# from Portaudio's svn more frequently than we (e.g. see support for non-mmap devices like pulseaudio)
2010-10-04 18:36:45 +02:00
BuildRequires : flac-devel
BuildRequires : gcc-c++
BuildRequires : jack-devel
BuildRequires : libexpat-devel
BuildRequires : libid3tag-devel
BuildRequires : libsamplerate-devel
BuildRequires : libsndfile-devel
BuildRequires : libvorbis-devel
BuildRequires : soundtouch-devel
BuildRequires : taglib-devel
BuildRequires : update-desktop-files
2011-01-17 18:18:05 +01:00
%if %suse_version > 1130
BuildRequires : wxWidgets-wxcontainer-devel
%else
2010-10-04 18:36:45 +02:00
BuildRequires : wxGTK-devel
2011-01-17 18:18:05 +01:00
%endif
2009-08-10 17:19:51 +02:00
#vamp-plugin-sdk-devel is available since openSUSE 11.2
%if %suse_version > 1110
BuildRequires : vamp-plugin-sdk-devel
%endif
2009-05-20 03:10:44 +02:00
%if %{with ffmpeg}
BuildRequires : libffmpeg-devel
%endif
%if %{with mad}
BuildRequires : libmad-devel
%endif
%if %{with twolame}
BuildRequires : libtwolame-devel
%endif
2010-04-15 23:50:24 +02:00
Version : 1.3.12
2010-10-11 16:37:16 +02:00
Release : 7
2009-12-11 17:23:20 +01:00
License : GPLv2+
2010-10-04 18:36:45 +02:00
Summary : A Free, Cross-Platform Digital Audio Editor
2007-09-19 18:51:31 +02:00
Url : http://audacity.sourceforge.net/
2010-10-04 18:36:45 +02:00
Group : Productivity/Multimedia/Sound/Editors and Convertors
2010-04-15 23:50:24 +02:00
Source : %{name} -minsrc-%{version} -beta.tar.bz2
2009-12-11 17:23:20 +01:00
Source1 : %{name} .png
2010-08-04 23:35:05 +02:00
Source2 : %{name} -license-nyquist
2010-10-04 18:36:45 +02:00
# PATCH-FIX-OPENSUSE %{name}-no_buildstamp.patch reddwarf@opensuse.org -- this patch removes the buildstamp
2009-12-22 01:10:59 +01:00
Patch0 : %{name} -no_buildstamp.patch
2009-12-11 17:23:20 +01:00
Patch5 : %{name} -retval.patch
Patch12 : %{name} -audiodevdefaults.patch
2010-03-15 17:13:59 +01:00
Patch13 : audacity-nomac.patch
2010-10-04 18:36:45 +02:00
# PATCH-FIX-OPENSUSE %{name}-ffmpeg_match_ext.patch reddwarf@opensuse.org -- Fix ffmpeg support with versions after 2010-03-08. Upstream knows the problem but doesn't wants the patch right now.
2010-05-27 11:59:25 +02:00
Patch14 : %{name} -ffmpeg_match_ext.patch
2010-10-04 18:36:45 +02:00
# PATCH-FIX-OPENSUSE %{name}-no_exact_ffmpeg_version.patch reddwarf@opensuse.org -- remove referene to minor/micro ffmpeg versions so build-compare can do its work
2010-05-27 11:59:25 +02:00
Patch15 : %{name} -no_exact_ffmpeg_version.patch
2010-10-04 18:36:45 +02:00
Patch16 : %{name} -implicit.patch
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-01-17 18:18:05 +01:00
%if %suse_version > 1130
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
%endif
2007-05-31 21:42:43 +02:00
%description
Audacity is a program that manipulates digital audio wave forms. In
addition to recording sounds directly from within the program, it
imports many sound file formats, including WAV, AIFF, AU, IRCAM, MP,
and Ogg Vorbis. With Audacity, you can edit wave data larger than the
physical memory size of your computer.
%prep
2010-01-25 22:55:01 +01:00
%setup -q -n %{name} -src-%{version} -beta
2009-12-22 01:10:59 +01:00
%patch0
2007-05-31 21:42:43 +02:00
%patch5
2009-05-29 01:45:42 +02:00
%patch12 -p1
2010-03-15 17:13:59 +01:00
%patch13 -p1
2010-05-27 11:59:25 +02:00
%patch14
%patch15
2010-10-04 18:36:45 +02:00
%patch16
2010-08-04 23:35:05 +02:00
%{__cp} %{S:2} LICENSE_NYQUIST.txt
2007-05-31 21:42:43 +02:00
%build
2010-03-15 17:13:59 +01:00
#%{?suse_update_config:%{suse_update_config -f . lib-src/*/.}}
#export AUTOMAKE="automake --foreign"
2007-05-31 21:42:43 +02:00
%configure \
--enable-unicode \
2009-05-20 03:10:44 +02:00
--with-libvorbis=system \
%if %{with ffmpeg}
--with-ffmpeg=system \
2007-05-31 21:42:43 +02:00
%else
2009-05-20 03:10:44 +02:00
--without-ffmpeg \
%endif
%if %{with mad}
2007-05-31 21:42:43 +02:00
--with-libmad=system \
2009-05-20 03:10:44 +02:00
%else
--without-libmad \
%endif
%if %{with twolame}
--with-libtwolame=system \
%else
--without-libtwolame \
2007-05-31 21:42:43 +02:00
%endif
--with-libsndfile=system \
2009-05-20 03:10:44 +02:00
--with-libflac=system \
2009-07-29 01:37:30 +02:00
--with-ladspa \
2009-05-20 03:10:44 +02:00
--with-libid3tag=system \
2009-07-29 01:37:30 +02:00
--with-libsamplerate=system
2010-10-04 18:36:45 +02:00
%{__make} %{?_smp_mflags}
2007-05-31 21:42:43 +02:00
%install
2009-12-11 17:23:20 +01:00
%makeinstall
2009-05-20 03:10:44 +02:00
%suse_update_desktop_file audacity
2010-10-04 18:36:45 +02:00
%{__install} -v -d -m755 %{buildroot} %{_datadir} /pixmaps
%{__install} -v -m 644 %{SOURCE1} %{buildroot} %{_datadir} /pixmaps
2009-12-11 17:23:20 +01:00
#delete default icon we have nicer - transparent :)
2010-10-04 18:36:45 +02:00
%__rm %{buildroot} %{_datadir} /pixmaps/*.xpm
2007-05-31 21:42:43 +02:00
# we will add docs later in %files section
2010-10-04 18:36:45 +02:00
%__rm -rf %{buildroot} %{_datadir} /doc/audacity
2008-01-18 12:35:26 +01:00
%find_lang %{name}
2007-05-31 21:42:43 +02:00
%clean
2010-10-04 18:36:45 +02:00
rm -rf %{buildroot}
2007-05-31 21:42:43 +02:00
2008-01-18 12:35:26 +01:00
%files -f %{name}.lang
2007-05-31 21:42:43 +02:00
%defattr (-,root,root)
2010-08-04 23:35:05 +02:00
%doc LICENSE.txt README.txt LICENSE_NYQUIST.txt
2007-05-31 21:42:43 +02:00
%doc %{_mandir} /man?/*
%{_bindir} /audacity
%{_datadir} /audacity
%{_datadir} /applications/*.desktop
%{_datadir} /pixmaps/*.png
%{_datadir} /mime/packages/audacity.xml
2010-04-15 23:50:24 +02:00
%{_datadir} /icons/hicolor/*
2007-05-31 21:42:43 +02:00
%changelog