]> git.pld-linux.org Git - packages/Zope-ZWiki.git/blob - Zope-ZWiki.spec
- updated to 0.61.0
[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.61.0
7 Release:        1
8 License:        GPL
9 Group:          Development/Tools
10 Source0:        http://zwiki.org/releases/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  74252d6629434e2324505486eee2dfac
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
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
41 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
48 %service -q zope restart
49
50 %postun
51 if [ "$1" = "0" ]; then
52         /usr/sbin/installzopeproduct -d %{zope_subname}
53         %service -q zope restart
54 fi
55
56 %files
57 %defattr(644,root,root,755)
58 %{_datadir}/%{name}
This page took 0.110448 seconds and 3 git commands to generate.