]> git.pld-linux.org Git - packages/Zope-zopeedit.git/commitdiff
- Renamed spec
authorciesiel <ciesiel@pld-linux.org>
Sat, 1 Nov 2003 09:50:15 +0000 (09:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Cleaning logs
- Req.

Changed files:
    Zope-zopeedit.spec -> 1.1

Zope-zopeedit.spec [new file with mode: 0644]

diff --git a/Zope-zopeedit.spec b/Zope-zopeedit.spec
new file mode 100644 (file)
index 0000000..559a02c
--- /dev/null
@@ -0,0 +1,65 @@
+%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
+Name:          Zope-%{zope_subname}
+Version:       0.7
+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
+%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
+
+%description -l pl
+Aplikacja pomocnicza dla ExternalEditor, produktu Zope
+
+%prep
+%setup -q -n %{zope_subname}-%{version}-src
+
+%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}
+
+%py_comp $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}
+%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}
+
+cat >$RPM_BUILD_ROOT%{_bindir}/%{zope_subname} <<EOF
+#!/bin/sh
+
+exec %{_bindir}/python %{_datadir}/%{zope_subname}/%{zope_subname}.pyo \$*
+EOF
+
+# sometimes .py needed
+# rm -f $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}/*.py
+# rm -f $RPM_BUILD_ROOT%{_datadir}/%{zope_subname}/Plugins/*.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if ! grep -q zopeedit /etc/mailcap ; then
+       echo "application/x-zope-edit; /usr/bin/zopeedit %%s ; test=test -x /usr/bin/zopeedit" >> /etc/mailcap
+fi
+
+%postun
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt INSTALL-UNIX.txt LICENSE.txt README.txt
+%attr(755,root,root) %{_bindir}/%{zope_subname}
+%{_datadir}/%{zope_subname}
+%{_mandir}/man1/*
This page took 0.070715 seconds and 4 git commands to generate.