1 %include /usr/lib/rpm/macros.python
2 %define zope_subname BTreeFolder2
3 Summary: BTreeFolder2 - a Zope product that acts like a Zope folder but can store many more items
4 Summary(pl): BTreeFolder2 - dodatek do Zope rozszerzaj±cy mo¿liwo¶ci pracy na folderach
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://hathaway.freezope.org/Software/%{zope_subname}/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5: d430cf27bfc78922eaca9222f393022f
12 URL: http://hathaway.freezope.org/Software/BTreeFolder2/
13 %pyrequires_eq python-modules
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define product_dir /usr/lib/zope/Products
21 BTreeFolder2 is a Zope product that acts like a Zope folder but can
22 store many more items.
25 BTreeFolder2 jest dodatkiem do Zope rozszerzaj±cym mo¿liwo¶ci pracy na
29 %setup -q -n %{zope_subname}
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
34 # should tests be included or not?
35 cp -af {tests,*.py,*.dtml} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
37 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43 rm -rf $RPM_BUILD_ROOT
46 if [ -f /var/lock/subsys/zope ]; then
47 /etc/rc.d/init.d/zope restart >&2
51 if [ -f /var/lock/subsys/zope ]; then
52 /etc/rc.d/init.d/zope restart >&2
56 %defattr(644,root,root,755)
58 %{product_dir}/%{zope_subname}