]> git.pld-linux.org Git - packages/Zope.git/blobdiff - Zope.spec
- massive attack: source-md5
[packages/Zope.git] / Zope.spec
index 581ec8f87134587b5abd8d4fb342a593b5a9c713..8e6955c95a4c579082706cf81afae654c18a8171 100644 (file)
--- a/Zope.spec
+++ b/Zope.spec
@@ -8,20 +8,33 @@ Release:      1
 License:       Zope Public License (ZPL)
 Group:         Networking/Daemons
 Source0:       http://www.zope.org/Products/%{name}/%{version}/%{name}-%{version}-src.tgz
+# Source0-md5: a17f36b86b6e489797d8e52f1ba48efe
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       %{name}-zserver.sh
 Source4:       http://www.zope.org/Documentation/Guides/ZCMG/ZCMG.html.tgz
+# Source4-md5: 4c52eebc2e874a0590ac9c04e222e9f1
 Source5:       http://www.zope.org/Documentation/Guides/DTML/DTML.html.tgz
+# Source5-md5: 10f363dd061a1af8d472c51c32fa0a0e
 Source6:       http://www.zope.org/Documentation/Guides/ZSQL/ZSQL.html.tgz
+# Source6-md5: 0cddb5688fc0f886db468da08251fb81
 Source7:       http://www.zope.org/Documentation/Guides/%{name}-ProductTutorial.tar.gz
+# Source7-md5: 4b1b6f13826ecef3667ef54da948b867
 Source8:       http://www.zope.org/Documentation/Guides/ZDG/ZDG.html.tgz
+# Source8-md5: 0344ca88acb8a71688d2925975a55443
 Source9:       http://www.zope.org/Documentation/Guides/ZAG/ZAG.html.tgz
+# Source9-md5: b28bfc4ba4bee880767fcf89d79532d2
 Source10:      http://www.zope.org/Documentation/Books/ZopeBook/current/ZopeBook.tgz
+# Source10-md5:        268c38a4c7d9f7334cdc98b0a152f8da
 URL:           http://www.zope.org/
 BuildRequires: python-devel >= 2.2
 PreReq:                rc-scripts
-Requires(pre): user-zope
+Requires(pre): /usr/bin/getgid
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires(postun):      /usr/sbin/userdel
+Requires(postun):      /usr/sbin/groupdel
 Requires(post,preun):  /sbin/chkconfig
 Requires:      logrotate
 Requires:      python-modules >= 2.2
@@ -113,6 +126,16 @@ touch $RPM_BUILD_ROOT/var/log/zope
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+if [ -z "`getgid zope`" ]; then
+       echo "Making group zope"
+       /usr/sbin/groupadd -r -f zope
+fi
+if [ -z "`id -u zope 2>/dev/null`" ]; then
+       echo "Making user zope"
+       /usr/sbin/useradd -r -d /var/lib/zope -s /bin/false -c "Zope User" -g zope zope
+fi
+
 %post
 /sbin/chkconfig --add zope
 if [ -f /var/lock/subsys/zope ]; then
@@ -130,9 +153,17 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del zope
 fi
 
+%postun
+if [ "$1" = "0" ] ; then
+       echo "Removing user zope"
+       /usr/sbin/userdel zope >/dev/null 2>&1 || :
+       echo "Removing group zope"
+       /usr/sbin/groupdel zope >/dev/null 2>&1 || :    
+fi
+
 %files
 %defattr(644,root,root,755)
-%doc doc/*.txt *.txt ZopeContentManagersGuide GuideToZSQL Tutorial ZopeDevelopersGuide ZopeAdminGuide ZopeBook
+%doc doc/*.txt *.txt ZopeContentManagersGuide GuideToZSQL ZopeDevelopersGuide ZopeAdminGuide ZopeBook
 %attr(755,root,root) /etc/rc.d/init.d/zope
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
This page took 0.072592 seconds and 4 git commands to generate.