1 %define zope_subname FileSystemSite
2 Summary: Repackaging of the CMF's FileSystem Directory Views
3 Summary(pl): Produkt zmieniaj±cy organizacje wy¶wietlania katalogów w CMF
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
10 # Source0-md5: 26b560b5707b17c3eb9d1bff337e3168
11 URL: http://zope.org/Members/philikon/FileSystemSite/
13 %pyrequires_eq python-modules
15 Requires: Zope-CMF >= 1:1.4.1
17 Requires(post,postun): /usr/sbin/installzopeproduct
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 FileSystemSite repackaging of the CMF's FileSystem Directory Views
25 FileSystemSite jest produktem Zope zmieniaj±cym sposób
26 wy¶wietlania katalogów w CMF
29 %setup -q -n %{zope_subname}
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af {EditorUtils,ExampleSite,Extensions,dtml,images,templates,tests,*.py,version.txt,refresh.txt} \
36 $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
44 rm -rf $RPM_BUILD_ROOT
47 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
48 if [ -f /var/lock/subsys/zope ]; then
49 /etc/rc.d/init.d/zope restart >&2
53 if [ "$1" = "0" ]; then
54 /usr/sbin/installzopeproduct -d %{zope_subname}
55 if [ -f /var/lock/subsys/zope ]; then
56 /etc/rc.d/init.d/zope restart >&2
61 %defattr(644,root,root,755)
62 %doc README.txt HISTORY.txt