]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - contrib/spamass-milter.spec.in
Imported Upstream version 0.4.0
[deb_pkgs/spamass-milter.git] / contrib / spamass-milter.spec.in
1 Summary: Spamassassin Milter
2 Name: spamass-milter
3 Version: @VERSION@
4 Release:   3
5 Source:    spamass-milter-%{version}.tar.gz
6 Url: http://savannah.gnu.org/projects/spamass-milt/
7 Copyright: GPL
8 Group:     System Environment/Daemons
9 BuildRoot: /var/tmp/%{name}-root
10 BuildRequires: spamassassin
11 Requires: spamassassin
12 # Requires sendmail to have milter support, too.
13 Requires: sendmail
14 # This is for libmilter &c.
15 BuildRequires: sendmail-devel
16 # And this is for building the config scripts
17 BuildRequires: autoconf253 automake15
18
19 %description
20 A little plugin for the Sendmail Milter (Mail Filter) library that pipes all
21 incoming mail (including things received by rmail/UUCP) through the
22 SpamAssassin, a highly customizable SpamFilter.
23
24 %prep
25 %setup -q
26
27 %build
28 %configure
29 make
30
31 %install
32 %makeinstall
33 mkdir -p $RPM_BUILD_ROOT%{_initrddir}
34 install -m755 contrib/spamass-milter-redhat.rc \
35         $RPM_BUILD_ROOT%{_initrddir}/spamass-milter
36
37 %preun
38 test "$1" != "0" && exit 0
39 service spamass-milter stop
40 chkconfig --del spamass-milter
41
42 %post
43 chkconfig --add spamass-milter
44 service spamass-milter condrestart
45
46 %clean
47 test "$RPM_BUILD_ROOT" = "/" || rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(-,root,root)
51 %doc AUTHORS ChangeLog NEWS README
52 %{_sbindir}/spamass-milter
53 %{_initrddir}/spamass-milter
54 %{_mandir}/man1/spamass-milter.1*
55
56 %changelog
57 * Mon Aug 19 2002 Fritz Elfert <fritz.elfert@to.com>
58  - Use RPM macros everywhere (this fixes install of manpage)
59  - Changed Group to an official group of RedHat
60  - Added preun and post scriptlets
61  - Made clean scriptlet foolproof
62  - Added condrestart to redhat rc script