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.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
11 # Source0-md5: c50bc1997ed8a4509ffcf75b7d1a495e
12 URL: http://www.infrae.com/products/formulator/
14 BuildRequires: rpmbuild(macros) >= 1.268
15 %pyrequires_eq python-modules
16 Requires(post,postun): /usr/sbin/installzopeproduct
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %{zope_subname} is a tool to help with the creation and validation of
23 web forms. Form fields are stored as objects in Zope, in a special
27 %{zope_subname} jest narzêdziem pomagaj±cym przy tworzeniu i
28 sprawdzaniu poprawno¶ci formularzy WWW. Pola formularza s± zapisywane
29 jako obiekty w Zope, w specjalnym folderze Form.
32 %setup -q -n %{zope_subname}
34 mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39 cp -af {dtml,help,i18n,tests,www,*.py,*.html,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
48 rm -rf $RPM_BUILD_ROOT
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 %service -q zope restart
55 if [ "$1" = "0" ]; then
56 /usr/sbin/installzopeproduct -d %{zope_subname}
57 %service -q zope restart
61 %defattr(644,root,root,755)