/[smecontribs]/rpms/mailman/contribs9/mailman.spec
ViewVC logotype

Diff of /rpms/mailman/contribs9/mailman.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by stephdl, Fri Aug 21 17:30:01 2015 UTC Revision 1.2 by stephdl, Sun Aug 23 19:53:29 2015 UTC
# Line 1  Line 1 
1  # Turn off the brp-python-bytecompile script  # Turn off the brp-python-bytecompile script
2  %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')  %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
3    
4    %global pythondns_from_checkout 1
5    %global pythondns_commit 9329daf40d252f25597f44d5e1db8347304d707f
6    %global pythondns_shortcommit %(c=%{commit}; echo ${c:0:7})
7    %global pythondns_version 1.11.1
8    %global pythondns_dir dnspython-%{?pythondns_from_checkout:%{pythondns_commit}}%{!?pythondns_from_checkout:%{pythondns_version}}
9    
10    %if 0%{?rhel} && 0%{?rhel} <= 6
11    %{!?__python2: %global __python2 /usr/bin/python2}
12    %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
13    %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
14    %endif
15    
16    
17  Summary: Mailing list manager with built in Web access  Summary: Mailing list manager with built in Web access
18  Name: mailman  Name: mailman
19  Version: 2.1.12  Version: 2.1.12
20  Release: 25%{?dist}.sme  Release: 25%{?dist}
21  Epoch: 3  Epoch: 3
22  Group: Applications/Internet  Group: Applications/Internet
23  Source0: ftp://ftp.gnu.org/pub/gnu/mailman/mailman-%{version}.tgz  Source0: ftp://ftp.gnu.org/pub/gnu/mailman/mailman-%{version}.tgz
# Line 20  Source8: mailman-update-cfg Line 33  Source8: mailman-update-cfg
33  # patched some files in that tarball. Therefore there is patches email tarball  # patched some files in that tarball. Therefore there is patches email tarball
34  # added as separate source and used as replacement of original tarball.  # added as separate source and used as replacement of original tarball.
35  Source9: email-2.5.8.tar.gz  Source9: email-2.5.8.tar.gz
36    %if 0%{?pythondns_from_checkout}
37    Source10:        https://github.com/rthalley/python-dns/archive/%{pythondns_commit}.tar.gz
38    %else
39    Source10:        http://www.dnspython.org/kits/%{pythondns_version}/dnspython-%{pythondns_version}.tar.gz
40    %endif
41    
42  Patch1: mailman-2.1.12-multimail.patch  Patch1: mailman-2.1.12-multimail.patch
43  Patch2: mailman-2.1-build.patch  Patch2: mailman-2.1-build.patch
# Line 49  Patch24: mailman-2.1.13-no-from-escape.p Line 67  Patch24: mailman-2.1.13-no-from-escape.p
67  Patch25: mailman-2.1.9-pre-wrap.patch  Patch25: mailman-2.1.9-pre-wrap.patch
68  Patch26: mailman-2.1.12-ctype-new.patch  Patch26: mailman-2.1.12-ctype-new.patch
69  Patch27: mailman-2.1.12-newlist-urlhost.patch  Patch27: mailman-2.1.12-newlist-urlhost.patch
70    Patch28: mailman-2.1.12-listadmin-flatten.patch
71    Patch29: mailman-2.1.12-rmlist.patch
72    Patch30: mailman-2.1.12-newlist-ja.patch
73    Patch31: mailman-2.1.12-dmarc.patch
74    Patch32: mailman-2.1.12-CVE-2015-2775.patch
75    
76    
77  License: GPLv2+  License: GPLv2+
# Line 57  BuildRoot: %{_tmppath}/%{name}-root Line 80  BuildRoot: %{_tmppath}/%{name}-root
80  Requires(pre): shadow-utils, /sbin/chkconfig, /sbin/service  Requires(pre): shadow-utils, /sbin/chkconfig, /sbin/service
81  Requires: vixie-cron >= 4.1-9, httpd, python >= 2.2, mktemp  Requires: vixie-cron >= 4.1-9, httpd, python >= 2.2, mktemp
82  BuildRequires: python-devel >= 2.2, automake  BuildRequires: python-devel >= 2.2, automake
83    BuildRequires: python-setuptools
84    
85  %define contentdir /var/www  %define contentdir /var/www
86    
# Line 70  BuildRequires: python-devel >= 2.2, auto Line 94  BuildRequires: python-devel >= 2.2, auto
94  %define docdir /usr/share/doc/%{name}-%{version}  %define docdir /usr/share/doc/%{name}-%{version}
95  %define configdir /etc/%{name}  %define configdir /etc/%{name}
96  %define datadir %{varmmdir}/data  %define datadir %{varmmdir}/data
97    %define archivesdir %{varmmdir}/archives
98  %define lockdir /var/lock/%{name}  %define lockdir /var/lock/%{name}
99  %define logdir /var/log/%{name}  %define logdir /var/log/%{name}
100  %define piddir /var/run/%{name}  %define piddir /var/run/%{name}
# Line 82  BuildRequires: python-devel >= 2.2, auto Line 107  BuildRequires: python-devel >= 2.2, auto
107  # Now, the user and group the CGIs will expect to be run under.  This should  # Now, the user and group the CGIs will expect to be run under.  This should
108  # match the user and group the web server is configured to run as.  The scripts  # match the user and group the web server is configured to run as.  The scripts
109  # will error out if they are invoked by any other user.  # will error out if they are invoked by any other user.
110  %define cgiuser    www  %define cgiuser    apache
111  %define cgigroup   www  %define cgigroup   apache
112    
113  # Now, the user and group the scripts will actually execute as.  # Now, the user and group the scripts will actually execute as.
114  %define mmuser       mailman  %define mmuser       mailman
# Line 149  additional installation steps, these are Line 174  additional installation steps, these are
174  %patch25 -p1  %patch25 -p1
175  %patch26 -p1  %patch26 -p1
176  %patch27 -p1  %patch27 -p1
177    %patch28 -p1 -b .flatten
178    %patch29 -p1 -b .rmlist
179    %patch30 -p1 -b .newlist
180    %patch31 -p1 -b .dmarc
181    %patch32 -p1 -b .2775
182    
183  # Replaces original email-2.5.8.tar.gz with the patched one  # Replaces original email-2.5.8.tar.gz with the patched one
184  cp %{SOURCE9} misc/email-2.5.8.tar.gz  cp %{SOURCE9} misc/email-2.5.8.tar.gz
# Line 156  cp %{SOURCE9} misc/email-2.5.8.tar.gz Line 186  cp %{SOURCE9} misc/email-2.5.8.tar.gz
186  #cp $RPM_SOURCE_DIR/mailman.INSTALL.REDHAT.in INSTALL.REDHAT.in  #cp $RPM_SOURCE_DIR/mailman.INSTALL.REDHAT.in INSTALL.REDHAT.in
187  cp %{SOURCE5} INSTALL.REDHAT.in  cp %{SOURCE5} INSTALL.REDHAT.in
188    
189    # python-dns prep
190    tar -xf %{SOURCE10}
191    pushd %{pythondns_dir}
192    # strip executable permissions so that we don't pick up dependencies
193    # from documentation
194    find examples -type f | xargs chmod a-x
195    popd
196    
197  %build  %build
198    
199  CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS  CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
# Line 208  SubstituteParameters "%{SOURCE4}" "mailm Line 246  SubstituteParameters "%{SOURCE4}" "mailm
246    
247  make  make
248    
249    # python-dns build
250    pushd %{pythondns_dir}
251    CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
252    popd
253    
254  %install  %install
255  rm -fr $RPM_BUILD_ROOT  rm -fr $RPM_BUILD_ROOT
256  # Normal install.  # Normal install.
# Line 319  find $RPM_BUILD_ROOT/%{mmdir}/ -type f - Line 362  find $RPM_BUILD_ROOT/%{mmdir}/ -type f -
362  find $RPM_BUILD_ROOT/%{docdir}/ -type f -a -name "*.py" -print0 | xargs -0 %{__python} -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :  find $RPM_BUILD_ROOT/%{docdir}/ -type f -a -name "*.py" -print0 | xargs -0 %{__python} -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :
363  find $RPM_BUILD_ROOT/%{docdir}/ -type f -a -name "*.py" -print0 | xargs -0 %{__python} -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :  find $RPM_BUILD_ROOT/%{docdir}/ -type f -a -name "*.py" -print0 | xargs -0 %{__python} -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :
364    
365    # python-dns install
366    pushd %{pythondns_dir}
367    %{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
368    mv %{buildroot}%{python2_sitelib}/dns %{buildroot}%{mmdir}/Mailman
369    rm -rf %{buildroot}%{python2_sitelib}
370    popd
371    
372  %clean  %clean
373  rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.%{name}  rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.%{name}
374    
# Line 416  exit 0 Line 466  exit 0
466  %{mmdir}/cron/paths.pyc  %{mmdir}/cron/paths.pyc
467  %{mmdir}/cron/paths.pyo  %{mmdir}/cron/paths.pyo
468  %{mmdir}/cron/senddigests  %{mmdir}/cron/senddigests
469    %{mmdir}/Mailman/dns
470  #Mailman dir minus one file which is listed later  #Mailman dir minus one file which is listed later
471  %{mmdir}/Mailman/Archiver  %{mmdir}/Mailman/Archiver
472  %{mmdir}/Mailman/Autoresponder.py  %{mmdir}/Mailman/Autoresponder.py
# Line 531  exit 0 Line 582  exit 0
582  %attr(0644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/cron.d/mailman  %attr(0644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/cron.d/mailman
583  %attr(0644,root,%{mmgroup}) %config(noreplace) %{mmdir}/cron/crontab.in  %attr(0644,root,%{mmgroup}) %config(noreplace) %{mmdir}/cron/crontab.in
584  %attr(0755,root,root) %{_bindir}/mailman-update-cfg  %attr(0755,root,root) %{_bindir}/mailman-update-cfg
585    # fix for security issue #1214147
586    %attr(2770,%{mmuser},%{cgigroup}) %{archivesdir}/private
587    
588  %changelog  %changelog
589  * Fri Jun 20 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3:2.1.12-25.sme  * Wed Apr 22 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-25
590  - changed cgi user and cgi group to www  - fix CVE-2002-0389 - local users able to read private mailing list archives
591  - last version modified is 3:2.1.12-18  
592    * Wed Apr 22 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-24
593    - fix CVE-2015-2775 - directory traversal in MTA transports
594    
595    * Mon Mar 16 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-23
596    - fix #1095359 - handle update when some mailing lists have been created
597      by newer Mailman than this one
598    
599    * Mon Mar 16 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-22
600    - fix #1095359 - add support for DMARC
601    
602    * Tue Feb 03 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-21
603    - fix #1056366 - fix bad subject of the welcome email when creating list using
604      newlist command
605    
606    * Fri Jan 30 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-20
607    - fix #745409 - do not set Indexes in httpd configuration for public archive
608    - fix #1008139 - fix traceback when list_data_dir is not a child of var_prefix
609    
610    * Mon Dec 01 2014 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-19
611    - fix #765807 - fix traceback when message is received to moderated list
612    
613  * Mon Jul 30 2012 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-18  * Mon Jul 30 2012 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-18
614  - fix #834023 - escape From in email body properly  - fix #834023 - escape From in email body properly


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed