]> git.pld-linux.org Git - packages/Zope-ZWiki.git/blob - Zope-ZWiki.spec
- upgraded to version 0.35.0
[packages/Zope-ZWiki.git] / Zope-ZWiki.spec
1
2 %define         zope_subname    ZWiki
3 # %%define              sub_ver rc1
4 Summary:        Zope product which allows you to build wiki webs in Zope
5 Summary(pl):    Produkt Zope umo¿liwiaj±cy budowanie stron WWW typu wiki
6 Name:           Zope-%{zope_subname}
7 Version:        0.35.0
8 Release:        1
9 License:        GPL
10 Group:          Development/Tools
11 Source0:        http://zwiki.org/releases/%{zope_subname}-%{version}.tgz
12 # Source0-md5:  87ecc0630e4d50c959e042c4dd8f6759
13 URL:            http://zwiki.org/FrontPage/
14 Requires(post,postun):  /usr/sbin/installzopeproduct
15 %pyrequires_eq  python-modules
16 Requires:       Zope
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 ZWiki is a Zope product which allows you to build wiki webs in Zope.
22
23 %description -l pl
24 ZWiki to produkt Zope umo¿liwiaj±cy budowanie stron WWW typu wiki.
25
26 %prep
27 %setup -q -n %{zope_subname}
28
29 %build
30 mkdir docs
31 mv -f {CHANGES.txt,README.txt} docs
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
49 if [ -f /var/lock/subsys/zope ]; then
50         /etc/rc.d/init.d/zope restart >&2
51 fi
52
53 %postun
54 if [ "$1" = "0" ]; then
55         /usr/sbin/installzopeproduct -d %{zope_subname}
56         if [ -f /var/lock/subsys/zope ]; then
57                 /etc/rc.d/init.d/zope restart >&2
58         fi
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc docs/*
64 %{_datadir}/%{name}
This page took 0.069116 seconds and 3 git commands to generate.