Non-conflicting %ghost files are only supported in RPM since 11.2
authorWolfgang Rosenauer <wr@rosenauer.org>
Thu, 14 Jan 2010 14:03:20 +0100
changeset 51 a87b1d6c6d53
parent 50 00ee07727e73
child 52 024a595d7885
Non-conflicting %ghost files are only supported in RPM since 11.2
mozilla-xulrunner192/mozilla-xulrunner192.spec
--- a/mozilla-xulrunner192/mozilla-xulrunner192.spec	Wed Jan 13 23:53:53 2010 +0100
+++ b/mozilla-xulrunner192/mozilla-xulrunner192.spec	Thu Jan 14 14:03:20 2010 +0100
@@ -382,6 +382,9 @@
 touch $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{ga_version}
 %endif
 # excludes
+%if %suse_version < 1120
+rm -f $RPM_BUILD_ROOT%{_bindir}/xulrunner
+%endif
 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/updater
 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/update.locale
 rm -f $RPM_BUILD_ROOT%{_libdir}/xulrunner-%{version_internal}/LICENSE
@@ -490,7 +493,9 @@
 %endif
 # ghosts
 %ghost %{_libdir}/xulrunner-%{version_internal}/global.reginfo
+%if %suse_version >= 1120
 %ghost %{_bindir}/xulrunner
+%endif
 # GRE
 %dir %{_sysconfdir}/gre.d/
 %attr(644,root,root) %{_sysconfdir}/gre.d/*