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
|
2010-10-04 18:36:45 +02:00
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: jack-devel
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libid3tag-devel
|
|
|
|
BuildRequires: libsamplerate-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
2012-03-16 10:48:38 +01:00
|
|
|
# This would require to patch our portaudio package with "PortMixer"... an extra API that never got integrated in PortAudio.
|
|
|
|
#BuildRequires: portaudio-devel
|
2010-10-04 18:36:45 +02:00
|
|
|
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
|
2012-03-16 10:48:38 +01:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %wx_requires
|
2011-01-17 18:18:05 +01:00
|
|
|
%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
|
|
|
BuildRequires: vamp-plugin-sdk-devel
|
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
|
2012-03-16 10:48:38 +01:00
|
|
|
Version: 2.0.0
|
|
|
|
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/
|
|
|
|
Source0: http://%{name}.googlecode.com/files/%{name}-minsrc-%{version}.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
|
2010-10-04 18:36:45 +02:00
|
|
|
Patch16: %{name}-implicit.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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-03-16 10:48:38 +01:00
|
|
|
%setup -q -n %{name}-src-%{version}
|
2009-12-22 01:10:59 +01:00
|
|
|
%patch0
|
2010-10-04 18:36:45 +02:00
|
|
|
%patch16
|
2012-03-16 10:48:38 +01:00
|
|
|
%{__cp} %{S:2} LICENSE_NYQUIST.txt
|
2007-05-31 21:42:43 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%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
|
|
|
|
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
|