]> git.pld-linux.org Git - packages/Zope-zopeedit.git/blobdiff - Zope-zopeedit.spec
- added %postun section
[packages/Zope-zopeedit.git] / 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.053877 seconds and 4 git commands to generate.