remove support for distributions before 10.3 from spec file
authorWolfgang Rosenauer <wr@rosenauer.org>
Thu, 13 Jan 2011 11:59:07 +0100
changeset 214 7ba53683584c
parent 213 b2978eba3a92
child 215 b84e98861887
remove support for distributions before 10.3 from spec file
MozillaFirefox/MozillaFirefox.spec
--- a/MozillaFirefox/MozillaFirefox.spec	Thu Jan 13 11:57:26 2011 +0100
+++ b/MozillaFirefox/MozillaFirefox.spec	Thu Jan 13 11:59:07 2011 +0100
@@ -320,38 +320,18 @@
 if [ -f usr/bin/update-mime-database ] ; then
   usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
 fi
-%if %suse_version >= 1030
 if [ -f usr/bin/update-desktop-database ] ; then
   usr/bin/update-desktop-database > /dev/null || :
 fi
-%else
-if [ -f opt/gnome/bin/update-mime-database ] ; then
-  opt/gnome/bin/update-mime-database > /dev/null || :
-fi
-%endif
-# move plugins to new location
-if [ "$1" = "2" ]; then
-  if [ -d /opt/MozillaFirefox/%{_lib}/plugins ]; then
-    rm -rf /opt/MozillaFirefox/%{_lib}/plugins/libnullplugin.so
-    cp -fud /opt/MozillaFirefox/%{_lib}/plugins/* %{progdir}/plugins
-    rm -rf /opt/MozillaFirefox/%{_lib}/plugins
-  fi
-fi
 exit 0
 
 %postun
 if [ -f usr/bin/update-mime-database ] ; then
   usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
 fi
-%if %suse_version >= 1030
 if [ -f usr/bin/update-desktop-database ] ; then
   usr/bin/update-desktop-database > /dev/null || :
 fi
-%else
-if [ -f opt/gnome/bin/update-mime-database ] ; then
-  opt/gnome/bin/update-mime-database > /dev/null || :
-fi
-%endif
 
 %files
 %defattr(-,root,root)