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/
13 %pyrequires_eq python-modules
14 Requires: Zope >= 2.6.1
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Blog / Weblog / Web Nikki system on Zope.
23 System bloga/webloga oparty na Zope.
26 %setup -q -n %{zope_subname}
27 find . -type d -name CVS | xargs rm -rf
28 find . -type f -name .DS_Store | xargs rm -rf
31 mkdir docs docs/stripogram
32 mv -f changelog.txt docs
33 mv -f stripogram/readme.txt docs/stripogram
34 rm -rf dtml/changelog.txt
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
40 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
46 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
49 rm -rf $RPM_BUILD_ROOT
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 if [ -f /var/lock/subsys/zope ]; then
54 /etc/rc.d/init.d/zope restart >&2
58 if [ "$1" = "0" ]; then
59 /usr/sbin/installzopeproduct -d %{zope_subname}
60 if [ -f /var/lock/subsys/zope ]; then
61 /etc/rc.d/init.d/zope restart >&2
66 %defattr(644,root,root,755)