%define name sympa %define version 6.1.23 %define release 7.uoa %define _datadir /usr/share 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 patch: %{name}-%{version}.patch Requires: smtpdaemon Requires: perl >= 0:5.005 Requires: perl-MailTools >= 1.14 # Maybe part of perl-MIME-tools ? #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 # Doesnt exist? #Requires: perl-DB_File >= 1.73 Requires: perl-SOAP-Lite Requires: perl-Term-ProgressBar Requires: perl-HTML-Format Requires: perl-Font-AFM Requires: perl-MIME-Lite-HTML Requires: perl-HTML-StripScripts-Parser # By new patch Requires: perl-Net-DNS Requires: perl-LDAP >= 0.10 # epel Requires: perl-Crypt-CipherSaber >= 0.50 Requires: perl-FCGI >= 0.48 # epel Requires: perl-Digest-MD5-File Requires: perl-Convert-ASN1 Requires: perl-HTML-Parser Requires: perl-HTML-Tagset Requires: perl-IO-Socket-SSL Requires: perl-IO-Socket-INET6 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} Packager: Steve Shipway Requires: libxml2, mysql-server, gettext-libs, perl-DBD-MySQL Requires: perl-libintl, perl-MIME-Charset Requires: perl-MIME-EncWords, perl-Regexp-Common Requires: perl-Template-Toolkit Requires: perl(Template) Requires: perl-XML-LibXML, perl-Archive-Zip Requires: fcgi, mod_fcgid #ExclusiveArch: none AutoReqProv: no %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. # # Note locations: # _builddir # buildroot # _sysconfdir ( /etc/sysconfig ) # Preparation section %prep %setup -q %patch -p 1 # Cleanup after install %clean #rm -rf %{buildroot} # Build section %build ./configure --enable-fhs --prefix=/ --exec-prefix=/usr \ --with-bindir=/usr/bin \ --with-sbindir=%{_sbindir} \ --with-libexecdir=%{_libexecdir}/sympa \ --with-cgidir=%{_localstatedir}/www/sympa \ --with-datadir=%{_localstatedir}/lib/sympa/etc \ --datarootdir=%{_datadir} \ --with-confdir=%{_sysconfdir} \ --with-expldir=%{_localstatedir}/lib/sympa/list_data \ --with-libdir=%{_datadir}/sympa/lib \ --with-mandir=%{_mandir} \ --with-docdir=%{_datadir}/doc/%{name}-%{version} \ --with-piddir=%{_localstatedir}/run/sympa \ --with-etcdir=%{_sysconfdir}/sympa \ --with-localedir=%{_datadir}/locale \ --with-scriptdir=%{_datadir}/sympa/bin \ --with-sampledir=%{_datadir}/doc/%{name}-%{version}/sample \ --with-spooldir=%{_localstatedir}/spool/sympa \ --with-modulesdir=%{_datadir}/sympa/lib \ --with-defaultdir=%{_datadir}/sympa/default \ --with-initdir=%{_initrddir} \ --with-openssl=/usr/bin/openssl make #Install section %install rm -rf %{buildroot} make DESTDIR="$RPM_BUILD_ROOT" install cd $RPM_BUILD_ROOT/usr/libexec/sympa [ -d $RPM_BUILD_ROOT/etc/smrsh ] || mkdir $RPM_BUILD_ROOT/etc/smrsh for i in * do ln -f -s /usr/libexec/sympa/$i $RPM_BUILD_ROOT/etc/smrsh/$i done [ -d $RPM_BUILD_ROOT/etc/logrotate.d ] || mkdir $RPM_BUILD_ROOT/etc/logrotate.d cp -f /usr/local/rpm/SOURCES/sympa $RPM_BUILD_ROOT/etc/logrotate.d mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d cp -f /usr/local/rpm/SOURCES/sympa.conf $RPM_BUILD_ROOT/etc/httpd/conf.d # preinstall create users %pre # Create "sympa" group if it does not exists if ! /usr/bin/getent group sympa > /dev/null 2>&1; then /usr/sbin/groupadd sympa fi # Create "sympa" user if it does not exists if ! /usr/bin/getent passwd sympa > /dev/null 2>&1; then /usr/sbin/useradd -r -M -N -g sympa \ -d %{_localstatedir}/lib/sympa \ -c "system user for sympa" \ -s "/bin/bash" \ sympa fi # Postinstall section #%post #/usr/sbin/sympa_wizard.pl --check #/usr/sbin/sympa_wizard.pl # Files -- relative to buildroot %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 %attr(-,sympa,sympa) %dir %{_localstatedir}/run/sympa %dir %{_libexecdir}/sympa %attr(06755,sympa,sympa) %{_libexecdir}/sympa/* %attr(04750,root,sympa) %{_libexecdir}/sympa/sympa_newaliases-wrapper %{_mandir}/* %{_datadir}/sympa %{_datadir}/locale/* %config(noreplace) %{_sysconfdir}/sympa.conf %config(noreplace) %{_sysconfdir}/wwsympa.conf %config(noreplace) %{_sysconfdir}/sympa %config(noreplace) %{_sysconfdir}/httpd/conf.d/sympa.conf %{_initrddir}/sympa %{_sysconfdir}/smrsh/* %{_sysconfdir}/logrotate.d/sympa %{_sbindir}/* /var/www/sympa %attr(06755,sympa,sympa) /var/www/sympa/*-wrapper.fcgi %changelog * Fri Nov 28 2014 Steve Shipway - 6.1.23_6.uoa: Add include_list_subset external datasource (for FMHS) * Tue Nov 25 2014 Steve Shipway - 6.1.23_5.uoa: Add new SOAP function calls getDetails setDetails getCustom setCustom (for FMHS) * Tue Oct 21 2014 Steve Shipway - 6.1.23_3.uoa: Add gecosattr for 2level_ldap external datasource (For NICAI) * Tue Oct 7 2014 Steve Shipway - 6.1.23_2.uoa: Upgrade to Sympa 6.1.23: many previous patches no longer required * Tue Jul 29 2014 Steve Shipway - 6.1.19_4.uoa: Make Owner/Editor tests in scenari strict, so listmasters are not automatically granted posting rights (For Dave Henricks) * Fri May 16 2014 Steve Shipway - 6.1.19_3.uoa: Update for DMARC patch, and en po-file double title on admin page (for DMARC protection) * Wed Mar 12 2014 Steve Shipway - 6.1.19_1.uoa: Update for 6.1.19: many previous patches no longer required * Wed Jan 8 2014 Steve Shipway - Add editor/owner fields to list data stash * Mon Sep 3 2012 Steve Shipway - Added patch for allow perl in tt2, enable embedded href, more can_* vars * Thu Jul 26 2012 Steve Shipway - Added patch for may_add, may_del allowing editors to maintain list membership * Thu Jul 19 2012 Steve Shipway - Added patch for ODBC support * Fri Jun 29 2012 Steve Shipway - Added patch for LDAP/SQL gecos support, and topic searches * Fri Jun 15 2012 Steve Shipway - Upgrade to v 6.1.11 * Mon May 14 2012 Steve Shipway - Added patch for list table * Mon Apr 30 2012 Steve Shipway - Initial creation