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