Accepting request 481027 from home:plater

Update to 2.1.3

OBS-URL: https://build.opensuse.org/request/show/481027
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=96
This commit is contained in:
2017-03-18 15:28:01 +00:00
committed by Git OBS Bridge
parent 022d52ce64
commit d22ca099a0
8 changed files with 110 additions and 116 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package audacity
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,48 +19,60 @@
%bcond_with mad
%bcond_with lame
%bcond_with twolame
%bcond_without ffmpeg
Name: audacity
Version: 2.1.2
Version: 2.1.3
Release: 0
Summary: A Free, Cross-Platform Digital Audio Editor
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: http://audacityteam.org/
Source: %{name}-minsrc-%{version}.tar.xz
Source: https://github.com/audacity/audacity/archive/Audacity-%{version}.tar.gz
#Source: %%{name}-minsrc-%%{version}.tar.xz
Source1: %{name}-license-nyquist
Source2: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE audacity-no_buildstamp.patch reddwarf@opensuse.org -- Remove the buildstamp.
# PATCH-FIX-OPENSUSE audacity-no_buildstamp.patch davejplater@gmail.com -- Remove the buildstamp.
Patch0: %{name}-no_buildstamp.patch
# PATCH-FIX-OPENSUSE audacity-flac_assert.h.patch joerg.lorenzen@ki.tng.de -- Patch to fix build against libflac 1.3.0+.
Patch1: %{name}-flac_assert.h.patch
# PATCH-FIX-UPSTREAM audacity-fix-nonsense.patch sor.alexei@meowr.ru -- Remove things that break build for no reason.
Patch2: %{name}-fix-nonsense.patch
# PATCH-FIX-UPSTREAM audacity-ffmpeg.patch reddwarf@opensuse.org -- Patch to compile with latest ffmpeg.
Patch3: %{name}-ffmpeg.patch
# PATCH-FIX-UPSTREAM audacity-gcc6.patch mliska@suse.cz -- Fix GCC6 warnings.
Patch5: %{name}-gcc6.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cmake
BuildRequires: desktop-file-utils
#Audacity only builds with gcc >= 4.9
# WARNING: Anything built against wxWidgets with gcc >= 5 needs widgets built with relax-abi.diff
%if 0%{?suse_version} < 1330
BuildRequires: cpp5
BuildRequires: gcc5
BuildRequires: gcc5-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: hicolor-icon-theme
BuildRequires: wxWidgets-3_0-nostl-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(flac) >= 1.3.1
BuildRequires: pkgconfig(flac++)
BuildRequires: pkgconfig(gtk+-2.0) >= 2.4.0
BuildRequires: pkgconfig(id3tag)
BuildRequires: pkgconfig(jack)
%if %{with ffmpeg}
BuildRequires: pkgconfig(libavcodec) >= 51.53
BuildRequires: pkgconfig(libavformat) >= 52.12
BuildRequires: pkgconfig(libavutil)
%endif
BuildRequires: pkgconfig(lilv-0) >= 0.16
BuildRequires: pkgconfig(lv2)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(shared-mime-info)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(soundtouch)
BuildRequires: pkgconfig(soxr)
BuildRequires: pkgconfig(suil-0) >= 0.8.2
BuildRequires: pkgconfig(vamp-hostsdk)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisenc)
@@ -92,12 +104,11 @@ than the physical memory size of your computer.
%lang_package
%prep
%setup -q -n %{name}-minsrc-%{version}
%setup -q -n %{name}-Audacity-%{version}
%patch0
%patch1 -p1
%patch2 -p1
%patch3
%patch5
%patch2 -p0
#%%patch5
cp -f %{SOURCE1} LICENSE_NYQUIST.txt
# Make sure we use the system versions.
rm -rf lib-src/{expat,libvamp,libsoxr,ffmpeg}/
@@ -106,17 +117,25 @@ rm -rf lib-src/lame/
%endif
%build
%if 0%{?suse_version} < 1330
export CC=gcc-5
export CPP=cpp-5
export CXX=g++-5
%endif
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
export CXXFLAGS="$CFLAGS -std=gnu++11"
aclocal -I m4
autoconf
%configure \
%ifnarch %ix86 x86_64
--disable-sse \
%endif
%if %{with ffmpeg}
--with-ffmpeg=system \
%endif
--docdir=%{_docdir}/%{name}/
make %{?_smp_mflags}
make %{?_smp_mflags}
%install
%make_install