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: 5c3bf90234187f0d37ab3dcf2c4c4129
11 URL: http://zope.org/Members/philikon/FileSystemSite/
12 %pyrequires_eq python-modules
14 Requires: Zope-CMF >= 1.4.1
16 Requires(post,postun): /usr/sbin/installzopeproduct
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 FileSystemSite repackaging of the CMF's FileSystem Directory Views
24 FileSystemSite jest produktem Zope zmieniaj±cym sposób
25 wy¶wietlania katalogów w CMF
28 %setup -q -n %{zope_subname}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34 cp -af {EditorUtils,ExampleSite,Extensions,dtml,images,templates,tests,*.py,version.txt,refresh.txt} \
35 $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43 rm -rf $RPM_BUILD_ROOT
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48 /etc/rc.d/init.d/zope restart >&2
52 if [ "$1" = "0" ]; then
53 /usr/sbin/installzopeproduct -d %{zope_subname}
54 if [ -f /var/lock/subsys/zope ]; then
55 /etc/rc.d/init.d/zope restart >&2
60 %defattr(644,root,root,755)
61 %doc README.txt HISTORY.txt