[Erp5-report] r16916 - /spec/mandriva/2007.1/erp5-zope/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 9 18:38:11 CEST 2007


Author: kazuhiko
Date: Tue Oct  9 18:38:11 2007
New Revision: 16916

URL: http://svn.erp5.org?rev=16916&view=rev
Log:
initial commit of Zope-2.8 package for ERP5.

Added:
    spec/mandriva/2007.1/erp5-zope/README.install.urpmi.erp5-zope
    spec/mandriva/2007.1/erp5-zope/Zope-2.8.0-final-aq_dynamic.patch.bz2   (with props)
    spec/mandriva/2007.1/erp5-zope/skel-for-rpm.tar.bz2   (with props)
    spec/mandriva/2007.1/erp5-zope/zope-book.tar.bz2   (with props)
    spec/mandriva/2007.1/erp5-zope/zope-devguide.tar.bz2   (with props)
Modified:
    spec/mandriva/2007.1/erp5-zope/erp5-zope.spec

Added: spec/mandriva/2007.1/erp5-zope/README.install.urpmi.erp5-zope
URL: http://svn.erp5.org/spec/mandriva/2007.1/erp5-zope/README.install.urpmi.erp5-zope?rev=16916&view=auto
==============================================================================
--- spec/mandriva/2007.1/erp5-zope/README.install.urpmi.erp5-zope (added)
+++ spec/mandriva/2007.1/erp5-zope/README.install.urpmi.erp5-zope Tue Oct  9 18:38:11 2007
@@ -1,0 +1,7 @@
+A Zope/ERP5 instance has been installed.
+Run it via "/etc/rc.d/init.d/erp5 start".
+
+Log in via a browser on port 9080.
+
+You can add an administrative user with
+"zopectl-erp5 adduser admin admin_passwd".

Added: spec/mandriva/2007.1/erp5-zope/Zope-2.8.0-final-aq_dynamic.patch.bz2
URL: http://svn.erp5.org/spec/mandriva/2007.1/erp5-zope/Zope-2.8.0-final-aq_dynamic.patch.bz2?rev=16916&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/mandriva/2007.1/erp5-zope/Zope-2.8.0-final-aq_dynamic.patch.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: spec/mandriva/2007.1/erp5-zope/erp5-zope.spec
URL: http://svn.erp5.org/spec/mandriva/2007.1/erp5-zope/erp5-zope.spec?rev=16916&r1=16915&r2=16916&view=diff
==============================================================================
--- spec/mandriva/2007.1/erp5-zope/erp5-zope.spec (original)
+++ spec/mandriva/2007.1/erp5-zope/erp5-zope.spec Tue Oct  9 18:38:11 2007
@@ -1,10 +1,9 @@
-%define realVersion 2.7.8-final
+%define realVersion 2.8.9.1-final
 %define name        zope
-%define release     9.1
+%define release     3
 
 %define version  %(echo %{realVersion} | sed -e's/-/./g')
 %define sVersion %(echo %{realVersion} | cut -d- -f1)
-
 
 Summary:       The patched version of Zope application server for ERP5
 Name:          erp5-%{name}
@@ -13,17 +12,20 @@
 License:       Zope Public License (ZPL)
 Group:         System/Servers
 URL:           http://www.zope.org
-Source0:       http://zope.org/Products/Zope/%{sVersion}/Zope-%{realVersion}.tar.bz2
-Source1:       skel.tar.bz2
-Source2:       http://www.zope.org/Members/michel/ZB/ZopeBook.tar.bz2
-Source3:       README.install.urpmi.zope
-Patch0:        Zope-2.7.2-rc1-aq_dynamic.patch.bz2
-Requires:      libpython2.4 python2.4 >= 2.4.3
+Source0:       http://zope.org/Products/Zope/%{sVersion}/Zope-%{realVersion}.tgz
+Source1:       skel-for-rpm.tar.bz2
+Source2:       README.install.urpmi.erp5-zope
+Source10:      zope-book.tar.bz2
+Source11:      zope-devguide.tar.bz2
+Patch0:        Zope-2.8.0-final-aq_dynamic.patch.bz2
+Requires:      libpython2.4 python >= 2.4.3
 BuildRequires: libpython2.4-devel >= 2.4.3
 BuildRoot:     %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
 Epoch:         1
 Provides:      erp5-zope = %{?Epoch:%Epoch-}%{version}
