1 %define zope_subname COREBlog2
3 %define header_load _08b
4 Summary: Blog / Weblog / Web Nikki system on Zope and Plone
5 Summary(pl): System bloga/webloga oparty na Zope i Plone
6 Name: Zope-%{zope_subname}
8 Release: 0.%{sub_ver}.1
10 Group: Development/Tools
11 Source0: http://coreblog.org/junk/%{zope_subname}%{header_load}.tgz
12 # Source0-md5: 6a75d95b2068266b5dd59e1781eff54a
13 URL: http://coreblog.org/
15 %pyrequires_eq python-modules
16 Requires: Zope >= 2.7.7
17 Requires: Zope-CMFPlone >= 2.1.1
18 Requires(post,postun): /usr/sbin/installzopeproduct
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Blog / Weblog / Web Nikki system on Zope and Plone.
26 System bloga/webloga oparty na Zope i Plone.
29 %setup -q -n %{zope_subname}
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
37 cp -af * $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 {} \;;
43 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{README.txt,changelog.txt,LICENSE.*}
46 rm -rf $RPM_BUILD_ROOT
49 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
50 if [ -f /var/lock/subsys/zope ]; then
51 /etc/rc.d/init.d/zope restart >&2
55 if [ "$1" = "0" ]; then
56 /usr/sbin/installzopeproduct -d %{zope_subname}
57 if [ -f /var/lock/subsys/zope ]; then
58 /etc/rc.d/init.d/zope restart >&2
63 %defattr(644,root,root,755)
64 %doc README.txt changelog.txt