2007-05-31 21:42:43 +02:00
#
2011-04-03 19:20:06 +02:00
# spec file for package audacity
2007-05-31 21:42:43 +02:00
#
2012-03-16 10:48:38 +01:00
# Copyright (c) 2012 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
2012-08-31 10:44:27 +02:00
BuildRequires : desktop-file-utils
2010-10-04 18:36:45 +02:00
BuildRequires : gcc-c++
2012-08-31 10:44:27 +02:00
BuildRequires : hicolor-icon-theme
2012-03-16 10:48:38 +01:00
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
2012-08-31 10:44:27 +02:00
BuildRequires : wxWidgets-devel
BuildRequires : pkgconfig(alsa)
BuildRequires : pkgconfig(expat)
BuildRequires : pkgconfig(flac)
BuildRequires : pkgconfig(flac++)
BuildRequires : pkgconfig(gtk+-2.0) >= 2.4.0
BuildRequires : pkgconfig(id3tag)
BuildRequires : pkgconfig(jack)
BuildRequires : pkgconfig(ogg)
BuildRequires : pkgconfig(shared-mime-info)
BuildRequires : pkgconfig(sndfile)
BuildRequires : pkgconfig(soundtouch)
BuildRequires : pkgconfig(vamp-hostsdk)
BuildRequires : pkgconfig(vorbis)
BuildRequires : pkgconfig(vorbisenc)
BuildRequires : pkgconfig(vorbisfile)
# This would require to patch our portaudio package with "PortMixer"... an extra API that never got integrated in PortAudio.
#BuildRequires: portaudio-devel
2009-05-20 03:10:44 +02:00
%if %{with ffmpeg}
2012-08-31 10:44:27 +02:00
BuildRequires : libffmpeg_oldabi-devel
2009-05-20 03:10:44 +02:00
%endif
%if %{with mad}
2012-08-31 10:44:27 +02:00
BuildRequires : pkgconfig(mad)
2009-05-20 03:10:44 +02:00
%endif
%if %{with twolame}
2012-08-31 10:44:27 +02:00
BuildRequires : pkgconfig(twolame)
2009-05-20 03:10:44 +02:00
%endif
2012-08-31 10:44:27 +02:00
Version : 2.0.2
2012-03-16 10:48:38 +01:00
Release : 0
2010-10-04 18:36:45 +02:00
Summary : A Free, Cross-Platform Digital Audio Editor
2012-03-16 10:48:38 +01:00
License : GPL-2.0+
2010-10-04 18:36:45 +02:00
Group : Productivity/Multimedia/Sound/Editors and Convertors
2012-03-16 10:48:38 +01:00
Url : http://audacity.sourceforge.net/
2012-08-31 10:44:27 +02:00
Source0 : http://audacity.googlecode.com/files/audacity-minsrc-%{version} .tar.bz2
Source1 : audacity-license-nyquist
# PATCH-FIX-OPENSUSE audacity-no_buildstamp.patch reddwarf@opensuse.org -- this patch removes the buildstamp
Patch0 : audacity-no_buildstamp.patch
# About the access to the bug tracker: "Generally we restrict Bugzilla accounts to experienced C++ developers, or to very experienced Audacity bug watchers who want to test our nightly builds regularly."
# Being a packager, it seems, it's not enough. I am not even going to discuss that stupid politic
# PATCH-FIX-UPSTREAM audacity-2.0.2-docdir.patch email wrote to feedback@audacityteam.org reddwarf@opensuse.org -- make configure honor --docdir
Patch1 : audacity-2.0.2-docdir.patch
# PATCH-FIX-UPSTREAM audacity-implicit.patch email wrote to feedback@audacityteam.org reddwarf@opensuse.org -- Include ctype.h since it uses isdigit()
Patch2 : audacity-implicit.patch
2010-10-04 18:36:45 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2012-08-31 10:44:27 +02:00
Recommends: libmp3lame0
Recommends: libavformat52
Recommends: libavcodec52
Recommends: libavutil50
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
2012-08-31 10:44:27 +02:00
%setup -q -n audacity-src-%{version}
2009-12-22 01:10:59 +01:00
%patch0
2012-08-31 10:44:27 +02:00
%patch1
%patch2
cp %{SOURCE1} LICENSE_NYQUIST.txt
# Make sure we use the system versions
rm -r lib-src/libvamp/
2009-05-20 03:10:44 +02:00
%if %{with ffmpeg}
2012-08-31 10:44:27 +02:00
rm -r lib-src/ffmpeg/
2009-05-20 03:10:44 +02:00
%endif
2012-08-31 10:44:27 +02:00
%build
2012-10-23 22:19:28 +02:00
%configure --docdir=%{_defaultdocdir} /audacity/ \
%ifnarch %ix86 x86_64
--disable-sse
%endif
2012-08-31 10:44:27 +02:00
make %{?_smp_mflags}
2007-05-31 21:42:43 +02:00
%install
2012-08-31 10:44:27 +02:00
%make_install
# email wrote to feedback@audacityteam.org
mkdir -p %{buildroot} %{_datadir} /icons/hicolor/48x48/mimetypes/
mv %{buildroot} %{_datadir} /pixmaps/gnome-mime-application-x-audacity-project.xpm %{buildroot} %{_datadir} /icons/hicolor/48x48/mimetypes/application-x-audacity-project.xpm
rm -r %{buildroot} %{_datadir} /pixmaps
2008-01-18 12:35:26 +01:00
%find_lang %{name}
2007-05-31 21:42:43 +02:00
2012-08-31 10:44:27 +02:00
%post
%icon_theme_cache_post
%mime_database_post
%desktop_database_post
%postun
%desktop_database_postun
%mime_database_postun
%icon_theme_cache_postun
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
2012-08-31 10:44:27 +02:00
%{_defaultdocdir} /audacity/
%{_mandir} /man1/audacity.1*
2007-05-31 21:42:43 +02:00
%{_bindir} /audacity
2012-08-31 10:44:27 +02:00
%{_datadir} /audacity/
%{_datadir} /applications/audacity.desktop
2007-05-31 21:42:43 +02:00
%{_datadir} /mime/packages/audacity.xml
2012-08-31 10:44:27 +02:00
%{_datadir} /icons/hicolor/*/apps/audacity.*
%{_datadir} /icons/hicolor/*/mimetypes/application-x-audacity-project.*
2007-05-31 21:42:43 +02:00
%changelog