1 %include /usr/lib/rpm/macros.python
2 %define zope_subname Formulator
3 Summary: Zope framework that eases the creation and validation of web forms
4 Summary(pl): Dodatek do Zope u³atwiaj±cy tworzenie i sprawdzanie poprawno¶ci formularzy WWW
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://www.zope.org/Members/infrae/Formulator/Formulator-%{version}/%{zope_subname}-%{version}.tgz
11 # Source0-md5: 6938676c62df184a6770bae90be25ce5
12 URL: http://www.zope.org/Members/infrae/Formulator/
13 %pyrequires_eq python-modules
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %{zope_subname} is a tool to help with the creation and validation of web
21 forms. Form fields are stored as objects in Zope, in a special Form folder.
24 %{zope_subname} jest narzêdziem pomagaj±cym przy tworzeniu i sprawdzaniu
25 poprawno¶ci formularzy WWW. Pola formularza s± zapisywane jako obiekty
26 w Zope, w specjalnym folderze Form.
29 %setup -q -n %{zope_subname}
33 mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
40 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
44 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
47 rm -rf $RPM_BUILD_ROOT
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52 /etc/rc.d/init.d/zope restart >&2
56 if [ "$1" = "0" ]; then
57 /usr/sbin/installzopeproduct -d %{zope_subname}
58 if [ -f /var/lock/subsys/zope ]; then
59 /etc/rc.d/init.d/zope restart >&2
64 %defattr(644,root,root,755)