]> git.pld-linux.org Git - packages/Zope-COREBlog2.git/blob - Zope-COREBlog2.spec
43580e286a093d68afccc70a32561e7518d20657
[packages/Zope-COREBlog2.git] / Zope-COREBlog2.spec
1 %define         zope_subname    COREBlog2
2 %define         sub_ver b
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}
7 Version:        0.8
8 Release:        0.%{sub_ver}.1
9 License:        GPL
10 Group:          Development/Tools
11 Source0:        http://coreblog.org/junk/%{zope_subname}%{header_load}.tgz
12 # Source0-md5:  6a75d95b2068266b5dd59e1781eff54a
13 URL:            http://coreblog.org/
14 BuildRequires:  python
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
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Blog / Weblog / Web Nikki system on Zope and Plone.
24
25 %description -l pl
26 System bloga/webloga oparty na Zope i Plone.
27
28 %prep
29 %setup -q -n %{zope_subname}
30
31 %build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41
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.*}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
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
52 fi
53
54 %postun
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
59         fi
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README.txt changelog.txt
65 %{_datadir}/%{name}
This page took 0.038913 seconds and 2 git commands to generate.