]>
Commit | Line | Data |
---|---|---|
7598e700 | 1 | %define zope_subname ZWiki |
c324bb13 | 2 | # %%define sub_ver rc1 |
7ffa9cb8 | 3 | Summary: Zope product which allows you to build wiki webs in Zope |
4d0e5a94 | 4 | Summary(pl.UTF-8): Produkt Zope umożliwiający budowanie stron WWW typu wiki |
7598e700 | 5 | Name: Zope-%{zope_subname} |
c483bcae | 6 | Version: 0.61.0 |
8c97c3be | 7 | Release: 1 |
7598e700 | 8 | License: GPL |
9 | Group: Development/Tools | |
4cfaec00 | 10 | Source0: http://zwiki.org/releases/%{zope_subname}-%{version}.tgz |
c483bcae | 11 | # Source0-md5: 74252d6629434e2324505486eee2dfac |
7598e700 | 12 | URL: http://zwiki.org/FrontPage/ |
4c62d555 | 13 | BuildRequires: python |
7132930c ER |
14 | BuildRequires: rpmbuild(macros) >= 1.268 |
15 | Requires(post,postun): /usr/sbin/installzopeproduct | |
7598e700 | 16 | Requires: Zope |
7132930c | 17 | %pyrequires_eq python-modules |
7598e700 | 18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
7ffa9cb8 | 22 | ZWiki is a Zope product which allows you to build wiki webs in Zope. |
7598e700 | 23 | |
519bde7d JR |
24 | %description -l pl.UTF-8 |
25 | ZWiki to produkt Zope umożliwiający budowanie stron WWW typu wiki. | |
7598e700 | 26 | |
27 | %prep | |
28 | %setup -q -n %{zope_subname} | |
29 | ||
30 | %build | |
7598e700 | 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} | |
7132930c | 48 | %service -q zope restart |
7598e700 | 49 | |
50 | %postun | |
51 | if [ "$1" = "0" ]; then | |
52 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
7132930c | 53 | %service -q zope restart |
7598e700 | 54 | fi |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
7598e700 | 58 | %{_datadir}/%{name} |