1 %define zope_subname FileSystemSite
2 Summary: Repackaging of the CMF's FileSystem Directory Views
3 Summary(pl.UTF-8): 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: 8c3069af49168023ea8e56c54f2bf4c8
11 URL: http://zope.org/Members/philikon/FileSystemSite/
13 BuildRequires: rpmbuild(macros) >= 1.268
14 %pyrequires_eq python-modules
16 Requires: Zope-CMF >= 1:1.4.1
18 Requires(post,postun): /usr/sbin/installzopeproduct
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 FileSystemSite repackaging of the CMF's FileSystem Directory Views
25 %description -l pl.UTF-8
26 FileSystemSite jest produktem Zope zmieniającym sposób wyświetlania
30 %setup -q -n %{zope_subname}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 cp -af {EditorUtils,ExampleSite,Extensions,dtml,images,templates,tests,*.py,version.txt,refresh.txt} \
37 $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 %service -q zope restart
52 if [ "$1" = "0" ]; then
53 /usr/sbin/installzopeproduct -d %{zope_subname}
54 %service -q zope restart
58 %defattr(644,root,root,755)
59 %doc README.txt HISTORY.txt