2 %define prod_name Formulator
4 Summary: Zope framework that eases the creation and validation of web forms.
5 Name: Zope-%{prod_name}
9 Source0: http://www.zope.org/Members/faassen/%{prod_name}/%{prod_name}-%{version}.tgz
10 URL: http://www.zope.org/Members/faassen/%{prod_name}
11 Group: Development/Languages/Python
12 Group(de): Entwicklung/Sprachen/Python
13 Group(pl): Programowanie/Jêzyki/Python
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 %setup -q -n %{prod_name}
36 find . -name \*.py | xargs -r rm -f
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
43 cp -a . $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
44 rm -f $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}/*.gz
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{zope_productsdir}/%{prod_name}