-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsympa.spec.in
95 lines (86 loc) · 2.61 KB
/
sympa.spec.in
1
2
3
4
5
6
7
8
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
%define name sympa
%define version @VERSION@
%define release 1
Name: %{name}
Version: %{version}
Release: %{release}
Summary: Sympa is a powerful multilingual List Manager
Summary(fr): Sympa est un gestionnaire de listes électroniques
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 \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir} \
--localstatedir=%{_localstatedir}
make
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%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)
%doc README README.charset NEWS COPYING AUTHORS doc/sample
%attr(-,sympa,sympa) %{_localstatedir}/lib/sympa
%attr(-,sympa,sympa) %{_localstatedir}/spool/sympa
%{_sbindir}/*
%{_libexecdir}/*
%{_libdir}/sympa
%{_mandir}/man8/*
%{_datadir}/sympa
%{_datadir}/locale/*/*/*
%config(noreplace) %{_sysconfdir}/sympa.conf
%config(noreplace) %{_sysconfdir}/wwsympa.conf
%config(noreplace) %{_sysconfdir}/sympa
%{_initrddir}/sympa