commit 76d72acfbbadb9b4a4167b4b882d05c7c00664ae
Author: Paul Howarth <paul(a)city-fan.org>
Date: Wed Mar 3 09:47:34 2021 +0000
Only apply jas_memdump patch where appropriate, and remove legacy Group: tag
xv.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/xv.spec b/xv.spec
index 63ac033..c322ec9 100644
--- a/xv.spec
+++ b/xv.spec
@@ -14,7 +14,6 @@ Summary(ru.UTF-8): Программа для просмотра и преобр
Summary(tr.UTF-8): X tabanlı resim görüntüleyici
Summary(uk.UTF-8): Програма для перегляду та перетворення файлів зображень для X
License: Shareware
-Group: Applications/Multimedia
URL:
http://www.trilon.com/xv/xv.html
Source0:
ftp://ftp.trilon.com/pub/xv/%{name}-%{vprog}.tar.gz
Source1:
http://downloads.sourceforge.net/png-mng/%{name}-%{vprog}-jumbo-patches-%...
@@ -114,7 +113,6 @@ RGB, XPM, Targa, XWD, PostScript(TM) та PM. Xv також вміє робит
%package doc
Summary: Manuals in various formats for the xv image viewer
-Group: Documentation
BuildArch: noarch
%description doc
@@ -167,8 +165,10 @@ rm ../%{name}-%{vprog}-jumbo-fix-enh-patch-%{vjumbo}.txt
# Fix FTBFS with GCC 10
%patch12 -p0
-# Fix jas_memdump replacement function
+# Fix jas_memdump replacement function if necessary
+if grep --silent --recursive 'jas_memdump.*const void' /usr/include/jasper; then
%patch13 -p0
+fi
# Include permission to distribute
install -m 0644 -p %{SOURCE2} .