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

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

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

Revision 1.1 by vip-ire, Wed Nov 13 12:55:27 2013 UTC Revision 1.6 by stephdl, Tue Sep 8 12:15:10 2015 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mailman.spec,v 1.10 2013/09/20 15:59:31 unnilennium Exp $  # $Id: smeserver-mailman.spec,v 1.5 2015/09/07 17:27:21 stephdl Exp $
2  # Authority: gordonr  # Authority: gordonr
3  # Name: Gordon Rowell  # Name: Gordon Rowell
4    
# Line 8  Line 8 
8  Summary: Mailman configuration for SME server.  Summary: Mailman configuration for SME server.
9  %define name smeserver-mailman  %define name smeserver-mailman
10  Name: %{name}  Name: %{name}
11  %define version 1.4.0  %define version 1.5.0
12  %define release 1  %define release 5
13  Version: %{version}  Version: %{version}
14  Release: %{release}%{?dist}  Release: %{release}%{?dist}
15  License: GPL  License: GPL
16  Group: Applications/Internet  Group: Applications/Internet
17  Source: %{name}-%{version}.tar.xz  Source: %{name}-%{version}.tar.gz
18  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19  BuildArchitectures: noarch  BuildArchitectures: noarch
20  Requires: e-smith-base  Requires: e-smith-base
21  Requires: e-smith-release >= 8.0  Requires: e-smith-release >= 9.0
22  Requires: mailman >= 2.1.9-20.el5.sme  Requires: mailman >= 2.1.9-20.el5.sme
23  Requires: e-smith-formmagick >= 1.4.0-12  Requires: e-smith-formmagick >= 1.4.0-12
24  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
# Line 30  AutoReqProv: no Line 30  AutoReqProv: no
30  Add Mailman integration to the SME server.  Add Mailman integration to the SME server.
31    
32  %changelog  %changelog
33  * Wed Nov 13 2013 Daniel Berteaud <daniel@firewall-services.com> 1.4.0-1.sme  * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme
34  - Rebuild for SME9  - mailman wants that the group apache appears before the www group in /etc/group
35    - script added in %pre to change that order. [SME: 8056]
36    
37    * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-3.sme
38    - Initial release to contribs9 [SME: 8453]
39    
40    * Fri Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme
41    - Initial release to sme9
42    
43  * Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme  * Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme
44  - fix bug [SME: 7787]  - fix bug [SME: 7787]
# Line 275  Add Mailman integration to the SME serve Line 282  Add Mailman integration to the SME serve
282  %prep  %prep
283  %setup  %setup
284    
285  /bin/rm -r root/opt/mailman  #/bin/rm -r root/opt/mailman
286    
287  %build  %build
288  perl createlinks  perl createlinks
# Line 316  rm -f e-smith-%{version}-filelist Line 323  rm -f e-smith-%{version}-filelist
323      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
324      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
325    
326    # SME8 build to avoid error
327    #/usr/lib/rpm/brp-python-bytecompile
328    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
329    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
330    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
331    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
332    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
333    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
334    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
335    #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo
336    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyc
337    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyo
338    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyc
339    #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyo
340    
341  # fixe for unwanted listed compiled python files  # fixe for unwanted listed compiled python files
342  cat %{name}-%{version}-filelist |sed '/py[oc]$/d'>%{name}-%{version}-filelist.tmp  cat %{name}-%{version}-filelist |sed '/py[oc]$/d'>%{name}-%{version}-filelist.tmp
343  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
# Line 332  rm -rf $RPM_BUILD_ROOT Line 354  rm -rf $RPM_BUILD_ROOT
354  /sbin/e-smith/create-system-user mailman 41 \  /sbin/e-smith/create-system-user mailman 41 \
355      "Mailman user" /usr/lib/mailman /bin/false      "Mailman user" /usr/lib/mailman /bin/false
356    
357    #mailman wants that the apache group appears  before the www group in /etc/group [SME: 8056]
358    TEST=$(grep -P '^www|apache' /etc/group)
359    TEST2='www:x:102:admin
360    apache:x:102:'
361    
362    if [[ $TEST == $TEST2 ]]; then
363        WWW=$(sed -n '/^www/p' /etc/group)
364        sed -i '/^www/d' /etc/group
365        echo $WWW >> /etc/group
366    fi
367    
368  %post  %post
369    
370  %preun  %preun


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