]> git.pld-linux.org Git - packages/amavis.git/blob - amavis.spec
7cb57fdcb0c971660b59cf189aead3b3e6716baf
[packages/amavis.git] / amavis.spec
1
2 # conditional build _with_mks32 support for mks32 i386 _only_
3
4 %include        /usr/lib/rpm/macros.perl    
5 Summary:        A Mail Virus Scanner
6 Summary(pl):    Antywirusowy skaner poczty elektronicznej
7 Name:           amavis
8 Version:        11
9 Release:        1
10 URL:            http://www.amavis.org/
11 Source0:        http://www.amavis.org/dist/perl/%{name}-perl-%{version}.tar.gz
12 %{?_with_mks32:Patch0:          amavis-perl-mks32.patch}
13 License:        GPL
14 Group:          Applications/Mail
15 Group(de):      Applikationen/Post
16 Group(pl):      Aplikacje/Poczta
17 Group(pt):      Aplicações/Correio Eletrônico
18 Obsoletes:      AMaViS
19 BuildRequires:  autoconf >= 2.52
20 BuildRequires:  perl
21 BuildRequires:  perl-modules
22 BuildRequires:  perl-Convert-UUlib
23 BuildRequires:  perl-Convert-TNEF
24 BuildRequires:  perl-Unix-Syslog
25 BuildRequires:  perl-Archive-Tar
26 BuildRequires:  perl-Archive-Zip
27 BuildRequires:  perl-Compress-Zlib
28 BuildRequires:  perl-MIME-tools
29 BuildRequires:  file
30 BuildRequires:  sh-utils
31 BuildRequires:  arc
32 BuildRequires:  bzip2
33 BuildRequires:  lha
34 BuildRequires:  unarj
35 BuildRequires:  ncompress
36 BuildRequires:  unrar
37 BuildRequires:  zoo
38 Requires:       file
39 Requires:       sh-utils
40 Requires:       arc
41 Requires:       bzip2
42 Requires:       lha
43 Requires:       unarj
44 Requires:       ncompress
45 Requires:       unrar
46 Requires:       zoo
47 Requires:       %{_sbindir}/sendmail
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 AMaViS is a script that interfaces a mail transport agent (MTA) with
52 one or more virus scanners.
53
54 %description -l pl
55 AMaViS to skrypt po¶rednicz±cy pomiêdzy agentem transferu poczty (MTA)
56 a jednym lub wiêcej programów antywirusowych.
57
58 %prep
59 %setup -q -n %{name}-perl-%{version}
60 %{?_with_mks32:%patch -p1}  
61
62 %build
63 autoconf
64 %configure \
65         --enable-all \
66         --with-sendmail-wrapper=%{_sbindir}/sendmail \
67         --with-runtime-dir=/var/spool/amavis/runtime \
68         --with-virusdir=/var/spool/amavis/virusmails \
69         --with-mailto="postmaster" \
70         --with-amavisuser=amavis
71
72 %{__make}
73
74 gzip -9nf README* AUTHORS BUGS ChangeLog FAQ HINTS TODO doc/amavis.html
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         amavisuser=$(id -u) \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_sbindir}/*
86 %doc *.gz doc/*.gz doc/amavis.png
87 %attr(750,amavis,root) /var/spool/amavis
88
89 %pre
90 if [ -n "`id -u amavis 2>/dev/null`" ]; then
91         if [ "`id -u amavis`" != "97" ]; then
92                 echo "Warning: user amavis haven't uid=97. Correct this before installing amavis" 1>&2
93                 exit 1
94         fi
95 else
96         /usr/sbin/useradd -u 97 -r -d /var/spool/amavis  -s /bin/false -c "Anti Virus Checker" -g nobody  amavis 1>&2
97 fi
98
99 %postun
100 if [ "$1" = "0" ]; then
101         /usr/sbin/userdel amavis
102 fi
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
This page took 0.084169 seconds and 2 git commands to generate.