Hi,
I am packaging zope 2.9 (wich, at this time is in beta version) in order
to have a ready RPM package when it's released as final stable.
The sample configuration file is not the same anymore, and the patch for
zope 2.8s is obsolete for 2.9.
$ cd /source/directory
$ mv Zope/skel/etc/zope.conf.in Zope/skel/etc/zope.conf.in.original
I edited Zope/skel/etc/zope.conf.in
And generated the patch as folllow.
$ diff -Naur Zope/skel/etc/zope.conf.in.original
Zope/skel/etc/zope.conf.in
--- Zope/skel/etc/zope.conf.in.original 2005-12-21 12:09:22.000000000
+0100
+++ Zope/skel/etc/zope.conf.in 2005-12-26 14:28:10.000000000 +0100
@@ -146,7 +146,8 @@
#
# Example:
#
-# effective-user chrism
+
+effective-user <<ZOPE_USER>>
# Directive: enable-product-installation
@@ -510,7 +511,8 @@
#
# Example:
#
-# security-policy-implementation python
+
+security-policy-implementation python
# Directive: skip-authentication-checking
######################################################
################ End of the patch ####################
######################################################
Then I save it under the SOURCES directory
$ diff -Naur Zope/skel/etc/zope.conf.in.original \
Zope/skel/etc/zope.conf.in >\
/usr/src/redhat/SOURCES/zope-2.9.0-config.patch
$ rpmbuild -ba zope.spec
[...]
+ echo 'Patch #0 (zope-2.9.0-config.patch):'
Patch #0 (zope-2.9.0-config.patch):
+ patch -p1 -b --suffix .config -s
The text leading up to this was:
--------------------------
|--- Zope/skel/etc/zope.conf.in.original 2005-12-21
12:09:22.000000000 +0100
|+++ Zope/skel/etc/zope.conf.in 2005-12-26 14:28:10.000000000 +0100
--------------------------
File to patch:
What did I do wrong?
I attach the specfile.
--
A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source & GPL).
Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better.
http://www.cps-project.org for downloads & documentation.
Free hosting of CPS groupware:
http://www.objectis.org.