1 %define zope_subname COREBlog
2 Summary: Blog / Weblog / Web Nikki system on Zope
3 Summary(pl): System bloga/webloga oparty na Zope
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://coreblog.org/junk/%{zope_subname}10.tgz
10 # Source0-md5: 1a0c95a7d22d2f3bd5a05ad3b702a256
11 URL: http://coreblog.org/
12 %pyrequires_eq python-modules
13 Requires: Zope >= 2.6.1
14 Requires(post,postun): /usr/sbin/installzopeproduct
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Blog / Weblog / Web Nikki system on Zope.
22 System bloga/webloga oparty na Zope.
25 %setup -q -n %{zope_subname}
26 find . -type d -name CVS | xargs rm -rf
27 find . -type f -name .DS_Store | xargs rm -rf
30 mkdir docs docs/stripogram
31 mv -f changelog.txt docs
32 mv -f stripogram/readme.txt docs/stripogram
33 rm -rf dtml/changelog.txt
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
48 rm -rf $RPM_BUILD_ROOT
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53 /etc/rc.d/init.d/zope restart >&2
57 if [ "$1" = "0" ]; then
58 /usr/sbin/installzopeproduct -d %{zope_subname}
59 if [ -f /var/lock/subsys/zope ]; then
60 /etc/rc.d/init.d/zope restart >&2
65 %defattr(644,root,root,755)