[libisoburn] Make %if compatible for RHEL 4
Robert Scheck
robert at fedoraproject.org
Mon Oct 17 00:06:13 UTC 2011
commit c605f53cd570ceb6e4f98110af712b603143789f
Author: Robert Scheck <robert at fedoraproject.org>
Date: Mon Oct 17 02:05:30 2011 +0200
Make %if compatible for RHEL 4
libisoburn.spec | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/libisoburn.spec b/libisoburn.spec
index 89b197c..25362cf 100644
--- a/libisoburn.spec
+++ b/libisoburn.spec
@@ -1,5 +1,3 @@
-%global with_kde 1
-
Summary: Library to enable creation and expansion of ISO-9660 filesystems
Name: libisoburn
Version: 1.1.6
@@ -38,7 +36,7 @@ Summary: ISO-9660 and Rock Ridge image manipulation tool
Group: Applications/Archiving
URL: http://scdbackup.sourceforge.net/xorriso_eng.html
Requires: %{name}%{?_isa} = %{version}-%{release}
-%if (%with_kde && 0%{?rhel}%{?fedora} > 5)
+%if 0%{?rhel}%{?fedora} > 5
Requires: kde-filesystem >= 4
%endif
Requires(post): /sbin/install-info
@@ -77,7 +75,7 @@ make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
# Install the KDE service menu handler
-%if (%with_kde && 0%{?rhel}%{?fedora} > 5)
+%if 0%{?rhel}%{?fedora} > 5
mkdir -p $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/
%endif
@@ -130,7 +128,7 @@ fi
%{_mandir}/man1/xorrisofs.1*
%{_infodir}/xorriso.info*
%{_infodir}/xorrisofs.info*
-%if (%with_kde && 0%{?rhel}%{?fedora} > 5)
+%if 0%{?rhel}%{?fedora} > 5
%{_datadir}/kde4/services/ServiceMenus/xorriso_servicemenu.desktop
%endif
More information about the scm-commits
mailing list