2 # Warning: product is req. by Plone but make error when create form on Zope 2.7b4 and python 2.3.3
5 %include /usr/lib/rpm/macros.python
6 %define zope_subname Formulator
7 Summary: Zope framework that eases the creation and validation of web forms
8 Summary(pl): Dodatek do Zope u³atwiaj±cy tworzenie i sprawdzanie poprawno¶ci formularzy WWW
9 Name: Zope-%{zope_subname}
13 Group: Development/Tools
14 Source0: http://www.zope.org/Members/infrae/Formulator/Formulator-%{version}/%{zope_subname}-%{version}.tgz
15 # Source0-md5: 3753d468f24ea36e8ca61a13096c7095
16 URL: http://www.zope.org/Members/infrae/Formulator/
17 %pyrequires_eq python-modules
19 Requires(post,postun): /usr/sbin/installzopeproduct
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %{zope_subname} is a tool to help with the creation and validation of web
25 forms. Form fields are stored as objects in Zope, in a special Form folder.
28 %{zope_subname} jest narzêdziem pomagaj±cym przy tworzeniu i sprawdzaniu
29 poprawno¶ci formularzy WWW. Pola formularza s± zapisywane jako obiekty
30 w Zope, w specjalnym folderze Form.
33 %setup -q -n %{zope_subname}
37 mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
42 cp -af {dtml,help,tests,www,*.py,*.html,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
47 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
48 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
51 rm -rf $RPM_BUILD_ROOT
54 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
55 if [ -f /var/lock/subsys/zope ]; then
56 /etc/rc.d/init.d/zope restart >&2
60 if [ "$1" = "0" ]; then
61 /usr/sbin/installzopeproduct -d %{zope_subname}
62 if [ -f /var/lock/subsys/zope ]; then
63 /etc/rc.d/init.d/zope restart >&2
68 %defattr(644,root,root,755)