]> git.pld-linux.org Git - packages/Zope.git/blobdiff - Zope.spec
- updated
[packages/Zope.git] / Zope.spec
index 33ef783f35bf4b9ebe69af0efdcb3b11e91840ed..0b2ee99ce800f7445d5e19700ff72c79e3b0aaf2 100644 (file)
--- a/Zope.spec
+++ b/Zope.spec
@@ -1,39 +1,46 @@
 Summary:       An application server and portal toolkit for building Web sites
 Summary(es):   Un servidor de aplicaciones y un conjunto de herramientas para la construcción de sitios Web
 Summary:       An application server and portal toolkit for building Web sites
 Summary(es):   Un servidor de aplicaciones y un conjunto de herramientas para la construcción de sitios Web
+Summary(pl):   Serwer aplikacji i toolkit portalowy do tworzenia serwisów WWW
 Summary(pt_BR):        Um servidor de aplicações e um conjunto de ferramentas para construção de sites Web
 Name:          Zope
 Summary(pt_BR):        Um servidor de aplicações e um conjunto de ferramentas para construção de sites Web
 Name:          Zope
-Version:       2.4.1
-Release:       2
+Version:       2.6.1
+Release:       1
 License:       Zope Public License (ZPL)
 Group:         Networking/Daemons
 License:       Zope Public License (ZPL)
 Group:         Networking/Daemons
-Group(de):     Netzwerkwesen/Server
-Group(pl):     Sieciowe/Serwery
-Source0:       http://www.zope.org/Download/Releases/%{name}-%{version}/%{name}-%{version}-src.tgz
-Source1:       http://www.zope.org/Documentation/Guides/ZCMG/ZCMG.html.tgz
-Source2:       http://www.zope.org/Documentation/Guides/DTML/DTML.html.tgz
-Source3:       http://www.zope.org/Documentation/Guides/ZSQL/ZSQL.html.tgz
-Source4:       http://www.zope.org/Documentation/Guides/%{name}-ProductTutorial.tar.gz
-Source5:       http://www.zope.org/Documentation/Guides/ZDG/ZDG.html.tgz
-Source6:       http://www.zope.org/Documentation/Guides/ZAG/ZAG.html.tgz
+Source0:       http://www.zope.org/Products/%{name}/%{version}/%{name}-%{version}-src.tgz
+Source1:       %{name}.init
+Source2:       %{name}.logrotate
+Source3:       %{name}-zserver.sh
+Source4:       http://www.zope.org/Documentation/Guides/ZCMG/ZCMG.html.tgz
+Source5:       http://www.zope.org/Documentation/Guides/DTML/DTML.html.tgz
+Source6:       http://www.zope.org/Documentation/Guides/ZSQL/ZSQL.html.tgz
+Source7:       http://www.zope.org/Documentation/Guides/%{name}-ProductTutorial.tar.gz
+Source8:       http://www.zope.org/Documentation/Guides/ZDG/ZDG.html.tgz
+Source9:       http://www.zope.org/Documentation/Guides/ZAG/ZAG.html.tgz
+Source10:      http://www.zope.org/Documentation/Books/ZopeBook/current/ZopeBook.tgz
 URL:           http://www.zope.org/
 URL:           http://www.zope.org/
-Source7:       %{name}.init
-Source8:       %{name}-zserver.sh
-Prereq:                rc-scripts
-Prereq:                /sbin/chkconfig
-Prereq:                /usr/sbin/useradd
-Requires:      python >= 2.1
-BuildRequires: python-devel >= 2.1
+BuildRequires: python-devel >= 2.2
+PreReq:                rc-scripts
+Requires(pre): /usr/bin/getgid
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/userdel
+Requires(postun):      /usr/sbin/groupdel
+Requires:      logrotate
+Requires:      python-modules >= 2.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define python_prefix      %(echo `python -c "import sys; print sys.prefix"`)
-%define python_version     %(echo `python -c "import sys; print sys.version[:3]"`)
-%define python_libdir      %{python_prefix}/lib/python%{python_version}
-%define python_includedir  %{python_prefix}/include/python%{python_version}
-%define python_sitedir     %{python_libdir}/site-packages
-%define python_configdir   %{python_libdir}/config
+%define                python_prefix           %(echo `python -c "import sys; print sys.prefix"`)
+%define                python_version          %(echo `python -c "import sys; print sys.version[:3]"`)
+%define                python_libdir           %{python_prefix}/lib/python%{python_version}
+%define                python_includedir       %{python_prefix}/include/python%{python_version}
+%define                python_sitedir          %{python_libdir}/site-packages
+%define                python_configdir        %{python_libdir}/config
 
 
-%define python_compile     python -c "import compileall; compileall.compile_dir('.')"
-%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
+%define                python_compile          python -c "import compileall; compileall.compile_dir('.')"
+%define                python_compile_opt      python -O -c "import compileall; compileall.compile_dir('.')"
 
 %description
 The Z Object Programming Environment (Zope) is a free, Open Source
 
 %description
 The Z Object Programming Environment (Zope) is a free, Open Source
@@ -50,6 +57,13 @@ simple, Zope-pcgi, para uso con el servidor Apache. Si desea instalar
 solamente algunas partes de la aplicación Zope, están diponibles otros
 subpaquetes, usted debe instalar éstos en vez de ese RPM.
 
 solamente algunas partes de la aplicación Zope, están diponibles otros
 subpaquetes, usted debe instalar éstos en vez de ese RPM.
 
