/[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.7 by stephdl, Tue Aug 25 16:59:15 2015 UTC Revision 1.8 by stephdl, Fri Sep 4 22:12:15 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    
 %global pythondns_from_checkout 1  
 %global pythondns_commit 9329daf40d252f25597f44d5e1db8347304d707f  
 %global pythondns_shortcommit %(c=%{commit}; echo ${c:0:7})  
 %global pythondns_version 1.11.1  
 %global pythondns_dir dnspython-%{?pythondns_from_checkout:%{pythondns_commit}}%{!?pythondns_from_checkout:%{pythondns_version}}  
   
 %if 0%{?rhel} && 0%{?rhel} <= 6  
 %{!?__python2: %global __python2 /usr/bin/python2}  
 %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}  
 %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}  
 %endif  
   
   
4  Summary: Mailing list manager with built in Web access  Summary: Mailing list manager with built in Web access
5  Name: mailman  Name: mailman
6  Version: 2.1.12  Version: 2.1.12
7  Release: 104%{?dist}  Release: 25%{?dist}.sme
8  Epoch: 3  Epoch: 3
9  Group: Applications/Internet  Group: Applications/Internet
10  Source0: ftp://ftp.gnu.org/pub/gnu/mailman/mailman-%{version}.tgz  Source0: ftp://ftp.gnu.org/pub/gnu/mailman/mailman-%{version}.tgz
# Line 33  Source8: mailman-update-cfg Line 20  Source8: mailman-update-cfg
20  # patched some files in that tarball. Therefore there is patches email tarball  # patched some files in that tarball. Therefore there is patches email tarball
21  # added as separate source and used as replacement of original tarball.  # added as separate source and used as replacement of original tarball.
22  Source9: email-2.5.8.tar.gz  Source9: email-2.5.8.tar.gz
 %if 0%{?pythondns_from_checkout}  
 Source10:        https://github.com/rthalley/python-dns/archive/%{pythondns_commit}.tar.gz  
 %else  
 Source10:        http://www.dnspython.org/kits/%{pythondns_version}/dnspython-%{pythondns_version}.tar.gz  
 %endif  
23    
24  Patch1: mailman-2.1.12-multimail.patch  Patch1: mailman-2.1.12-multimail.patch
25  Patch2: mailman-2.1-build.patch  Patch2: mailman-2.1-build.patch
# Line 67  Patch24: mailman-2.1.13-no-from-escape.p Line 49  Patch24: mailman-2.1.13-no-from-escape.p
49  Patch25: mailman-2.1.9-pre-wrap.patch  Patch25: mailman-2.1.9-pre-wrap.patch
50  Patch26: mailman-2.1.12-ctype-new.patch  Patch26: mailman-2.1.12-ctype-new.patch
51  Patch27: mailman-2.1.12-newlist-urlhost.patch  Patch27: mailman-2.1.12-newlist-urlhost.patch
 Patch28: mailman-2.1.12-listadmin-flatten.patch  
 Patch29: mailman-2.1.12-rmlist.patch  
 Patch30: mailman-2.1.12-newlist-ja.patch  
 Patch31: mailman-2.1.12-dmarc.patch  
 Patch32: mailman-2.1.12-CVE-2015-2775.patch  
52    
53    
54  License: GPLv2+  License: GPLv2+
# Line 80  BuildRoot: %{_tmppath}/%{name}-root Line 57  BuildRoot: %{_tmppath}/%{name}-root
57  Requires(pre): shadow-utils, /sbin/chkconfig, /sbin/service  Requires(pre): shadow-utils, /sbin/chkconfig, /sbin/service
58  Requires: vixie-cron >= 4.1-9, httpd, python >= 2.2, mktemp  Requires: vixie-cron >= 4.1-9, httpd, python >= 2.2, mktemp
59  BuildRequires: python-devel >= 2.2, automake  BuildRequires: python-devel >= 2.2, automake
 BuildRequires: python-setuptools  
60    
61  %define contentdir /var/www  %define contentdir /var/www
62    
# Line 94  BuildRequires: python-setuptools Line 70  BuildRequires: python-setuptools
70  %define docdir /usr/share/doc/%{name}-%{version}  %define docdir /usr/share/doc/%{name}-%{version}
71  %define configdir /etc/%{name}  %define configdir /etc/%{name}
72  %define datadir %{varmmdir}/data  %define datadir %{varmmdir}/data
 %define archivesdir %{varmmdir}/archives  
73  %define lockdir /var/lock/%{name}  %define lockdir /var/lock/%{name}
74  %define logdir /var/log/%{name}  %define logdir /var/log/%{name}
75  %define piddir /var/run/%{name}  %define piddir /var/run/%{name}
# Line 174  additional installation steps, these are Line 149  additional installation steps, these are
149  %patch25 -p1  %patch25 -p1
150  %patch26 -p1  %patch26 -p1
151  %patch27 -p1  %patch27 -p1
 %patch28 -p1 -b .flatten  
 %patch29 -p1 -b .rmlist  
 %patch30 -p1 -b .newlist  
 %patch31 -p1 -b .dmarc  
 %patch32 -p1 -b .2775  
