[Erp5-report] r8052 - /spec/mandriva/2006.0/zope-iHotfix/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 19 17:44:26 CEST 2006


Author: kevin
Date: Mon Jun 19 17:44:24 2006
New Revision: 8052

URL: http://svn.erp5.org?rev=8052&view=rev
Log:
Commit zope-iHotfix-0.5.2-3mdk spec files and patches

Added:
    spec/mandriva/2006.0/zope-iHotfix/
    spec/mandriva/2006.0/zope-iHotfix/iHotfix-0.5.2-get_request.patch
    spec/mandriva/2006.0/zope-iHotfix/zope-iHotfix.spec

Added: spec/mandriva/2006.0/zope-iHotfix/iHotfix-0.5.2-get_request.patch
URL: http://svn.erp5.org/spec/mandriva/2006.0/zope-iHotfix/iHotfix-0.5.2-get_request.patch?rev=8052&view=auto
==============================================================================
--- spec/mandriva/2006.0/zope-iHotfix/iHotfix-0.5.2-get_request.patch (added)
+++ spec/mandriva/2006.0/zope-iHotfix/iHotfix-0.5.2-get_request.patch Mon Jun 19 17:44:24 2006
@@ -1,0 +1,14 @@
+--- iHotfix-0.5.2.orig/iHotfix/__init__.py 2005-03-13 21:05:34.000000000 +0100
++++ iHotfix-0.5.2/iHotfix/__init__.py 2005-04-26 21:54:49.460730367 +0200
+@@ -115,7 +115,10 @@
+ 
+     # Add get_request for backwards compatibility
+     def get_request():
+-        return get_context().request.zope_request
++        try:
++            return get_context().request.zope_request
++        except:
++            return None
+     Globals.get_request = get_request
+ 
+ 

Added: spec/mandriva/2006.0/zope-iHotfix/zope-iHotfix.spec
URL: http://svn.erp5.org/spec/mandriva/2006.0/zope-iHotfix/zope-iHotfix.spec?rev=8052&view=auto
==============================================================================
--- spec/mandriva/2006.0/zope-iHotfix/zope-iHotfix.spec (added)
+++ spec/mandriva/2006.0/zope-iHotfix/zope-iHotfix.spec Mon Jun 19 17:44:24 2006
@@ -1,0 +1,67 @@
+%define product   iHotfix
+%define version   0.5.2
+%define release   3
+
+%define zope_home %{_prefix}/lib/zope
+%define software_home %{zope_home}/lib/python
+
+Summary:   Localizer's dynamic patch for Zope
+Name:      zope-%{product}
+Version:   %{version}
+Release:   %mkrel %{release}
+License:   GPL
+Group:     Development/Python
+Source0:   %{product}-%{version}.tar.bz2
+Patch0:    iHotfix-0.5.2-get_request.patch.bz2
+URL:       http://www.ikaaro.org/localizer/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
+BuildArch: noarch
+Requires:  zope python python-itools
+
+#----------------------------------------------------------------------
+%description
+This product dynamically patches Zope to fix four problems: the global
+request, the accept language, unicode for ZPT and mx.DateTime.
+
+#----------------------------------------------------------------------
+%prep
+%setup -c
+%patch0 -p1
+
+%build
+
+%install
+%{__rm} -rf %{buildroot}
+%{__mkdir_p} %{buildroot}/%{software_home}/Products
+%{__cp} -a * %{buildroot}%{software_home}/Products/
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post
+if [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
+  service zope restart
+fi
+
+%postun
+if [ -f "%{_prefix}/bin/zopectl" ] && [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
+  service zope restart
+fi
+
+%files
+%defattr(0644, root, root, 0755)
+%doc %{product}/CHANGES.txt %{product}/README.txt %{product}/TODO.txt %{product}/version.txt
+%{software_home}/Products/*
+
+#----------------------------------------------------------------------
+%changelog
+* Wed Jan 6 2006 Kevin Deldycke <kevin at nexedi.com> 0.5.2-3mdk
+- Update spec file to follow Mandriva 2006 rules
+- Update the patch
+
+* Tue Apr 25 2005 Yoshinori Okuji <yo at nexedi.com> 0.5.2-2mdk
+- Depend on python-itools instead of itools
+
+* Sun Apr 24 2005 Yoshinori Okuji <yo at nexedi.com> 0.5.2-1mdk
+- Initial package




More information about the Erp5-report mailing list