- added %postun section
authorciesiel <ciesiel@pld-linux.org>
Sun, 2 Nov 2003 09:46:43 +0000 (09:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-zopeedit.spec -> 1.5

Zope-zopeedit.spec

index c4edbdd4d6e0d5bd839439e3b6ed2a18727029dc..616db013709d11ad9f87488e02c7e737a04c77ae 100644 (file)
@@ -4,7 +4,7 @@ Summary:        Client-side helper application for ExternalEditor Zope product
 Summary(pl):   Aplikacja kliencka dla ExternalEditor, produktu Zope
 Name:          Zope-%{zope_subname}
 Version:       0.7
-Release:       2
+Release:       3
 License:       ZPL 2.0
 Group:         Development/Tools
 Source0:       http://zope.org/Members/Caseman/ExternalEditor/%{version}/%{zope_subname}-%{version}-src.tgz
@@ -54,6 +54,10 @@ if ! grep -q zopeedit /etc/mailcap ; then
 fi
 
 %postun
+if grep -q zopeedit /etc/mailcap ; then
+       sed -e 's@application/x-zope-edit; /usr/bin/zopeedit %%s ; test=test -x /usr/bin/zopeedit@@g' /etc/mailcap >> /etc/mailcap_new
+       mv -f /etc/mailcap_new /etc/mailcap 
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.108167 seconds and 4 git commands to generate.