-
+# zope-2.8 includes the following products
+Provides:      erp5-ZopeTestCase, erp5-BTreeFolder2, erp5-VerboseSecurity
+Obsoletes:     erp5-ZopeTestCase, erp5-BTreeFolder2, erp5-VerboseSecurity
 
 %define python        /usr/bin/python2.4
 %define zopehome      /usr/lib/erp5
@@ -49,18 +51,19 @@
 make ERP5 working well.
 
 %prep
-%setup -q -n Zope-%{realVersion}
+%setup -q -n Zope-%{realVersion} -a 1 -a 10 -a 11
 
 %patch0 -p1
 
-# Add skel
-rm -rf skel
-tar xvjf %{SOURCE1}
-#rm skel/var/log/zope/README.txt skel/var/run/zope/README.txt
-
-# Prepare doc (Zope Book)
-tar xjf %{SOURCE2}
-
+# remove needless executable permission
+find doc lib skel/import import -type f -perm /111 -exec chmod -x {} \;
+
+find lib/python -type f -and \( -name 'Setup' -or -name '.cvsignore' \) \
+    -exec rm -f \{\} \;
+find -name "Win32" | xargs rm -rf
+rm -f ZServer/medusa/monitor_client_win32.py
+
+cp -p %{SOURCE2} README.install.urpmi
 
 %build
 mkdir -p build
@@ -72,38 +75,10 @@
 make build
 popd
 
-# process the skel directory into the buildroot
-%{python} << EOF
-import py_compile, os
-files = os.popen("find . -name '*.py'").readlines()
-for file in files:
-    file = file.strip()
-    py_compile.compile(file, file+"o", "%{zopehome}/"+file)
-    py_compile.compile(file, file+"c", "%{zopehome}/"+file)
-EOF
-
-# XXX: next release...
-#env CFLAGS="$RPM_OPT_FLAGS" /usr/bin/python setup.py build
-#/usr/bin/python setup.py install --root=$RPM_BUILD_ROOT \
-#    --record=INSTALLED_FILES
-
-## Clean sources
-#find -type d -name "tests" | xargs rm -rf
-find lib/python -type f -and \( -name 'Setup' -or -name '.cvsignore' \) \
-    -exec rm -f \{\} \;
-#find -type f -and \( -name '*.c' -or -name '*.h' -or -name 'Makefile*' \) \
-#    -exec rm -f \{\} \;
-find -name "Win32" | xargs rm -rf
-rm -f ZServer/medusa/monitor_client_win32.py
-
-# Has a bogus #!/usr/local/bin/python1.4 that confuses RPM
-rm -f ZServer/medusa/test/asyn_http_bench.py
-
-cp %{SOURCE3} README.install.urpmi
-
 %install
+%{__rm} -rf %{buildroot}
 %{python} "utilities/copyzopeskel.py" \
-         --sourcedir="skel" \
+         --sourcedir="skel-for-rpm" \
          --targetdir="%{buildroot}" \
          --replace="INSTANCE_HOME:%{instancehome}" \
          --replace="CLIENT_HOME:%{clienthome}" \
@@ -116,48 +91,30 @@
          --replace="ZOPECTL:%{zopectl}" \
          --replace="RUNZOPE:%{runzope}"
 
-#perl -pi -e "s|data_dir\s+=\s+.*?join\(INSTANCE_HOME, 'var'\)|data_dir=INSTANCE_HOME|" lib/python/Globals.py
-
-
 pushd build
 make install
 popd