152    
153  # Replaces original email-2.5.8.tar.gz with the patched one  # Replaces original email-2.5.8.tar.gz with the patched one
154  cp %{SOURCE9} misc/email-2.5.8.tar.gz  cp %{SOURCE9} misc/email-2.5.8.tar.gz
# Line 186  cp %{SOURCE9} misc/email-2.5.8.tar.gz Line 156  cp %{SOURCE9} misc/email-2.5.8.tar.gz
156  #cp $RPM_SOURCE_DIR/mailman.INSTALL.REDHAT.in INSTALL.REDHAT.in  #cp $RPM_SOURCE_DIR/mailman.INSTALL.REDHAT.in INSTALL.REDHAT.in
157  cp %{SOURCE5} INSTALL.REDHAT.in  cp %{SOURCE5} INSTALL.REDHAT.in
158    
 # python-dns prep  
 tar -xf %{SOURCE10}  
 pushd %{pythondns_dir}  
 # strip executable permissions so that we don't pick up dependencies  
 # from documentation  
 find examples -type f | xargs chmod a-x  
 popd  
   
159  %build  %build
160    
161  CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS  CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
# Line 246  SubstituteParameters "%{SOURCE4}" "mailm Line 208  SubstituteParameters "%{SOURCE4}" "mailm
208    
209  make  make
210    
 # python-dns build  
 pushd %{pythondns_dir}  
 CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build  
 popd  
   
211  %install  %install
212  rm -fr $RPM_BUILD_ROOT  rm -fr $RPM_BUILD_ROOT
213  # Normal install.  # Normal install.
# Line 362  find $RPM_BUILD_ROOT/%{mmdir}/ -type f - Line 319  find $RPM_BUILD_ROOT/%{mmdir}/ -type f -
319  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:]]' || :
320  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:]]' || :
321    
 # python-dns install  
 pushd %{pythondns_dir}  
 %{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}  
 mv %{buildroot}%{python2_sitelib}/dns %{buildroot}%{mmdir}/Mailman  
 rm -rf %{buildroot}%{python2_sitelib}  
 popd  
   
322  %clean  %clean
323  rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.%{name}  rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.%{name}
324    
# Line 466  exit 0 Line 416  exit 0
416  %{mmdir}/cron/paths.pyc  %{mmdir}/cron/paths.pyc
417  %{mmdir}/cron/paths.pyo  %{mmdir}/cron/paths.pyo
418  %{mmdir}/cron/senddigests  %{mmdir}/cron/senddigests
 %{mmdir}/Mailman/dns  
419  #Mailman dir minus one file which is listed later  #Mailman dir minus one file which is listed later
420  %{mmdir}/Mailman/Archiver  %{mmdir}/Mailman/Archiver
421  %{mmdir}/Mailman/Autoresponder.py  %{mmdir}/Mailman/Autoresponder.py
# Line 582  exit 0 Line 531  exit 0
531  %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
532  %attr(0644,root,%{mmgroup}) %config(noreplace) %{mmdir}/cron/crontab.in  %attr(0644,root,%{mmgroup}) %config(noreplace) %{mmdir}/cron/crontab.in
533  %attr(0755,root,root) %{_bindir}/mailman-update-cfg  %attr(0755,root,root) %{_bindir}/mailman-update-cfg
 # fix for security issue #1214147  
 %attr(2770,%{mmuser},%{cgigroup}) %{archivesdir}/private  
534    
535  %changelog  %changelog
 * Sun Aug 23 2015 Stephane de Labrusse <stephdl@de-labrusse.fr> 3:2.1.12-104.sme  
 - changed cgi user and cgi group to www for SME Server 9.0  
 - last version modified is 3:2.1.12-25  
   
 * Wed Apr 22 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-25  
 - fix CVE-2002-0389 - local users able to read private mailing list archives  
   
 * Wed Apr 22 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-24  
 - fix CVE-2015-2775 - directory traversal in MTA transports  
   
 * Mon Mar 16 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-23  
 - fix #1095359 - handle update when some mailing lists have been created  
   by newer Mailman than this one  
   
 * Mon Mar 16 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-22  
 - fix #1095359 - add support for DMARC  
   
 * Tue Feb 03 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-21  
 - fix #1056366 - fix bad subject of the welcome email when creating list using  
   newlist command  
   
 * Fri Jan 30 2015 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-20  
 - fix #745409 - do not set Indexes in httpd configuration for public archive  
 - fix #1008139 - fix traceback when list_data_dir is not a child of var_prefix  
   
 * Mon Dec 01 2014 Jan Kaluza <jkaluza@redhat.com> 3:2.1.12-19  
 - fix #765807 - fix traceback when message is received to moderated list  
   
536  * Fri Jun 20 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3:2.1.12-25.sme  * Fri Jun 20 2014 Stephane de Labrusse <stephdl@de-labrusse.fr> 3:2.1.12-25.sme
537  - changed cgi user and cgi group to www for SME Server 9.0  - changed cgi user and cgi group to www
538  - last version modified is 3:2.1.12-18  - last version modified is 3:2.1.12-18
539    
540  * 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


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