2 Summary: An application server and portal toolkit for building Web sites
3 Summary(es.UTF-8): Un servidor de aplicaciones y un conjunto de herramientas para la construcción de sitios Web
4 Summary(pl.UTF-8): Serwer aplikacji i toolkit portalowy do tworzenia serwisów WWW
5 Summary(pt_BR.UTF-8): Um servidor de aplicações e um conjunto de ferramentas para construção de sites Web
9 License: Zope Public License (ZPL)
10 Group: Networking/Daemons
11 Source0: http://www.zope.org/Products/Zope3/%{version}/Zope-%{version}.tgz
12 # Source0-md5: 23fbe371434833b2e52353af5bc456da
14 Source2: %{name}.sysconfig
15 Source3: %{name}.logrotate
16 Source4: mkzope3instance
17 Source5: installzope3package
18 Patch0: %{name}-skeleton_path.patch
19 URL: http://dev.zope.org/Zope3
20 BuildRequires: perl-base
21 BuildRequires: python-devel >= 1:2.4.1
22 BuildRequires: rpmbuild(macros) >= 1.213
23 Requires(post,preun): /sbin/chkconfig
24 Requires(post,preun): rc-scripts
25 Requires(postun): /usr/sbin/groupdel
26 Requires(postun): /usr/sbin/userdel
27 Requires(pre): /bin/id
28 Requires(pre): /usr/bin/getgid
29 Requires(pre): /usr/sbin/groupadd
30 Requires(pre): /usr/sbin/useradd
31 Requires: expat >= 1.95.7
33 Requires: python >= 2.4.1
34 Requires: python-libs >= 2.4.1
35 Requires: python-modules >= 2.4.1
36 Requires: python-zope = %{epoch}:%{version}-%{release}
41 Conflicts: logrotate < 3.8.0
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define zope_libdir /usr/%{_lib}/zope3
45 %define zope_datadir /usr/share/zope3
48 The Z Object Programming Environment (Zope) is a free, Open Source
49 Python-based application server for building high-performance, dynamic
50 web sites, using a powerful and simple scripting object model and
51 high-performance, integrated object database.
53 This project is a redesign of Zope 2 and seeks to improve the Zope
54 development experience through the use of Interfaces and Components.
56 %description -l es.UTF-8
57 Zope es una aplicación basada en Python, Open Source[tm], para la
58 construcción de sitios dinámicos, usa un modelo de escritura de
59 guiones poderoso y sencillo. Para instalar la aplicación Zope, instale
60 ese paquete y después, Zope-server, para un servidor HTTP integrado
61 simple, Zope-pcgi, para uso con el servidor Apache. Si desea instalar
62 solamente algunas partes de la aplicación Zope, están diponibles otros
63 subpaquetes, usted debe instalar éstos en vez de ese RPM.
65 %description -l pl.UTF-8
66 Zope (Z Object Programming Environment - Obiektowe Środowisko
67 Programistyczne Z) jest opartym o Pythona serwerem aplikacji do
68 tworzenia wysoko wydajnych, dynamicznych serwisów WWW, przy użyciu
69 użytecznego i prostego modelu obiektowego skryptów oraz wysoko
70 wydajnej zintegrowanej obiektowej bazy danych.
72 %description -l pt_BR.UTF-8
73 Zope é uma aplicação baseada em Python, Open Source[tm], para
74 construção de sites dinâmicos, usando um modelo de scripting poderoso
75 e simples Para instalar o Zope, instale esse pacote e depois, ou o
76 Zope-server, para um servidor HTTP integrado simples, ou Zope-pcgi,
77 para uso com o Apache. Se você quiser instalar apenas algumas partes
78 do Zope, outros sub-pacotes estão disponíveis, e você deveria instalar
79 eles ao invés desse RPM.
81 %package -n python-zope
82 Summary: Python packages developed as part of the Zope 3 project
83 Summary(pl.UTF-8): Moduły Pythona rozwijane w projekcie Zope 3
84 Group: Development/Tools
85 Provides: ZopeInterface
86 Provides: python-zope-cachedescriptors = %{epoch}:%{version}-%{release}
87 Provides: python-zope-component = %{epoch}:%{version}-%{release}
88 Provides: python-zope-configuration = %{epoch}:%{version}-%{release}
89 Provides: python-zope-deprecation = %{epoch}:%{version}-%{release}
90 Provides: python-zope-documenttemplate = %{epoch}:%{version}-%{release}
91 Provides: python-zope-event = %{epoch}:%{version}-%{release}
92 Provides: python-zope-exceptions = %{epoch}:%{version}-%{release}
93 Provides: python-zope-hookable = %{epoch}:%{version}-%{release}
94 Provides: python-zope-i18n = %{epoch}:%{version}-%{release}
95 Provides: python-zope-i18nmessageid = %{epoch}:%{version}-%{release}
96 Provides: python-zope-index = %{epoch}:%{version}-%{release}
97 Provides: python-zope-interface = %{epoch}:%{version}-%{release}
98 Provides: python-zope-modulealias = %{epoch}:%{version}-%{release}
99 Provides: python-zope-pagetemplate = %{epoch}:%{version}-%{release}
100 Provides: python-zope-proxy = %{epoch}:%{version}-%{release}
101 Provides: python-zope-publisher = %{epoch}:%{version}-%{release}
102 Provides: python-zope-schema = %{epoch}:%{version}-%{release}
103 Provides: python-zope-security = %{epoch}:%{version}-%{release}
104 Provides: python-zope-server = %{epoch}:%{version}-%{release}
105 Provides: python-zope-structuredtext = %{epoch}:%{version}-%{release}
106 Provides: python-zope-tal = %{epoch}:%{version}-%{release}
107 Provides: python-zope-tales = %{epoch}:%{version}-%{release}
108 Provides: python-zope-testing = %{epoch}:%{version}-%{release}
109 Provides: python-zope-thread = %{epoch}:%{version}-%{release}
110 Obsoletes: ZopeInterface
112 %description -n python-zope
113 The "zope" package is a pure namespace package holding packages
114 developed as part of the Zope 3 project.
116 Generally, the immediate subpackages of the "zope" package should be
117 useful and usable outside of the Zope application server. Subpackages
118 of the "zope" package should have minimal interdependencies, although
119 most depend on "zope.interface".
121 %description -n python-zope -l pl.UTF-8
122 Pakiet "zope" to pakiet czystej przestrzeni nazw przechowującej
123 pakiety tworzone jako część projektu Zope 3.
125 Ogólnie bezpośrednie podpakiety pakietu "zope" powinny być przydatne i
126 używalne poza serwerem aplikacji Zope. Podpakiety pakietu "zope"
127 powinny mieć minimalne zależności wzajemne, chociaż większość zależy
131 %setup -q -n Zope-%{version}
133 install -m755 %{SOURCE4} ./mkzope3instance
137 --prefix=%{zope_libdir} \
138 --with-python=%{__python} \
143 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_sbindir},%{zope_datadir}/lib/python} \
146 $RPM_BUILD_ROOT{/etc/logrotate.d,/etc/sysconfig,/etc/rc.d/init.d} \
147 $RPM_BUILD_ROOT{/var/lib/zope3/main,/var/run/zope3,/var/log/zope3/main} \
148 $RPM_BUILD_ROOT%{_sysconfdir}/zope3/main
150 python install.py -q install --skip-build --home "%{zope_libdir}" --root "$RPM_BUILD_ROOT"
151 mv $RPM_BUILD_ROOT%{zope_libdir}/%{_lib}/python/zope $RPM_BUILD_ROOT%{py_sitedir}
152 rm $RPM_BUILD_ROOT%{zope_libdir}/zopeskel/bin/{*.bat.in,zopeservice*}
153 mv $RPM_BUILD_ROOT%{zope_libdir}/zopeskel $RPM_BUILD_ROOT%{_sysconfdir}/zope3
155 cat >$RPM_BUILD_ROOT%{zope_libdir}/bin/mkzopeinstance <<EOF
158 from zope.app.server.mkzopeinstance import main
159 sys.exit(main(from_checkout=False))
163 echo "1" | PYTHONPATH="$RPM_BUILD_ROOT%{py_sitedir}:$RPM_BUILD_ROOT%{zope_libdir}/%{_lib}/python" \
164 DESTDIR="$RPM_BUILD_ROOT" ./mkzope3instance main \
165 -u zope:zope -s $RPM_BUILD_ROOT%{_sysconfdir}/zope3/zopeskel
167 cat >> $RPM_BUILD_ROOT%{py_sitedir}/zope/app/__init__.py <<EOF
169 sys.path.insert(0,"%{zope_libdir}/%{_lib}/python")
170 sys.path.insert(0,"%{zope_datadir}/lib/python")
173 %py_comp $RPM_BUILD_ROOT%{py_sitedir}/zope
174 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/zope
178 for f in zconfig zconfig_schema2html zopetest; do
179 ln -sf %{zope_libdir}/bin/"$f" $RPM_BUILD_ROOT%{_sbindir}/"$f"
181 for f in mkzeoinst runzeo zdctl zdrun zeoctl zeopasswd ; do
182 ln -sf %{zope_libdir}/bin/"$f".py $RPM_BUILD_ROOT%{_sbindir}/"$f"
185 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/zope3
186 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/zope3
187 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/zope3
188 install %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/mkzope3instance
189 install %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}/installzope3package
191 touch $RPM_BUILD_ROOT/var/log/zope3/main/access.log
192 touch $RPM_BUILD_ROOT/var/log/zope3/main/transcript.log
193 touch $RPM_BUILD_ROOT/var/log/zope3/main/z3.log
196 rm -rf $RPM_BUILD_ROOT
199 %groupadd -g 112 zope
200 %useradd -u 112 -d /var/lib/zope/main -s /bin/false -c "Zope User" -g zope zope
203 /sbin/chkconfig --add zope3
204 %service zope3 restart "Zope 3 daemon"
207 if [ "$1" = "0" ]; then
209 /sbin/chkconfig --del zope3
213 if [ "$1" = "0" ] ; then
219 %defattr(644,root,root,755)
221 %attr(754,root,root) /etc/rc.d/init.d/zope3
222 %attr(755,root,root) %{_sbindir}/*
224 %dir %{zope_libdir}/bin
225 %attr(755,root,root) %{zope_libdir}/bin/*
226 %{zope_libdir}/include
227 %{zope_libdir}/%{_lib}
229 %{py_sitedir}/zope/app
230 %attr(775,root,zope) %dir /var/run/zope3
231 %attr(755,root,root) %dir /var/lib/zope3
232 %attr(775,root,root) %dir /var/lib/zope3/main
233 %dir /var/lib/zope3/main/bin
234 %attr(755,root,root) %dir /var/lib/zope3/main/bin/*
235 /var/lib/zope3/main%{_sysconfdir}
236 /var/lib/zope3/main/lib
237 /var/lib/zope3/main/log
238 %attr(775,root,zope) %dir /var/lib/zope3/main/var
239 /var/lib/zope3/main/var/README.txt
240 /var/lib/zope3/main/README.txt
241 %attr(755,root,zope) %dir /var/log/zope3
242 %attr(775,root,zope) %dir /var/log/zope3/main
243 %attr(751,root,zope) %dir %{_sysconfdir}/zope3
244 %attr(751,root,zope) %dir %{_sysconfdir}/zope3/main
245 %attr(751,root,zope) %dir %{_sysconfdir}/zope3/main/package-includes
246 %attr(640,root,zope) %dir %{_sysconfdir}/zope3/main/*.conf
247 %{_sysconfdir}/zope3/main/*.zcml
248 %{_sysconfdir}/zope3/main/package-includes/*.zcml
249 %{_sysconfdir}/zope3/main/package-includes/README.txt
250 %dir %{_sysconfdir}/zope3/zopeskel
251 %dir %{_sysconfdir}/zope3/zopeskel/bin
252 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zope3/zopeskel/bin/*
253 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zope3/zopeskel%{_sysconfdir}
254 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zope3/zopeskel/lib
255 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zope3/zopeskel/log
256 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zope3/zopeskel/var
257 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/zope3/zopeskel/README.txt
258 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/zope3
259 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/zope3
260 %ghost /var/log/zope3/main/access.log
261 %ghost /var/log/zope3/main/transcript.log
262 %ghost /var/log/zope3/main/z3.log
264 %files -n python-zope
265 %defattr(644,root,root,755)
267 %exclude %{py_sitedir}/zope/app