- initial release
[packages/Zope-WebMail.git] / Zope-WebMail.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    WebMail
3 Summary:        Webmail - is a mail client for Zope
4 Summary(pl):    Webmail - jest klientem poczty elektronicznej dla Zope
5 Name:           Zope-%{zope_subname}
6 Version:        4.1
7 Release:        1
8 License:        GNU
9 Group:          Development/Tools      
10 Source0:        http://zope.org/Members/sgiraud/%{zope_subname}/%{zope_subname}/%{zope_subname}_%{version}.tar.gz
11 # Source0-md5:  3cc5047f150c66be431a6d1babc403c6
12 URL:            http://zope.org/Members/sgiraud/WebMail
13 %pyrequires_eq  python-modules
14 Requires:       Zope
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         product_dir     /usr/lib/zope/Products
19
20 %description
21 Webmail - is a mail client for Zope
22
23 %description -l pl
24 Webmail - jest klientem poczty elektronicznej dla Zope
25
26 %prep
27 %setup -q -c %{zope_subname}-%{version}
28
29 %build
30 rm -rf `find . -type d -name CVS`
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{product_dir}
35 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
36
37 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
39
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
41 # rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.txt
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 if [ -f /var/lock/subsys/zope ]; then
48         /etc/rc.d/init.d/zope restart >&2
49 fi
50
51 %postun
52 if [ -f /var/lock/subsys/zope ]; then
53         /etc/rc.d/init.d/zope restart >&2
54 fi
55
56 %files
57 %defattr(644,root,root,755)
58 # %%doc %{zope_subname}/*.txt
59 %{product_dir}/%{zope_subname}
This page took 0.038853 seconds and 3 git commands to generate.