[Erp5-report] r23584 - /spec/mandriva/2008.0/erp5-ExternalEditor/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 12 12:39:54 CEST 2008
Author: kazuhiko
Date: Fri Sep 12 12:39:49 2008
New Revision: 23584
URL: http://svn.erp5.org?rev=23584&view=rev
Log:
import erp5-ExternalEditor.
Added:
spec/mandriva/2008.0/erp5-ExternalEditor/
spec/mandriva/2008.0/erp5-ExternalEditor/erp5-ExternalEditor.spec
Added: spec/mandriva/2008.0/erp5-ExternalEditor/erp5-ExternalEditor.spec
URL: http://svn.erp5.org/spec/mandriva/2008.0/erp5-ExternalEditor/erp5-ExternalEditor.spec?rev=23584&view=auto
==============================================================================
--- spec/mandriva/2008.0/erp5-ExternalEditor/erp5-ExternalEditor.spec (added)
+++ spec/mandriva/2008.0/erp5-ExternalEditor/erp5-ExternalEditor.spec Fri Sep 12 12:39:49 2008
@@ -1,0 +1,71 @@
+%define rpm_prefix erp5
+%define Product ExternalEditor
+%define product externaleditor
+%define name %{rpm_prefix}-%{Product}
+%define version 0.9.3
+%define release %mkrel 1
+
+%define zope_minver 2.7
+%define zope_home %{_prefix}/lib/erp5
+%define software_home %{zope_home}/lib/python
+
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Summary: Zope External Editor
+License: GPL
+Group: System/Servers
+URL: http://plone.org/products/%{product}
+Source: http://plone.org/products/%{product}/releases/%{version}/%{Product}-%{version}-src.tar.bz2
+# give a system configuration file
+Requires: %{rpm_prefix}-zope >= %{zope_minver}
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}
+
+%description
+Do you like editing zope objects in text areas?
+
+If not, this product is for you. The ExternalEditor is a Zope product and
+configurable helper application that allows you to drop into your favorite
+editor(s) directly from the ZMI to modify Zope objects. Its one of those
+"have your cake and eat it too" kind of things ;^).
+
+
+%prep
+%setup -c -q
+
+%build
+# Not much, eh? :-)
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__mkdir_p} %{buildroot}/%{software_home}/Products
+%{__mkdir_p} %{buildroot}/%{_bindir}
+%{__mkdir_p} %{buildroot}%{_sysconfdir}
+
+%{__cp} -a * %{buildroot}%{software_home}/Products/
+%{__rm} %{buildroot}%{software_home}/Products/ExternalEditor/zopeedit.py
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post
+if [ "`%{_prefix}/bin/zopectl-erp5 status`" != "daemon manager not running" ] ; then
+ service erp5 restart
+fi
+
+%postun
+if [ -f "%{_prefix}/bin/zopectl-erp5" ] && [ "`%{_prefix}/bin/zopectl-erp5 status`" != "daemon manager not running" ] ; then
+ service erp5 restart
+fi
+
+%files
+%defattr(-,root,root)
+%doc ExternalEditor/CHANGES.txt ExternalEditor/INSTALL-UNIX.txt
+%doc ExternalEditor/LICENSE.txt ExternalEditor/README.txt
+%{software_home}/Products/*
+
+%changelog
+* Fri Sep 12 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 0.9.3-1nxd2008.1
+- modify zope-ExternalEditor for erp5-zope
More information about the Erp5-report
mailing list