+%description -l pl
+Zope (Z Object Programming Environment - Obiektowe ¦rodowisko
+Programistyczne Z) jest opartym o Pythona serwerem aplikacji do
+tworzenia wysoko wydajnych, dynamicznych serwisów WWW, przy u¿yciu
+u¿ytecznego i prostego modelu obiektowego skryptów oraz wysoko
+wydajnej zintegrowanej obiektowej bazy danych.
+
 %description -l pt_BR
 Zope é uma aplicação baseada em Python, Open Source[tm], para
 construção de sites dinâmicos, usando um modelo de scripting poderoso
 %description -l pt_BR
 Zope é uma aplicação baseada em Python, Open Source[tm], para
 construção de sites dinâmicos, usando um modelo de scripting poderoso
@@ -59,16 +73,16 @@ para uso com o Apache. Se voc
 do Zope, outros sub-pacotes estão disponíveis, e você deveria instalar
 eles ao invés desse RPM.
 
 do Zope, outros sub-pacotes estão disponíveis, e você deveria instalar
 eles ao invés desse RPM.
 
-
 %prep
 %prep
-%setup -q -n %{name}-%{version}-src
-%setup -q -T -D -c -a 1 -n %{name}-%{version}-src/ZopeContentManagersGuide
-%setup -q -T -D -c -a 2 -n %{name}-%{version}-src/GuideToDTML
-%setup -q -T -D -c -a 3 -n %{name}-%{version}-src/GuideToZSQL
-%setup -q -T -D    -a 4 -n %{name}-%{version}-src
-%setup -q -T -D -c -a 5 -n %{name}-%{version}-src/ZopeDevelopersGuide
-%setup -q -T -D -c -a 6 -n %{name}-%{version}-src/ZopeAdminGuide
-%setup -q -T -D -n %{name}-%{version}-src
+%setup -q -n %{name}-%{version}-src -a4
+mkdir ZopeContentManagersGuide GuideToDTML GuideToZSQL ZopeDevelopersGuide ZopeAdminGuide
+mkdir ZopeBook
+tar xzf %{SOURCE4} -C ZopeContentManagersGuide
+tar xzf %{SOURCE5} -C GuideToDTML
+tar xzf %{SOURCE6} -C GuideToZSQL
+tar xzf %{SOURCE7} -C ZopeDevelopersGuide
+tar xzf %{SOURCE8} -C ZopeAdminGuide
+tar xzf %{SOURCE9} -C ZopeBook
 
 %build
 perl -pi -e "s|data_dir\s+=\s+.*?join\(INSTANCE_HOME, 'var'\)|data_dir=INSTANCE_HOME|" lib/python/Globals.py
 
 %build
 perl -pi -e "s|data_dir\s+=\s+.*?join\(INSTANCE_HOME, 'var'\)|data_dir=INSTANCE_HOME|" lib/python/Globals.py
@@ -81,23 +95,25 @@ rm -f ZServer/medusa/monitor_client_win32.py
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/zope} \
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/zope} \
-           $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/log,/var/lib/zope}
+       $RPM_BUILD_ROOT{/etc/{rc.d/init.d,logrotate},/var/log,/var/lib/zope}
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/zope
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate/zope
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}/zope-zserver
 
 cp -a lib/python/* $RPM_BUILD_ROOT%{_libdir}/zope
 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 lib/python/* $RPM_BUILD_ROOT%{_libdir}/zope
 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 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
 
 install var/Data.fs $RPM_BUILD_ROOT/var/lib/zope/Data.fs
 
-touch $RPM_BUILD_ROOT/var/log/zope
-
-python $RPM_BUILD_ROOT%{_bindir}/zpasswd -u zope -p zope -d localhost $RPM_BUILD_ROOT/var/lib/zope/access
+python $RPM_BUILD_ROOT%{_bindir}/zpasswd -u zope -p zope -d localhost \
+       $RPM_BUILD_ROOT/var/lib/zope/access
 
 
-gzip -9nf doc/*.txt *.txt
+touch $RPM_BUILD_ROOT/var/log/zope
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -118,15 +134,8 @@ fi
 if [ -f /var/lock/subsys/zope ]; then
        /etc/rc.d/init.d/zope restart >&2
 else
 if [ -f /var/lock/subsys/zope ]; then
        /etc/rc.d/init.d/zope restart >&2
 else
-       echo "Run \"/etc/rc.d/init.d/zope start\" to start Zope." >&2
-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 || :    
+       echo "Create inituser using \"zpasswd inituser\" in directory \"/var/lib/zope\"" >&2
+       echo "Run then \"/etc/rc.d/init.d/zope start\" to start Zope." >&2
 fi
 
 %preun
 fi
 
 %preun
@@ -137,12 +146,21 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del zope
 fi
 
        /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)
 %files
 %defattr(644,root,root,755)
+%doc doc/*.txt *.txt ZopeContentManagersGuide GuideToZSQL Tutorial ZopeDevelopersGuide ZopeAdminGuide ZopeBook
 %attr(755,root,root) /etc/rc.d/init.d/zope
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_libdir}/zope
 %attr(755,root,root) /etc/rc.d/init.d/zope
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_libdir}/zope
-%attr(771,root,zope) %dir /var/lib/zope
+%attr(1771,root,zope) %dir /var/lib/zope
 %attr(660,root,zope) %config(noreplace) %verify(not md5 size mtime) /var/lib/zope/*
 %attr(660,root,zope) %config(noreplace) %verify(not md5 size mtime) /var/lib/zope/*
-%doc *.gz doc/*.gz ZopeContentManagersGuide GuideToZSQL Tutorial ZopeDevelopersGuide ZopeAdminGuide
+%ghost /var/log/zope
This page took 0.051709 seconds and 4 git commands to generate.