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
|
|
|
#
|
2014-02-24 17:31:45 +01:00
|
|
|
# Copyright (c) 2014 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
|
2014-10-27 17:01:44 +01:00
|
|
|
%bcond_with lame
|
2009-05-20 03:10:44 +02:00
|
|
|
%bcond_with twolame
|
2008-04-03 10:36:39 +02:00
|
|
|
|
2007-05-31 21:42:43 +02:00
|
|
|
Name: audacity
|
2013-03-30 16:29:25 +01:00
|
|
|
BuildRequires: cmake
|
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)
|
2014-10-27 17:01:44 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-08-31 10:44:27 +02:00
|
|
|
# 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}
|
2014-10-27 17:01:44 +01:00
|
|
|
BuildRequires: libffmpeg-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
|
2014-10-27 17:01:44 +01:00
|
|
|
%if %{with lame}
|
|
|
|
BuildRequires: libmp3lame-devel
|
|
|
|
%endif
|
2009-05-20 03:10:44 +02:00
|
|
|
%if %{with twolame}
|
2012-08-31 10:44:27 +02:00
|
|
|
BuildRequires: pkgconfig(twolame)
|
2009-05-20 03:10:44 +02:00
|
|
|
%endif
|
2014-10-27 17:01:44 +01:00
|
|
|
Version: 2.0.6
|
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/
|
2014-10-30 11:31:53 +01:00
|
|
|
Source0: http://sourceforge.net/projects/audacity/files/audacity/%{version}/audacity-minsrc-%{version}.tar.xz
|
2012-08-31 10:44:27 +02:00
|
|
|
Source1: audacity-license-nyquist
|
|
|
|
# PATCH-FIX-OPENSUSE audacity-no_buildstamp.patch reddwarf@opensuse.org -- this patch removes the buildstamp
|
|
|
|
Patch0: audacity-no_buildstamp.patch
|
2014-10-27 17:01:44 +01:00
|
|
|
Patch1: audacity-flac_assert.h.patch
|
2015-03-05 10:05:43 +01:00
|
|
|
Patch2: audacity-ffmpeg.patch
|
2010-10-04 18:36:45 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-08-31 10:44:27 +02:00
|
|
|
Recommends: libmp3lame0
|
2015-03-05 10:05:43 +01:00
|
|
|
Recommends: libavformat56
|
|
|
|
Recommends: libavcodec56
|
|
|
|
Recommends: libavutil54
|
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
|
2014-10-27 17:01:44 +01:00
|
|
|
%patch1
|
2015-03-05 10:05:43 +01:00
|
|
|
%if %{with ffmpeg}
|
|
|
|
%patch2
|
|
|
|
%endif
|
2012-08-31 10:44:27 +02:00
|
|
|
cp %{SOURCE1} LICENSE_NYQUIST.txt
|
|
|
|
# Make sure we use the system versions
|
|
|
|
rm -r lib-src/libvamp/
|
2014-10-27 17:01:44 +01:00
|
|
|
%if %{with lame}
|
|
|
|
rm -r lib-src/lame/
|
|
|
|
%endif
|
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
|
2014-10-27 17:01:44 +01:00
|
|
|
aclocal -I m4
|
|
|
|
autoconf
|
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
|
2014-10-27 17:01:44 +01:00
|
|
|
rm -r %{buildroot}%{_datadir}/appdata
|
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)
|
2014-10-27 17:01:44 +01:00
|
|
|
%doc LICENSE_NYQUIST.txt
|
|
|
|
%{_docdir}/audacity/
|
2012-08-31 10:44:27 +02:00
|
|
|
%{_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
|