]> git.pld-linux.org Git - packages/Zope.git/blobdiff - Zope.spec
- attributes fix
[packages/Zope.git] / Zope.spec
index bc2d0ba945600b84b5ee8d955de0eaca71f309a1..fdaaada86492855115cb03c36c537811690b13fd 100644 (file)
--- a/Zope.spec
+++ b/Zope.spec
@@ -31,12 +31,12 @@ URL:                http://www.zope.org/
 BuildRequires: python-devel >= 2.2.2
 BuildRequires: perl
 PreReq:                rc-scripts
-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(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 >= 2.2.2
@@ -88,7 +88,7 @@ eles ao inv
 %prep
 %setup -q -n %{name}-%{version}-src -a6
 %patch0 -p1
-mkdir ZopeContentManagersGuide GuideToDTML GuideToZSQL ZopeDevelopersGuide 
+mkdir ZopeContentManagersGuide GuideToDTML GuideToZSQL ZopeDevelopersGuide
 mkdir ZopeAdminGuide ZopeBook
 tar xzf %{SOURCE6} -C ZopeContentManagersGuide
 tar xzf %{SOURCE7} -C GuideToDTML
@@ -147,12 +147,14 @@ fi
 
 %post
 /sbin/chkconfig --add zope
+was_stopped=0
 if [ -f /var/lib/zope/Data.fs ]; then
        echo "Found the database in old location. Migrating..."
        if [ -f /var/lock/subsys/zope ]; then
            /etc/rc.d/init.d/zope stop >&2
            was_stopped=1
        fi
+       umask 022
        [ -d /var/lib/zope/main ] && cd /var/lib/zope && mv -f * ./main 2>/dev/null
        touch /var/lib/zope/access
        if [ "x$was_stopped" = "x1" ]; then
@@ -182,13 +184,13 @@ 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 || :    
+       /usr/sbin/groupdel zope >/dev/null 2>&1 || :
 fi
 
 %files
 %defattr(644,root,root,755)
 %doc doc/*.txt *.txt ZopeContentManagersGuide GuideToZSQL ZopeDevelopersGuide ZopeAdminGuide ZopeBook
-%attr(755,root,root) /etc/rc.d/init.d/zope
+%attr(754,root,root) /etc/rc.d/init.d/zope
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_libdir}/zope
This page took 0.029884 seconds and 4 git commands to generate.