2 %define prod_name Formulator
4 Summary: Zope framework that eases the creation and validation of web forms
5 Summary(pl): Dodatek do Zope u³atwiaj±cy tworzenie i sprawdzanie poprawno¶ci formularzy WWW
6 Name: Zope-%{prod_name}
10 Group: Development/Languages/Python
11 Source0: http://www.zope.org/Members/faassen/Formulator/%{prod_name}-%{version}.tgz
12 # Source0-md5: ee9d0f3b000f14f66962440fc2e638ae
13 URL: http://www.zope.org/Members/faassen/Formulator/
15 BuildRequires: python >= 2.1
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
20 %define python_compile python -c "import compileall; compileall.compile_dir('.')"
22 %define zope_dir %{_libdir}/zope
23 %define zope_productsdir %{zope_dir}/Products
26 %{prod_name} is a tool to help with the creation and validation of web
27 forms. Form fields are stored as objects in Zope, in a special Form folder.
30 %{prod_name} jest narzêdziem pomagaj±cym przy tworzeniu i sprawdzaniu
31 poprawno¶ci formularzy WW. Pola formularza s± zapisywane jako obiekty
32 w Zope, w specjalnym folderze Form.
35 %setup -q -n %{prod_name}
41 find . -name \*.py | xargs -r rm -f
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
47 cp -a . $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
48 rm -f $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}/*.gz
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{zope_productsdir}/%{prod_name}