This commit is contained in:
committed by
Git OBS Bridge
parent
3aba4c6e76
commit
341d345f9e
@@ -18,7 +18,7 @@
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires %{wx_requires}
|
||||
%bcond_with ffmpeg
|
||||
%bcond_with restricted
|
||||
%bcond_with mad
|
||||
%bcond_with lame
|
||||
%bcond_with twolame
|
||||
@@ -34,12 +34,12 @@ Source1: %{name}-license-nyquist
|
||||
Source2: %{name}-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE audacity-no_buildstamp.patch reddwarf@opensuse.org -- Remove the buildstamp.
|
||||
Patch0: %{name}-no_buildstamp.patch
|
||||
# PATCH-FIX-UPSTREAM audacity-flac_assert.h.patch joerg.lorenzen@ki.tng.de -- Patch to build against libflac 1.3.0+.
|
||||
# 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-ffmpeg.patch reddwarf@opensuse.org -- Patch to compile with latest ffmpeg.
|
||||
Patch2: %{name}-ffmpeg.patch
|
||||
# PATCH-FIX-UPSTREAM audacity-fix-nonsense.patch sor.alexei@meowr.ru -- Remove things that break build for no reason.
|
||||
Patch3: %{name}-fix-nonsense.patch
|
||||
Patch2: %{name}-fix-nonsense.patch
|
||||
# PATCH-FIX-UPSTREAM audacity-ffmpeg.patch reddwarf@opensuse.org -- Patch to compile with latest ffmpeg.
|
||||
Patch3: %{name}-ffmpeg.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: cmake
|
||||
@@ -70,7 +70,7 @@ Recommends: libavcodec
|
||||
Recommends: libavformat
|
||||
Recommends: libavutil
|
||||
Recommends: libmp3lame0
|
||||
%if %{with ffmpeg}
|
||||
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?is_opensuse}) || %{with restricted}
|
||||
BuildRequires: pkgconfig(libavcodec) >= 51.53
|
||||
BuildRequires: pkgconfig(libavformat) >= 52.12
|
||||
BuildRequires: pkgconfig(libavutil)
|
||||
@@ -98,19 +98,14 @@ than the physical memory size of your computer.
|
||||
%setup -q -n %{name}-minsrc-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%if %{with ffmpeg}
|
||||
%patch2
|
||||
%endif
|
||||
%patch3 -p1
|
||||
%patch2 -p1
|
||||
%patch3
|
||||
cp -f %{SOURCE1} LICENSE_NYQUIST.txt
|
||||
# Make sure we use the system versions.
|
||||
rm -rf lib-src/{expat,libvamp,libsoxr}/
|
||||
%if %{with lame}
|
||||
rm -rf lib-src/lame/
|
||||
%endif
|
||||
%if %{with ffmpeg}
|
||||
rm -rf lib-src/ffmpeg/
|
||||
%endif
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
@@ -128,7 +123,7 @@ make %{?_smp_mflags}
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# E-mail written to feedback@audacityteam.org.
|
||||
# E-mail wrote to feedback@audacityteam.org.
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/
|
||||
mv -f %{buildroot}%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.xpm \
|
||||
%{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-audacity-project.xpm
|
||||
|
Reference in New Issue
Block a user