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
|
|
|
#
|
2016-04-24 23:43:01 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-04-07 14:37:08 +02:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %{wx_requires}
|
2009-05-20 03:10:44 +02:00
|
|
|
%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
|
2007-05-31 21:42:43 +02:00
|
|
|
Name: audacity
|
2015-07-20 13:57:58 +02:00
|
|
|
Version: 2.1.1
|
2015-04-07 14:37:08 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A Free, Cross-Platform Digital Audio Editor
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
2015-07-20 13:57:58 +02:00
|
|
|
Url: http://audacityteam.org/
|
2015-07-20 14:11:18 +02:00
|
|
|
Source: %{name}-minsrc-%{version}.tar.xz
|
2015-07-20 13:57:58 +02:00
|
|
|
Source1: %{name}-license-nyquist
|
|
|
|
Source2: %{name}-rpmlintrc
|
2015-04-07 14:37:08 +02:00
|
|
|
# PATCH-FIX-OPENSUSE audacity-no_buildstamp.patch reddwarf@opensuse.org -- Remove the buildstamp.
|
|
|
|
Patch0: %{name}-no_buildstamp.patch
|
2015-10-25 13:39:40 +01:00
|
|
|
# PATCH-FIX-OPENSUSE audacity-flac_assert.h.patch joerg.lorenzen@ki.tng.de -- Patch to fix build against libflac 1.3.0+.
|
2015-04-07 14:37:08 +02:00
|
|
|
Patch1: %{name}-flac_assert.h.patch
|
2015-07-20 13:57:58 +02:00
|
|
|
# PATCH-FIX-UPSTREAM audacity-fix-nonsense.patch sor.alexei@meowr.ru -- Remove things that break build for no reason.
|
2015-10-25 13:39:40 +01:00
|
|
|
Patch2: %{name}-fix-nonsense.patch
|
|
|
|
# PATCH-FIX-UPSTREAM audacity-ffmpeg.patch reddwarf@opensuse.org -- Patch to compile with latest ffmpeg.
|
|
|
|
Patch3: %{name}-ffmpeg.patch
|
2016-04-24 23:43:01 +02:00
|
|
|
# PATCH-FIX-UPSTREAM audacity-2.1.1-fix-tempdir.patch boo#976964 -- Fix usage of custom temp directories (commit 2a6d423).
|
|
|
|
Patch4: %{name}-2.1.1-fix-tempdir.patch
|
2015-04-07 14:37:08 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
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
|
2015-07-20 13:57:58 +02:00
|
|
|
BuildRequires: wxWidgets-devel = 2.8.12
|
2012-08-31 10:44:27 +02:00
|
|
|
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)
|
2015-10-31 19:48:54 +01:00
|
|
|
BuildRequires: pkgconfig(libavcodec) >= 51.53
|
|
|
|
BuildRequires: pkgconfig(libavformat) >= 52.12
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
2012-08-31 10:44:27 +02:00
|
|
|
BuildRequires: pkgconfig(ogg)
|
|
|
|
BuildRequires: pkgconfig(shared-mime-info)
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: pkgconfig(soundtouch)
|
2015-07-20 13:57:58 +02:00
|
|
|
BuildRequires: pkgconfig(soxr)
|
2012-08-31 10:44:27 +02:00
|
|
|
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
|
2015-07-20 13:57:58 +02:00
|
|
|
Recommends: %{name}-lang
|
|
|
|
Recommends: libavcodec
|
|
|
|
Recommends: libavformat
|
|
|
|
Recommends: libavutil
|
|
|
|
Recommends: libmp3lame0
|
2009-05-20 03:10:44 +02:00
|
|
|
%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
|
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
|
2015-07-20 13:57:58 +02:00
|
|
|
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.
|
2007-05-31 21:42:43 +02:00
|
|
|
|
2015-04-07 14:37:08 +02:00
|
|
|
%lang_package
|
|
|
|
|
2007-05-31 21:42:43 +02:00
|
|
|
%prep
|
2015-04-07 14:37:08 +02:00
|
|
|
%setup -q -n %{name}-minsrc-%{version}
|
2015-07-20 13:57:58 +02:00
|
|
|
%patch0 -p1
|
2015-04-07 14:37:08 +02:00
|
|
|
%patch1 -p1
|
2015-10-25 13:39:40 +01:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3
|
2016-04-24 23:43:01 +02:00
|
|
|
%patch4 -p1
|
2015-07-20 13:57:58 +02:00
|
|
|
cp -f %{SOURCE1} LICENSE_NYQUIST.txt
|
2015-04-07 14:37:08 +02:00
|
|
|
# Make sure we use the system versions.
|
2015-10-31 19:48:54 +01:00
|
|
|
rm -rf lib-src/{expat,libvamp,libsoxr,ffmpeg}/
|
2014-10-27 17:01:44 +01:00
|
|
|
%if %{with lame}
|
2015-04-07 14:37:08 +02:00
|
|
|
rm -rf lib-src/lame/
|
2014-10-27 17:01:44 +01:00
|
|
|
%endif
|
2012-08-31 10:44:27 +02:00
|
|
|
|
|
|
|
%build
|
2015-07-20 13:57:58 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2014-10-27 17:01:44 +01:00
|
|
|
aclocal -I m4
|
|
|
|
autoconf
|
2015-04-07 14:37:08 +02:00
|
|
|
%configure \
|
2012-10-23 22:19:28 +02:00
|
|
|
%ifnarch %ix86 x86_64
|
2015-04-07 14:37:08 +02:00
|
|
|
--disable-sse \
|
2015-07-03 18:25:15 +02:00
|
|
|
%endif
|
2015-04-07 14:37:08 +02:00
|
|
|
--docdir=%{_docdir}/%{name}/
|
2012-10-23 22:19:28 +02:00
|
|
|
|
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
|
2015-07-20 13:57:58 +02:00
|
|
|
|
2015-10-25 13:39:40 +01:00
|
|
|
# E-mail wrote to feedback@audacityteam.org.
|
2012-08-31 10:44:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/
|
2015-04-07 14:37:08 +02:00
|
|
|
mv -f %{buildroot}%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.xpm \
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-audacity-project.xpm
|
|
|
|
rm -rf %{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
|
|
|
|
%desktop_database_post
|
2015-07-03 18:25:15 +02:00
|
|
|
%icon_theme_cache_post
|
2015-04-07 14:37:08 +02:00
|
|
|
%mime_database_post
|
2012-08-31 10:44:27 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2015-04-07 14:37:08 +02:00
|
|
|
%mime_database_postun
|
2012-08-31 10:44:27 +02:00
|
|
|
|
2015-04-07 14:37:08 +02:00
|
|
|
%files
|
2007-05-31 21:42:43 +02:00
|
|
|
%defattr(-,root,root)
|
2015-04-07 14:37:08 +02:00
|
|
|
%doc LICENSE.txt LICENSE_NYQUIST.txt README.txt
|
|
|
|
%doc %{_docdir}/%{name}/
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
2015-07-20 13:57:58 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/*%{name}*
|
2015-04-07 14:37:08 +02:00
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
|
|
|
%{_mandir}/man?/%{name}.?%{?ext_man}
|
|
|
|
%dir %{_datadir}/appdata/
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2007-05-31 21:42:43 +02:00
|
|
|
|
|
|
|
%changelog
|