]>
Commit | Line | Data |
---|---|---|
1 | %define zope_subname MPoll | |
2 | Summary: Sime cookie-based poll product based on Archetypes | |
3 | Summary(pl.UTF-8): Produkt bazujący na Archetypes umożliwiający dodanie pola do głosowań | |
4 | Name: Zope-CMF%{zope_subname} | |
5 | Version: 0.3.1 | |
6 | Release: 2 | |
7 | License: GPL | |
8 | Group: Development/Tools | |
9 | Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz | |
10 | # Source0-md5: bc8dd0f835e51a16a421e550bb4667f3 | |
11 | URL: http://sourceforge.net/projects/collective/ | |
12 | BuildRequires: python | |
13 | BuildRequires: rpmbuild(macros) >= 1.268 | |
14 | Requires(post,postun): /usr/sbin/installzopeproduct | |
15 | %pyrequires_eq python-modules | |
16 | Requires: Zope | |
17 | Requires: Zope-CMF | |
18 | Requires: Zope-archetypes | |
19 | Conflicts: CMF | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Sime cookie-based poll product based on Archetypes. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Produkt bazujący na Archetypes umożliwiający dodanie pola do głosowań. | |
28 | ||
29 | %prep | |
30 | %setup -q -n %{zope_subname} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
35 | ||
36 | cp -af {Extensions,i18n,skins,*.py,version.txt} $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 | ||
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 | %doc HISTORY.txt README.txt LICENSE.txt | |
59 | %{_datadir}/%{name} |