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}
9 Group: Development/Tools
10 Source0: http://coreblog.org/junk/%{zope_subname}12.tgz
11 # Source0-md5: c955c885b726883cf65abf580a3b9f61
12 URL: http://coreblog.org/
14 %pyrequires_eq python-modules
15 Requires: Zope >= 2.6.1
16 Requires(post,postun): /usr/sbin/installzopeproduct
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Blog / Weblog / Web Nikki system on Zope.
24 System bloga/webloga oparty na Zope.
27 %setup -q -n %{zope_subname}
28 find . -type d -name CVS | xargs rm -rf
29 find . -type f -name .DS_Store | xargs rm -rf
32 mkdir docs docs/stripogram
33 mv -f changelog.txt docs
34 mv -f stripogram/readme.txt docs/stripogram
35 rm -rf dtml/changelog.txt
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
41 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
50 rm -rf $RPM_BUILD_ROOT
53 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
54 if [ -f /var/lock/subsys/zope ]; then
55 /etc/rc.d/init.d/zope restart >&2
59 if [ "$1" = "0" ]; then
60 /usr/sbin/installzopeproduct -d %{zope_subname}
61 if [ -f /var/lock/subsys/zope ]; then
62 /etc/rc.d/init.d/zope restart >&2
67 %defattr(644,root,root,755)