]> git.pld-linux.org Git - packages/Zope-ZWiki.git/blob - Zope-ZWiki.spec
- upgraded to 0.27.0 version
[packages/Zope-ZWiki.git] / Zope-ZWiki.spec
1
2 %include        /usr/lib/rpm/macros.python
3 %define         zope_subname    ZWiki
4 # %%define              sub_ver rc1
5 Summary:        Zope product which allows you to build wiki webs in Zope
6 Summary(pl):    Produkt Zope umo¿liwiaj±cy budowanie stron WWW typu wiki
7 Name:           Zope-%{zope_subname}
8 Version:        0.27.0
9 Release:        1
10 License:        GPL
11 Group:          Development/Tools
12 Source0:        http://zwiki.org/releases/%{zope_subname}-%{version}.tgz
13 # Source0-md5:  2a6ecd1f75df31bc28faff24cfb8b551
14 URL:            http://zwiki.org/FrontPage/
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 %pyrequires_eq  python-modules
17 Requires:       Zope
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 ZWiki is a Zope product which allows you to build wiki webs in Zope.
23
24 %description -l pl
25 ZWiki to produkt Zope umo¿liwiaj±cy budowanie stron WWW typu wiki.
26
27 %prep
28 %setup -q -n %{zope_subname}
29
30 %build
31 mkdir docs
32 mv -f {CHANGES.txt,README.txt} docs
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
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}/docs
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 docs/*
65 %{_datadir}/%{name}
This page took 0.05031 seconds and 3 git commands to generate.