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