-
-#rm -rf $RPM_BUILD_ROOT
-#install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/zope/lib/python} \
-#    $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/log,/var/lib/zope}
-#
-#cp -a lib/python/* $RPM_BUILD_ROOT%{_libdir}/zope/lib/python
-#cp -a ZServer/ utilities/ import/ $RPM_BUILD_ROOT%{_libdir}/zope
-#find $RPM_BUILD_ROOT%{_libdir}/zope -type f -name '*.py' -or -name '*.txt' \
-#    | xargs -r rm -f
-#cp -a ZServer/medusa/test/* $RPM_BUILD_ROOT%{_libdir}/zope/ZServer/medusa/test/
-#
-#install zpasswd.py $RPM_BUILD_ROOT%{_bindir}/zpasswd
-#install z2.py $RPM_BUILD_ROOT%{_libdir}/zope
-#install %{SOURCE8} $RPM_BUILD_ROOT%{_sbindir}/zope-zserver
-#install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/zope
-#install var/Data.fs $RPM_BUILD_ROOT/var/lib/zope/Data.fs
+%py_compile %{buildroot}%{softwarehome}
 
 # Remove old log
-rm -rf $RPM_BUILD_ROOT/var/log/zope
+rm -rf %{buildroot}/var/log/zope
 
 # Create new log dir
-mkdir -p $RPM_BUILD_ROOT%{loghome}
-touch $RPM_BUILD_ROOT%{loghome}/event.log
-touch $RPM_BUILD_ROOT%{loghome}/Z2.log
+mkdir -p %{buildroot}%{loghome}
+touch %{buildroot}%{loghome}/event.log
+touch %{buildroot}%{loghome}/Z2.log
 
 # Rename binaries
-mv $RPM_BUILD_ROOT/usr/bin/zopectl $RPM_BUILD_ROOT/%{zopectl}
-mv $RPM_BUILD_ROOT/usr/bin/runzope $RPM_BUILD_ROOT/%{runzope}
-mv $RPM_BUILD_ROOT/etc/rc.d/init.d/zope $RPM_BUILD_ROOT/etc/rc.d/init.d/%{service}
-mv $RPM_BUILD_ROOT/etc/zope.conf $RPM_BUILD_ROOT/%{configfile}
-mv $RPM_BUILD_ROOT/etc/logrotate.d/zope $RPM_BUILD_ROOT/etc/logrotate.d/%{service}
-mv $RPM_BUILD_ROOT/var/lib/zope $RPM_BUILD_ROOT/%{instancehome}
-mv $RPM_BUILD_ROOT/var/run/zope $RPM_BUILD_ROOT/%{statehome}
+mv %{buildroot}/usr/bin/zopectl %{buildroot}/%{zopectl}
+mv %{buildroot}/usr/bin/runzope %{buildroot}/%{runzope}
+mv %{buildroot}/etc/rc.d/init.d/zope %{buildroot}/etc/rc.d/init.d/%{service}
+mv %{buildroot}/etc/zope.conf %{buildroot}/%{configfile}
+mv %{buildroot}/etc/logrotate.d/zope %{buildroot}/etc/logrotate.d/%{service}
+mv %{buildroot}/var/lib/zope %{buildroot}/%{instancehome}
+mv %{buildroot}/var/run/zope %{buildroot}/%{statehome}
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %pre
 %_pre_useradd %{zopeuser} %{instancehome} /bin/false
@@ -166,24 +123,6 @@
 %_post_service %{service}
 /sbin/chkconfig --add %{service}
 
-# disable this feature : it creates problem during update and
-# is confusing for somebody who don't care about installation message
-# zope display a how to create an administrative user if it doesn't exit
-# README.install.urpmi display the rest of the text
-
-# # write a 10 digit random default admin password into acl_users
-# passwd=`head -c4 /dev/urandom | od -tu4 -N4 | sed -ne '1s/.* //p'`
-# %{zopectl} adduser admin $passwd
-# # inform the user of the default username/password combo and port
-# echo
-# echo A Zope instance has been installed.  Run it via
-# echo \"/etc/rc.d/init.d/zope start\".  Log in via a browser on port 9080.
-# echo
-# echo Zope has default administrative username/password combination.  The
-# echo "administrative username is \"admin\" and the password is \"$passwd\"."
-# echo Please remember this so you are able to log in for the first time.
-# echo
-
 %preun
 %_preun_service %{service}
 
