Make %if compatible for RHEL 4

This commit is contained in:
Robert Scheck 2011-10-17 02:05:30 +02:00
parent 8a13244f96
commit c605f53cd5

View File

@ -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