]> git.pld-linux.org Git - packages/Zope3.git/blob - Zope3.spec
- pl for python-
[packages/Zope3.git] / Zope3.spec
1 Summary:        An application server and portal toolkit for building Web sites
2 Summary(es):    Un servidor de aplicaciones y un conjunto de herramientas para la construcción de sitios Web
3 Summary(pl):    Serwer aplikacji i toolkit portalowy do tworzenia serwisów WWW
4 Summary(pt_BR): Um servidor de aplicações e um conjunto de ferramentas para construção de sites Web
5 Name:           Zope3
6 Version:        3.1.0
7 %define         sub_ver c1
8 Release:        0.%{sub_ver}.0.1
9 License:        Zope Public License (ZPL)
10 Group:          Networking/Daemons
11 Source0:        http://www.zope.org/Products/Zope3/%{version}%{sub_ver}/%{name}-%{version}%{sub_ver}.tgz
12 # Source0-md5:  66876823e53fbd0d4a8a7262d7ce251b
13 Source1:        %{name}.init
14 Source2:        %{name}.sysconfig
15 Source3:        %{name}.logrotate
16 URL:            http://dev.zope.org/Zope3
17 BuildRequires:  python-devel >= 1:2.4.1
18 BuildRequires:  perl-base
19 BuildRequires:  rpmbuild(macros) >= 1.213
20 PreReq:         rc-scripts
21 Requires(pre):  /bin/id
22 Requires(pre):  /usr/bin/getgid
23 Requires(pre):  /usr/sbin/groupadd
24 Requires(pre):  /usr/sbin/useradd
25 Requires(postun):       /usr/sbin/groupdel
26 Requires(postun):       /usr/sbin/userdel
27 Requires(post,preun):   /sbin/chkconfig
28 Requires:       expat >= 1.95.7
29 Requires:       logrotate
30 Requires:       python >= 2.4.1
31 Requires:       python-modules >= 2.4.1
32 Requires:       python-libs >= 2.4.1
33 Requires:       python-zope-interface = %{epoch}:%{version}-%{release}
34 %pyrequires_eq  python
35 Provides:       group(zope)
36 Provides:       user(zope)
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         zope_dir /usr/lib/zope3
40
41 %description
42 The Z Object Programming Environment (Zope) is a free, Open Source
43 Python-based application server for building high-performance, dynamic
44 web sites, using a powerful and simple scripting object model and
45 high-performance, integrated object database.
46
47 This project is a redesign of Zope 2 and seeks to improve the Zope development
48 experience through the use of Interfaces and Components.
49
50 %description -l es
51 Zope es una aplicación basada en Python, Open Source[tm], para la
52 construcción de sitios dinámicos, usa un modelo de escritura de
53 guiones poderoso y sencillo. Para instalar la aplicación Zope, instale
54 ese paquete y después, Zope-server, para un servidor HTTP integrado
55 simple, Zope-pcgi, para uso con el servidor Apache. Si desea instalar
56 solamente algunas partes de la aplicación Zope, están diponibles otros
57 subpaquetes, usted debe instalar éstos en vez de ese RPM.
58
59 %description -l pl
60 Zope (Z Object Programming Environment - Obiektowe ¦rodowisko
61 Programistyczne Z) jest opartym o Pythona serwerem aplikacji do
62 tworzenia wysoko wydajnych, dynamicznych serwisów WWW, przy u¿yciu
63 u¿ytecznego i prostego modelu obiektowego skryptów oraz wysoko
64 wydajnej zintegrowanej obiektowej bazy danych.
65
66 %description -l pt_BR
67 Zope é uma aplicação baseada em Python, Open Source[tm], para
68 construção de sites dinâmicos, usando um modelo de scripting poderoso
69 e simples Para instalar o Zope, instale esse pacote e depois, ou o
70 Zope-server, para um servidor HTTP integrado simples, ou Zope-pcgi,
71 para uso com o Apache. Se você quiser instalar apenas algumas partes
72 do Zope, outros sub-pacotes estão disponíveis, e você deveria instalar
73 eles ao invés desse RPM.
74
75 %package -n python-zope
76 Summary:        Python packages developed as part of the Zope 3 project
77 Summary(pl):    Modu³y Pythona rozwijane w projekcie Zope 3
78 Group:          Development/Tools
79 Provides:       ZopeInterface
80 Provides:       python-zope-cachedescriptors
81 Provides:       python-zope-component
82 Provides:       python-zope-configuration
83 Provides:       python-zope-deprecation
84 Provides:       python-zope-documenttemplate
85 Provides:       python-zope-event
86 Provides:       python-zope-exceptions
87 Provides:       python-zope-hookable
88 Provides:       python-zope-i18n
89 Provides:       python-zope-i18nmessageid
90 Provides:       python-zope-index
91 Provides:       python-zope-interface
92 Provides:       python-zope-modulealias
93 Provides:       python-zope-pagetemplate
94 Provides:       python-zope-proxy
95 Provides:       python-zope-publisher
96 Provides:       python-zope-schema
97 Provides:       python-zope-security
98 Provides:       python-zope-server
99 Provides:       python-zope-structuredtext
100 Provides:       python-zope-tal
101 Provides:       python-zope-tales
102 Provides:       python-zope-testing
103 Provides:       python-zope-thread
104 Obsoletes:      ZopeInterface
105
106 %description -n python-zope
107 The "zope" package is a pure namespace package holding packages
108 developed as part of the Zope 3 project.
109
110 Generally, the immediate subpackages of the "zope" package should be
111 useful and usable outside of the Zope application server. Subpackages
112 of the "zope" package should have minimal interdependencies, although
113 most depend on "zope.interface".
114
115 %description -n python-zope -l pl
116 Pakiet "zope" to pakiet czystej przestrzeni nazw przechowuj±cej
117 pakiety tworzone jako czê¶æ projektu Zope 3.
118
119 Ogólnie bezpo¶rednie podpakiety pakietu "zope" powinny byæ przydatne i
120 u¿ywalne poza serwerem aplikacji Zope. Podpakiety pakietu "zope"
121 powinny mieæ minimalne zale¿no¶ci wzajemne, chocia¿ wiêkszo¶æ zale¿y
122 od "zope.interface".
123
124 %prep
125 %setup -q -n Zope-%{version}%{sub_ver}
126
127 %build
128 ./configure \
129         --prefix=%{zope_dir}
130 %{__make}
131
132 %install
133 rm -rf $RPM_BUILD_ROOT
134
135 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_sbindir}} \
136         $RPM_BUILD_ROOT{/etc/logrotate.d,/etc/sysconfig,/etc/rc.d/init.d} \
137         $RPM_BUILD_ROOT{/var/lib/zope3/main,/var/run/zope3,/var/log/zope3/main} \
138         $RPM_BUILD_ROOT%{_sysconfdir}/zope3/main
139         
140 python install.py -q install --skip-build --home "%{zope_dir}" --root "$RPM_BUILD_ROOT"
141 mv $RPM_BUILD_ROOT%{zope_dir}/lib/python/zope  $RPM_BUILD_ROOT%{py_sitedir}
142
143 find $RPM_BUILD_ROOT%{py_sitedir}/zope -name '*.txt' -o -name '*.cfg' | xargs rm
144
145 %py_comp $RPM_BUILD_ROOT%{py_sitedir}/zope
146 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/zope
147
148 ln -sf %{zope_dir}/bin/mkzopeinstance $RPM_BUILD_ROOT%{_sbindir}/mkzope3instance
149 for f in zconfig zconfig_schema2html zopetest ; do
150         ln -sf %{zope_dir}/bin/"$f" $RPM_BUILD_ROOT%{_sbindir}/"$f"3
151 done
152 for f in mkzeoinst runzeo zdctl zdrun zeoctl zeopasswd ; do
153         ln -sf %{zope_dir}/bin/"$f".py $RPM_BUILD_ROOT%{_sbindir}/"$f"3
154 done
155
156 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/zope3
157 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/zope3
158 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/zope3
159
160 touch $RPM_BUILD_ROOT/var/log/zope3/main/event.log
161 touch $RPM_BUILD_ROOT/var/log/zope3/main/Z2.log
162
163
164 #install -d $RPM_BUILD_ROOT{/var/lib/zope/main,/var/run/zope,/var/log/zope/main} \
165 #       $RPM_BUILD_ROOT{/etc/logrotate.d,/etc/sysconfig,/etc/rc.d/init.d} \
166 #       $RPM_BUILD_ROOT{%{_sysconfdir}/zope/main,%{_sbindir}} \
167 #       $RPM_BUILD_ROOT%{zope_dir}/bin
168 #
169 #ln -sfn /usr/bin/python $RPM_BUILD_ROOT%{zope_dir}/bin/python
170 #
171 #%{__make} install \
172 #       INSTALL_FLAGS="--root $RPM_BUILD_ROOT"
173 #
174 #mv $RPM_BUILD_ROOT%{zope_dir}/bin/zpasswd.py $RPM_BUILD_ROOT%{_sbindir}/zpasswd
175 #mv $RPM_BUILD_ROOT%{zope_dir}/skel $RPM_BUILD_ROOT%{_sysconfdir}/zope
176 #mv $RPM_BUILD_ROOT{%{zope_dir}/import/*,%{_sysconfdir}/zope/skel/import}
177 #
178 #rm -rf $RPM_BUILD_ROOT%{zope_dir}/doc
179 #rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/zope/skel/log
180 #rm -f $RPM_BUILD_ROOT%{_sysconfdir}/zope/skel/bin/{runzope.bat,zopeservice.py}.in
181 #
182 #install %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/mkzopeinstance
183 #install %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}/mkzeoinstance
184 #install %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/runzope
185 #install %{SOURCE7} $RPM_BUILD_ROOT%{_sbindir}/zopectl
186 #install %{SOURCE8} $RPM_BUILD_ROOT%{_sbindir}/installzopeproduct
187 #
188
189 %clean
190 rm -rf $RPM_BUILD_ROOT
191
192 %pre
193 %groupadd -g 112 zope
194 %useradd -u 112 -d /var/lib/zope/main -s /bin/false -c "Zope User" -g zope zope
195
196 %post
197 /sbin/chkconfig --add zope
198 if [ ! -f /etc/zope/main/zope.conf ] ; then
199         echo "Creating initial 'main' instance..."
200         /usr/sbin/mkzope3instance main zope:zope
201         echo "Instance created. Listening on 127.0.0.1:8080, initial user: 'zope' with password: 'zope'"
202 fi
203
204 %preun
205 if [ "$1" = "0" ]; then
206         if [ -f /var/lock/subsys/zope ]; then
207                 /etc/rc.d/init.d/zope stop
208         fi
209         /sbin/chkconfig --del zope
210 fi
211
212 %postun
213 if [ "$1" = "0" ] ; then
214         %userremove zope
215         %groupremove zope
216 fi
217
218 %files
219 %defattr(644,root,root,755)
220 %doc Zope/doc/*
221 %attr(754,root,root) /etc/rc.d/init.d/zope3
222 %attr(755,root,root) %{_sbindir}/*
223 %dir %{zope_dir}
224 %dir %{zope_dir}/bin
225 %attr(755,root,root) %{zope_dir}/bin/*
226 %{zope_dir}/include
227 %{zope_dir}/lib
228 %dir %{zope_dir}/zopeskel
229 %dir %{zope_dir}/zopeskel/bin
230 %attr(755,root,root) %{zope_dir}/zopeskel/bin/*
231 %{zope_dir}/zopeskel/etc
232 %{zope_dir}/zopeskel/lib
233 %{zope_dir}/zopeskel/log
234 %{zope_dir}/zopeskel/var
235 %{zope_dir}/zopeskel/README.txt
236 %{py_sitedir}/zope/app
237 %attr(775,zope,zope) %dir /var/run/zope3
238 %attr(775,zope,zope) %dir /var/lib/zope3
239 %attr(775,zope,zope) %dir /var/lib/zope3/main
240 %attr(775,zope,zope) %dir /var/log/zope3
241 %attr(775,zope,zope) %dir /var/log/zope3/main
242 %attr(640,root,root) %dir /etc/zope3
243 %attr(640,root,root) %dir /etc/zope3/main
244 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/zope3
245 %attr(640,root,root) /etc/sysconfig/zope3
246 %ghost /var/log/zope3/main/event.log
247 %ghost /var/log/zope3/main/Z2.log
248
249 %files -n python-zope
250 %defattr(644,root,root,755)
251 %{py_sitedir}/zope
252 %exclude %{py_sitedir}/zope/app
This page took 0.06368 seconds and 3 git commands to generate.