2 # WARNING: this product not work propertly on Zope 2.7* !
4 %include /usr/lib/rpm/macros.python
5 %define zope_subname LocalFS
6 Summary: This product allows you to store Zope objects as human-readable files
7 Summary(pl): Dodatek umo¿liwiaj±cy praktyczniejsze przetrzymywanie obiektów Zope
8 Name: Zope-%{zope_subname}
11 License: Distributable
12 Group: Development/Tools
13 Source0: http://www.easyleading.org/Downloads/%{zope_subname}-%{version}-andreas.tar.gz
14 # Source0-md5: 0fe97ac8a24e1e706df8d5d4d9543858
15 URL: http://www.easyleading.org/Members/Eddy/LocalFS_1_3/
16 %pyrequires_eq python-modules
18 Requires(post,postun): /usr/sbin/installzopeproduct
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This product allows you to store Zope objects as human-readable files
24 in the local file system.
27 Dodatek dla Zope umo¿liwiaj±cy przetrzymywanie obiektów Zope w
28 lokalnym systemie plików.
31 %setup -q -n %{zope_subname}
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
37 cp -af {Extensions,dtml,help,www,*.py,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45 rm -rf $RPM_BUILD_ROOT
48 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
49 if [ -f /var/lock/subsys/zope ]; then
50 /etc/rc.d/init.d/zope restart >&2
54 if [ "$1" = "0" ]; then
55 /usr/sbin/installzopeproduct -d %{zope_subname}
56 if [ -f /var/lock/subsys/zope ]; then
57 /etc/rc.d/init.d/zope restart >&2
62 %defattr(644,root,root,755)
63 %doc CHANGES LICENSE README TODO