From c605f53cd570ceb6e4f98110af712b603143789f Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Mon, 17 Oct 2011 02:05:30 +0200 Subject: [PATCH] Make %if compatible for RHEL 4 --- libisoburn.spec | 8 +++----- 1 file 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