]> git.pld-linux.org Git - packages/Zope-ZWiki.git/blob - Zope-ZWiki.spec
998c9e39c320ff614bce88db092adeb6d86d6a22
[packages/Zope-ZWiki.git] / Zope-ZWiki.spec
1 %define         zope_subname    ZWiki
2 # %%define              sub_ver rc1
3 Summary:        Zope product which allows you to build wiki webs in Zope
4 Summary(pl.UTF-8):      Produkt Zope umożliwiający budowanie stron WWW typu wiki
5 Name:           Zope-%{zope_subname}
6 Version:        0.60.0
7 Release:        1
8 License:        GPL
9 Group:          Development/Tools
10 Source0:        http://zwiki.org/releases/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  64f4e400ac3209fef5c6d17452e99ddc
12 URL:            http://zwiki.org/FrontPage/
13 BuildRequires:  python
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope
17 %pyrequires_eq  python-modules
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.UTF-8
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,README} 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 %service -q zope restart
51
52 %postun
53 if [ "$1" = "0" ]; then
54         /usr/sbin/installzopeproduct -d %{zope_subname}
55         %service -q zope restart
56 fi
57
58 %files
59 %defattr(644,root,root,755)
60 %doc docs/*
61 %{_datadir}/%{name}
This page took 0.377213 seconds and 2 git commands to generate.