]> git.pld-linux.org Git - packages/anubis.git/blob - anubis.spec
- new version, STBR.
[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         --prefix=%{_prefix} \
35         --with-pcre \
36         --disable-dependency-tracking
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
42 install -d $RPM_BUILD_ROOT%{_sysconfdir}
43
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 install ./scripts/redhat.init $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
48 install ./examples/defaultrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
49
50 %clean
51 rm -fr $RPM_BUILD_ROOT
52
53 %post
54 /sbin/chkconfig --add anubis
55 if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
56         /etc/rc.d/init.d/anubis restart >&2
57 else
58         echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
59 fi
60
61 %preun
62 if [ "$1" = "0" ]; then
63         if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
64                 /etc/rc.d/init.d/anubis stop
65         fi
66         /sbin/chkconfig --del anubis
67 fi
68
69 %files
70 %defattr(644,root,root,755)
71 %doc AUTHORS README INSTALL NEWS ChangeLog TUTORIAL TODO examples
72 %attr(755,root,root) %{_sbindir}/anubis
73 %attr(750,root,root) /etc/rc.d/init.d/anubis
74 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
75 %{_mandir}/man1/*
This page took 0.057976 seconds and 4 git commands to generate.