]> git.pld-linux.org Git - packages/anubis.git/blob - anubis.spec
- simplification in %build.
[packages/anubis.git] / anubis.spec
1 Summary:        An outgoing mail processor, and the SMTP tunnel
2 Summary(pl):    Preprocesor wychodz±cej poczty i tunel SMTP
3 Name:           anubis
4 Version:        3.4.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Mail
8 Source0:        http://cesnet.dl.sourceforge.net/sourceforge/anubis/%{name}-%{version}.tar.gz
9 URL:            http://anubis.sourceforge.net/
10 BuildRequires:  automake
11 BuildRequires:  autoconf
12 BuildRequires:  openssl-devel
13 BuildRequires:  gpgme-devel
14 BuildRequires:  pcre-devel
15 PreReq:         /sbin/chkconfig
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Anubis is an outgoing mail processor, and the SMTP tunnel between the
20 MUA and the MTA. It supports: extended regular expressions, TLS/SSL
21 encryption, GnuPG (via the GPGME library), SOCKS Proxy and WinGates,
22 remailers, and more.
23
24 %description -l pl
25 Anubis jest preprocesorem wychodz±cej poczty i tunelem miêdzy MUA and
26 the MTA. Anubis wspiera rozszerzone wyra¿enia regularne, szyfrowanie
27 TLS/SSL, GnuPG, SOCKS Proxy oraz WinGates, remailery i nie tylko.
28
29 %prep
30 %setup -q
31
32 %build
33 %configure \
34         --with-pcre \
35         --disable-dependency-tracking
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
41 install -d $RPM_BUILD_ROOT%{_sysconfdir}
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 install ./scripts/redhat.init $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
47 install ./examples/defaultrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
48
49 %clean
50 rm -fr $RPM_BUILD_ROOT
51
52 %post
53 /sbin/chkconfig --add anubis
54 if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
55         /etc/rc.d/init.d/anubis restart >&2
56 else
57         echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
58 fi
59
60 %preun
61 if [ "$1" = "0" ]; then
62         if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
63                 /etc/rc.d/init.d/anubis stop
64         fi
65         /sbin/chkconfig --del anubis
66 fi
67
68 %files
69 %defattr(644,root,root,755)
70 %doc AUTHORS README INSTALL NEWS ChangeLog TUTORIAL TODO examples
71 %attr(755,root,root) %{_sbindir}/anubis
72 %attr(750,root,root) /etc/rc.d/init.d/anubis
73 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
74 %{_mandir}/man1/*
This page took 0.033422 seconds and 3 git commands to generate.