]> git.pld-linux.org Git - packages/Zope-WebMail.git/blob - Zope-WebMail.spec
0a1bf15127f2b029c2bca429c9c22476494ad123
[packages/Zope-WebMail.git] / Zope-WebMail.spec
1 %define         zope_subname    WebMail
2 Summary:        A mail client for Zope
3 Summary(pl.UTF-8):   Klient poczty elektronicznej dla Zope
4 Name:           Zope-%{zope_subname}
5 Version:        4.3.1
6 Release:        2
7 License:        GPL v2+
8 Group:          Development/Tools
9 Source0:        http://www.pentila.com/produits/WebMail/%{zope_subname}-%{version}.tgz
10 # Source0-md5:  b35b48977be73eb8511296f3d3f7a244
11 URL:            http://www.pentila.com/produits/WebMail/
12 BuildRequires:  python
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 %pyrequires_eq  python-modules
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 WebMail is a mail client for Zope.
22
23 %description -l pl.UTF-8
24 WebMail jest klientem poczty elektronicznej dla Zope.
25
26 %prep
27 %setup -q -n %{zope_subname}
28
29 find . -type d -name CVS | xargs rm -rf
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34
35 cp -af {dtml,style_sheet,www,*.py,refresh.txt} $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
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 %service -q zope restart
48
49 %postun
50 if [ "$1" = "0" ]; then
51         /usr/sbin/installzopeproduct -d %{zope_subname}
52         %service -q zope restart
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 # contains authors
58 %doc LICENSE.txt CHANGES.txt
59 %{_datadir}/%{name}
This page took 0.083672 seconds and 2 git commands to generate.