]> git.pld-linux.org Git - packages/Zope-zopeedit.git/blobdiff - Zope-zopeedit.spec
- upgraded to version 0.7.2
[packages/Zope-zopeedit.git] / Zope-zopeedit.spec
index c4edbdd4d6e0d5bd839439e3b6ed2a18727029dc..9562c91f5c93455ecf78cf6e3c44a24f6cfed624 100644 (file)
@@ -3,14 +3,16 @@
 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
+Version:       0.7.2
+Release:       1
 License:       ZPL 2.0
 Group:         Development/Tools
 Source0:       http://zope.org/Members/Caseman/ExternalEditor/%{version}/%{zope_subname}-%{version}-src.tgz
-# Source0-md5: 87fe890a7f7c2506db16142bc4789b38
+# Source0-md5: e2e9be6e50a67b401e346a5097fcb7fa
 URL:           http://zope.org/Members/Caseman/ExternalEditor/
 BuildRequires: python >= 2.2
+Requires(post,postun): grep
+Requires(postun):      fileutils
 %pyrequires_eq python-modules
 Requires:      python-tkinter
 BuildArch:     noarch
@@ -49,15 +51,23 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if ! grep -q zopeedit /etc/mailcap ; then
+if ! grep -qs zopeedit /etc/mailcap ; then
+       umask 022
        echo "application/x-zope-edit; /usr/bin/zopeedit %%s ; test=test -x /usr/bin/zopeedit" >> /etc/mailcap
 fi
 
 %postun
+if [ "$1" = "0" ]; then
+       if grep -qs zopeedit /etc/mailcap ; then
+               umask 022
+               grep -v '^application/x-zope-edit; /usr/bin/zopeedit %%s ; test=test -x /usr/bin/zopeedit$' /etc/mailcap >> /etc/mailcap_new
+               mv -f /etc/mailcap_new /etc/mailcap 
+       fi
+fi
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES.txt INSTALL-UNIX.txt LICENSE.txt README.txt
+%doc CHANGES.txt INSTALL-UNIX.txt README.txt
 %attr(755,root,root) %{_bindir}/%{zope_subname}
 %{_datadir}/%{zope_subname}
 %{_mandir}/man1/*
This page took 0.074477 seconds and 4 git commands to generate.