@@ -191,37 +130,21 @@
 %_postun_userdel %{zopeuser}
 
 %files
-%defattr(0644,root,root,755)
-%dir %{zopehome}
-%{zopehome}/doc
-%{zopehome}/import
-%{zopehome}/lib
-%{zopehome}/skel
-
-%attr(755,root,root)%{runzope}
-%attr(755,root,root)%{zopectl}
-%attr(755,root,root) %{zopehome}/bin/*
-%attr(755,root,root) %config(noreplace) /etc/rc.d/init.d/%{service}
+%defattr(-,root,root,755)
+%{zopehome}
+%{runzope}
+%{zopectl}
+%config(noreplace) /etc/rc.d/init.d/%{service}
 %config(noreplace) %{configfile}
 %config(noreplace) /etc/logrotate.d/%{service}
 
-%attr(770, %{zopeuser}, %{zopeuser}) %config(noreplace) %verify(not md5 size mtime) %{instancehome}
-%attr(755, %{zopeuser}, %{zopeuser}) %dir %{statehome}
-%attr(770, %{zopeuser}, %{zopeuser}) %dir %{loghome}
+%attr(-,%{zopeuser},%{zopeuser}) %config(noreplace) %verify(not md5 size mtime) %{instancehome}
+%attr(-,%{zopeuser},%{zopeuser}) %dir %{statehome}
+%attr(-,%{zopeuser},%{zopeuser}) %dir %{loghome}
 %ghost %{loghome}/Z2.log
 %ghost %{loghome}/event.log
 
 %doc README.install.urpmi
-
-#%defattr(644,root,root,755)
-#%config(noreplace) %attr(755,root,root) /etc/rc.d/init.d/zope
-#%attr(755,root,root) %{_bindir}/*
-#%attr(755,root,root) %{_sbindir}/*
-#%{_libdir}/zope
-#%attr(1771,root,zope) %dir /var/lib/zope
-#%attr(660,root,zope) %config(noreplace) %verify(not md5 size mtime) /var/lib/zope/*
-##%attr(640,root,root) %ghost /var/log/zope
-
 
 ##############################################################################
 
@@ -236,15 +159,18 @@
 high-performance, integrated object database.
 
 %files docs
-%defattr(644, root, root, 755)
-%doc ZopeBook doc
-
-
-##############################################################################
+%defattr(-,root,root,755)
+%doc doc zope-book zope-devguide
 
 %changelog
-* Tue May 29 2007 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 2.7.8-9.1mdv2007.1
-- Rebuild against python2.4
+* Wed Oct 10 2007 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 2.8.9.1.final-3mdv2007.1
+- revise ownership of directories.
+
+* Mon Sep 17 2007 Yoshinori Okuji <yo at nexedi.com> 2.8.9.1.final-2mdv2007.1
+- Include README.install.urpmi.erp5-zope.
+
+* Wed Sep  5 2007 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 2.8.9.1.final-1mdv2007.1
+- upgrade to Zope-2.8
 
 * Sun May 13 2007 Jean-Paul Smets <jp at nexedi.com> 2.7.8-9mdv2007.0
 - make paths completely generic
@@ -300,43 +226,43 @@
 - Bump to 2.7.2rc1
 - Patch Acquistion to support _aq_dynamic
 
-* Sat Feb 07 2004 St�ane Fermigier <sf at nuxeo.com> 2.7.0rc2-1mdk
+* Sat Feb 07 2004 Stéfane Fermigier <sf at nuxeo.com> 2.7.0rc2-1mdk
 - Bump to Zope 2.7.0rc2
 
-* Sun Jan 11 2004 St�ane Fermigier <sf at nuxeo.com> 2.7.0b4-1mdk
+* Sun Jan 11 2004 Stéfane Fermigier <sf at nuxeo.com> 2.7.0b4-1mdk
 - Bump to Zope 2.7.0b4
 
-* Sun Sep 14 2003 St�ane Fermigier <sf at nuxeo.com> 2.7.0b2-1pyp
+* Sun Sep 14 2003 Stéfane Fermigier <sf at nuxeo.com> 2.7.0b2-1pyp
 - Update to Zope 2.7.0b2
 
-* Fri Aug 15 2003 St�ane Fermigier <sf at nuxeo.com> 2.7.0b1-3pyp
+* Fri Aug 15 2003 Stéfane Fermigier <sf at nuxeo.com> 2.7.0b1-3pyp
 - Update for Python 2.3
 
-* Sat Aug 9 2003 St�ane Fermigier <sf at nuxeo.com> 2.7.0b1-2pyp
+* Sat Aug 9 2003 Stéfane Fermigier <sf at nuxeo.com> 2.7.0b1-2pyp
 - Added copyright notice
 - Compile to .pyc as well as to .pyo
 
-* Sat Jul 26 2003 St�ane Fermigier <sf at nuxeo.com> 2.7.0b1-1mdk
+* Sat Jul 26 2003 Stéfane Fermigier <sf at nuxeo.com> 2.7.0b1-1mdk
 - Update to Zope 2.7.0b1
 - Merged stuff from the Zope.org RPM
 
-* Sat May 3 2003 St�ane Fermigier <sf at nuxeo.com> 2.6.1-6mdk
+* Sat May 3 2003 Stéfane Fermigier <sf at nuxeo.com> 2.6.1-6mdk
 - Moved python stuff from /usr/lib/zope to /usr/lib/zope/lib/python
 
-* Mon Mar 24 2003 St�ane Fermigier <sf at nuxeo.com> 2.6.1-5mdk
+* Mon Mar 24 2003 Stéfane Fermigier <sf at nuxeo.com> 2.6.1-5mdk
 - Moved python stuff from /usr/lib/zope to /usr/lib/zope/lib/python
 
-* Tue Feb 25 2003 St�ane Fermigier <sf at nuxeo.com> 2.6.1-4mdk
+* Tue Feb 25 2003 Stéfane Fermigier <sf at nuxeo.com> 2.6.1-4mdk
 - changes by Frederic Lepied
 - fixed dependency problem between zope-docs and zope
 - removed unused directive
 
-* Sun Feb 23 2003 St�ane Fermigier <sf at nuxeo.com> 2.6.1-3mdk
+* Sun Feb 23 2003 Stéfane Fermigier <sf at nuxeo.com> 2.6.1-3mdk
 - fix bugs
 
-* Sat Feb 22 2003 St�ane Fermigier <sf at nuxeo.com> 2.6.1-2mdk
+* Sat Feb 22 2003 Stéfane Fermigier <sf at nuxeo.com> 2.6.1-2mdk
 - dont ship tests
 - separate docs package, including the Zope Book.
 
-* Sat Feb 22 2003 St�ane Fermigier <sf at nuxeo.com> 2.6.1-1mdk
+* Sat Feb 22 2003 Stéfane Fermigier <sf at nuxeo.com> 2.6.1-1mdk
 - First release starting from PLD RPM.

Added: spec/mandriva/2007.1/erp5-zope/skel-for-rpm.tar.bz2
URL: http://svn.erp5.org/spec/mandriva/2007.1/erp5-zope/skel-for-rpm.tar.bz2?rev=16916&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/mandriva/2007.1/erp5-zope/skel-for-rpm.tar.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/mandriva/2007.1/erp5-zope/zope-book.tar.bz2
URL: http://svn.erp5.org/spec/mandriva/2007.1/erp5-zope/zope-book.tar.bz2?rev=16916&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/mandriva/2007.1/erp5-zope/zope-book.tar.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/mandriva/2007.1/erp5-zope/zope-devguide.tar.bz2
URL: http://svn.erp5.org/spec/mandriva/2007.1/erp5-zope/zope-devguide.tar.bz2?rev=16916&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/mandriva/2007.1/erp5-zope/zope-devguide.tar.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream




More information about the Erp5-report mailing list