dtimms pushed to audacity (f21). "Conditionalize AppData out of EPEL <=7 release."

notifications at fedoraproject.org notifications at fedoraproject.org
Wed May 13 13:14:28 UTC 2015


From b3e870a41a392c93f374a69f4dfd321b8174b280 Mon Sep 17 00:00:00 2001
From: David Timms <dtimms at iinet.net.au>
Date: Wed, 13 May 2015 23:03:44 +1000
Subject: Conditionalize AppData out of EPEL <=7 release.


diff --git a/audacity.spec b/audacity.spec
index 423364a..54937f8 100644
--- a/audacity.spec
+++ b/audacity.spec
@@ -4,7 +4,7 @@
 Name: audacity
 
 Version: 2.1.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: Multitrack audio editor
 Group:   Applications/Multimedia
 License: GPLv2
@@ -48,7 +48,9 @@ BuildRequires: vamp-plugin-sdk-devel >= 2.0
 BuildRequires: zip
 BuildRequires: zlib-devel
 BuildRequires: wxGTK-devel
+%if 0%{?rhel} >= 8 || 0%{?fedora} 
 BuildRequires: libappstream-glib
+%endif
 %{?_with_mp3:BuildRequires: libmad-devel twolame-devel}
 # For new symbols in portaudio
 Requires:      portaudio%{?_isa} >= 19-16
@@ -132,6 +134,7 @@ make
 %make_install
 rm -Rf $RPM_BUILD_ROOT%{_datadir}/%{realname}/include
 
+%if 0%{?rhel} >= 8 || 0%{?fedora} 
 if appstream-util --help | grep -q replace-screenshots ; then
 # Update the screenshot shown in the software center
 #
@@ -142,6 +145,7 @@ if appstream-util --help | grep -q replace-screenshots ; then
 appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/audacity.appdata.xml \
   https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/audacity/a.png 
 fi
+%endif
 
 # Audacity 1.3.8-beta complains if the help/manual directories
 # don't exist.
@@ -198,6 +202,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 
 %changelog
+* Wed May 06 2015 David Timms <iinet.net.au at dtimms> - 2.1.0-2
+- Conditionalize AppData out of EPEL <=7 release.
+
 * Sat May 02 2015 Kalev Lember <kalevlember at gmail.com> - 2.1.0-2
 - Rebuilt for GCC 5 C++11 ABI change
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/audacity.git/commit/?h=f21&id=b3e870a41a392c93f374a69f4dfd321b8174b280


More information about the scm-commits mailing list