]> git.pld-linux.org Git - packages/Zope-zopeedit.git/blobdiff - Zope-zopeedit.spec
- descs cleanup
[packages/Zope-zopeedit.git] / Zope-zopeedit.spec
index 559a02c4ad7f522b652e2e82e69abd2f0c9d72e2..994e822b8e326ba63b39a241593b7b4611947082 100644 (file)
@@ -1,38 +1,38 @@
-%include       /usr/lib/rpm/macros.python
 %define                zope_subname    zopeedit
 Summary:       Client-side helper application for ExternalEditor Zope product
-Summary(pl):   Aplikacja pomocnicza dla ExternalEditor, produktu Zope
+Summary(pl.UTF-8):     Aplikacja kliencka dla produktu Zope ExternalEditor
 Name:          Zope-%{zope_subname}
-Version:       0.7
+Version:       0.9.3
 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
-URL:           http://zope.org/Members/Caseman/ExternalEditor/
-BuildRequires: python >= 2.2
+Source0:       http://plope.com/software/ExternalEditor/%{zope_subname}-%{version}-src.tgz
+# Source0-md5: 25dbf5438c27266a2a0840834f9bcd36
+URL:           http://plope.com/software/ExternalEditor/
+BuildRequires: python
+BuildRequires: rpm-pythonprov
+Requires(post,postun): grep
+Requires(postun):      fileutils
 %pyrequires_eq python-modules
 Requires:      python-tkinter
-Requires:      Zope
-Requires:      Zope-ExternalEditor
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Client-side helper application for ExternalEditor Zope product
+Client-side helper application for ExternalEditor Zope product.
 
-%description -l pl
-Aplikacja pomocnicza dla ExternalEditor, produktu Zope
+%description -l pl.UTF-8
+Aplikacja kliencka dla produktu Zope ExternalEditor.
 
 %prep
-%setup -q -n %{zope_subname}-%{version}-src
+%setup -q -n %{zope_subname}-%{version}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_datadir}/%{zope_subname},%{_mandir}/man1,%{_bindir}}
 
 install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
-cp -af {Plugins,%{zope_subname}.py} $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}
+cp -af {Plugins,version.txt,%{zope_subname}.py} $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}
 
 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}
 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}
@@ -51,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.05927 seconds and 4 git commands to generate.