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