sympa.spec.in 2.92 KB
Newer Older
1
2
3
4
5
6
7
%define name    sympa
%define version @VERSION@
%define release 1

Name:     %{name}
Version:  %{version}
Release:  %{release}
8
Summary(fr): Sympa est un gestionnaire de listes électroniques
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Summary:  Sympa is a powerful multilingual List Manager
License:  GPL
Group:    System Environment/Daemons
URL:      http://www.sympa.org/
Source:   http://www.sympa.org/distribution/%{name}-%{version}.tar.gz
Requires: smtpdaemon
Requires: perl >= 0:5.005
Requires: perl-MailTools >= 1.14
Requires: perl-MIME-Base64   >= 1.0
Requires: perl-IO-stringy    >= 1.0
Requires: perl-MIME-tools    >= 5.209
Requires: perl-CGI    >= 2.52
Requires: perl-DBI    >= 1.06
Requires: perl-DB_File    >= 1.73
Requires: perl-ldap >= 0.10
Requires: perl-CipherSaber >= 0.50
Requires: perl-FCGI    >= 0.48
Requires: perl-Digest-MD5
Requires: perl-Convert-ASN1
Requires: perl-HTML-Parser
Requires: perl-HTML-Tagset
Requires: perl-IO-Socket-SSL
Requires: perl-URI
Requires: perl-libwww-perl
Requires: MHonArc >= 2.4.6
Requires: webserver
Requires: openssl >= 0.9.5a
Prereq: /usr/sbin/useradd
Prereq: /usr/sbin/groupadd
BuildRoot: %{_tmppath}/%{name}-%{version}

%description
Sympa is scalable and highly customizable mailing list manager. It can cope
with big lists (200,000 subscribers) and comes with a complete (user and admin)
Web interface. It is internationalized, and supports the us, fr, de, es, it,
fi, and chinese locales. A scripting language allows you to extend the behavior
of commands. Sympa can be linked to an LDAP directory or an RDBMS to create
dynamic mailing lists. Sympa provides S/MIME-based authentication and
encryption.

%prep
%setup -q

%build
./configure \
54
    --enable-fhs \
55
    --prefix=%{_prefix} \
56
    --docdir=%{_docdir}/${name} \
57
    --libdir=%{_libdir} \
58
59
60
61
62
    --sysconfdir=%{_sysconfdir}/sympa \
    --localstatedir=%{_localstatedir} \
    --with-confdir=%{_sysconfdir} \
    --with-initdir=%{_initrddir} \
    --with-smrshdir=%{_sysconfdir}/smrsh
63
make DESTDIR=%{buildroot}
64
65
66
67

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
68
69
cp -rp %{buildroot}%{_docdir}/%{name}/* ./
rm -rf %{buildroot}%{_docdir}/%{name}/*
70

71
72
73
%check
make check

74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
%clean
rm -rf %{buildroot}

%pre
# Create "sympa" group if it does not exists
if ! getent group sympa > /dev/null 2>&1; then
  /usr/sbin/groupadd sympa
fi

# Create "sympa" user if it does not exists
if ! getent user sympa > /dev/null 2>&1; then
  /usr/sbin/useradd -r -g sympa \
      -d %{_localstatedir}/lib/sympa \
      -c "system user for sympa" \
      -s "/bin/bash"
fi

%files
%defattr(-,root,root)
93
%doc AUTHORS COPYING dot.perltidyrc NEWS README* samples sympa.pdf
94
95
96
%attr(-,sympa,sympa) %{_localstatedir}/lib/sympa
%attr(-,sympa,sympa) %{_localstatedir}/spool/sympa
%{_sbindir}/*
97
%{_libexecdir}/*
98
%{_libdir}/sympa
99
100
%{_mandir}/man1/*
%{_mandir}/man3/*
101
102
103
%{_mandir}/man8/*
%{_datadir}/sympa
%{_datadir}/locale/*/*/*
104
%{_sysconfdir}/smrsh/*
105
106
107
%config(noreplace) %{_sysconfdir}/sympa.conf
%config(noreplace) %{_sysconfdir}/sympa
%{_initrddir}/sympa