1 %define zope_subname COREBlog2
3 %define header_load _08b
4 Summary: Blog / Weblog / Web Nikki system on Zope and Plone
5 Summary(pl.UTF-8): 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 BuildRequires: rpmbuild(macros) >= 1.268
16 %pyrequires_eq python-modules
17 Requires(post,postun): /usr/sbin/installzopeproduct
18 Requires: Zope >= 2.7.7
19 Requires: Zope-CMFPlone >= 2.1.1
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Blog / Weblog / Web Nikki system on Zope and Plone.
26 %description -l pl.UTF-8
27 System bloga/webloga oparty na Zope i Plone.
30 %setup -q -n %{zope_subname}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{README.txt,changelog.txt,LICENSE.*}
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 changelog.txt