]>
Commit | Line | Data |
---|---|---|
1 | %define zope_subname WebMail | |
2 | Summary: A mail client for Zope | |
3 | Summary(pl): Klient poczty elektronicznej dla Zope | |
4 | Name: Zope-%{zope_subname} | |
5 | Version: 4.1 | |
6 | Release: 3 | |
7 | License: GPL v2+ | |
8 | Group: Development/Tools | |
9 | Source0: http://zope.org/Members/sgiraud/%{zope_subname}/%{zope_subname}/%{zope_subname}_%{version}.tar.gz | |
10 | # Source0-md5: 3cc5047f150c66be431a6d1babc403c6 | |
11 | URL: http://zope.org/Members/sgiraud/WebMail | |
12 | %pyrequires_eq python-modules | |
13 | Requires: Zope | |
14 | Requires(post,postun): /usr/sbin/installzopeproduct | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | WebMail is a mail client for Zope. | |
20 | ||
21 | %description -l pl | |
22 | WebMail jest klientem poczty elektronicznej dla Zope. | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{zope_subname} | |
26 | ||
27 | find . -type d -name CVS | xargs rm -rf | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
32 | ||
33 | cp -af {dtml,style_sheet,www,*.py,*.dtml,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} | |
34 | ||
35 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
36 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
37 | ||
38 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %post | |
44 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
45 | if [ -f /var/lock/subsys/zope ]; then | |
46 | /etc/rc.d/init.d/zope restart >&2 | |
47 | fi | |
48 | ||
49 | %postun | |
50 | if [ "$1" = "0" ]; then | |
51 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
52 | if [ -f /var/lock/subsys/zope ]; then | |
53 | /etc/rc.d/init.d/zope restart >&2 | |
54 | fi | |
55 | fi | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | # contains authors | |
60 | %doc LICENSE.txt | |
61 | %{_datadir}/%{name} |