From 78ed87fd1abf9859a0e85859313c15b80a21b645 Mon Sep 17 00:00:00 2001 From: mis Date: Fri, 7 Sep 2001 09:23:51 +0000 Subject: [PATCH] - new from scratch Changed files: Zope-Formulator.spec -> 1.1 --- Zope-Formulator.spec | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Zope-Formulator.spec diff --git a/Zope-Formulator.spec b/Zope-Formulator.spec new file mode 100644 index 0000000..387b209 --- /dev/null +++ b/Zope-Formulator.spec @@ -0,0 +1,51 @@ + +%define prod_name Formulator + +Summary: Python interface to OpenSSL +Name: Zope-%{prod_name} +Version: 1.0.1 +Release: 1 +License: BSD-style +Source0: http://www.zope.org/Members/faassen/%{prod_name}/%{prod_name}-%{version}.tgz +URL: http://www.zope.org/Members/faassen/%{prod_name} +Group: Development/Languages/Python +Group(de): Entwicklung/Sprachen/Python +Group(pl): Programowanie/Jêzyki/Python +Requires: Zope +BuildRequires: python >= 1.5.2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')" +%define python_compile python -c "import compileall; compileall.compile_dir('.')" + +%define zope_dir %{_libdir}/zope +%define zope_productsdir %{zope_dir}/Products + +%description +%{prod_name} is a tool to help with the creation and validation of web +forms. Form fields are stored as objects in Zope, in a special Form folder. + +%prep +%setup -q -n %{prod_name} + +%build +%{python_compile} +%{python_compile_opt} + +find . -name \*.py | xargs -r rm -f +gzip -9nf *.txt + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name} + +cp -a . $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name} +rm -f $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}/*.gz + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc *.gz +%{zope_productsdir}/%{prod_name} -- 2.44.0