[Erp5-report] r8028 - /spec/mandriva/2006.0/zope-VisualTraceback/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 19 17:41:49 CEST 2006


Author: kevin
Date: Mon Jun 19 17:41:44 2006
New Revision: 8028

URL: http://svn.erp5.org?rev=8028&view=rev
Log:
Commit zope-VisualTraceback-0.10-1mdk spec files and patches

Added:
    spec/mandriva/2006.0/zope-VisualTraceback/
    spec/mandriva/2006.0/zope-VisualTraceback/zope-VisualTraceback.spec   (with props)

Added: spec/mandriva/2006.0/zope-VisualTraceback/zope-VisualTraceback.spec
URL: http://svn.erp5.org/spec/mandriva/2006.0/zope-VisualTraceback/zope-VisualTraceback.spec?rev=8028&view=auto
==============================================================================
--- spec/mandriva/2006.0/zope-VisualTraceback/zope-VisualTraceback.spec (added)
+++ spec/mandriva/2006.0/zope-VisualTraceback/zope-VisualTraceback.spec Mon Jun 19 17:41:44 2006
@@ -1,0 +1,63 @@
+%define product   VisualTraceback
+%define version   0.10
+%define release   1
+
+%define zope_home %{_prefix}/lib/zope
+%define software_home %{zope_home}/lib/python
+
+Summary:   A Zope product that improve traceback display with code excerpt and highlighting
+Name:      zope-%{product}
+Version:   %{version}
+Release:   %mkrel %{release}
+License:   ZPL
+Group:     System/Servers
+Source0:   %{product}-%{version}.tar.bz2
+URL:       http://www.zope.org/Members/tino/VisualTraceback/VisualTraceback
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
+BuildArch: noarch
+Requires:  zope enscript
+
+#----------------------------------------------------------------------
+%description
+This monkeypatch is a proof of concept to show how exception formatting
+could be improved.
+
+It includes up to 5 lines of the sourcecode where the exception occured
+and displays them with linenumbers, marking the line where the
+exception occured.
+
+If installed enscript is found during product initialization, it is
+used for a nice syntax highlighting of the cited code.
+
+#----------------------------------------------------------------------
+%prep
+%setup -c
+
+%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)
+%{software_home}/Products/*
+
+#----------------------------------------------------------------------
+%changelog
+* Tue Jan 31 2006 Kevin Deldycke <kevin at nexedi.com> 0.10-1mdk
+- Initial release

Propchange: spec/mandriva/2006.0/zope-VisualTraceback/zope-VisualTraceback.spec
------------------------------------------------------------------------------
    svn:executable = *




More information about the Erp5-report mailing list