--- rpms/smeserver-mailman/contribs10/smeserver-mailman.spec 2021/02/22 17:02:30 1.2 +++ rpms/smeserver-mailman/contribs10/smeserver-mailman.spec 2021/06/03 07:49:13 1.4 @@ -1,4 +1,4 @@ -# $Id: smeserver-mailman.spec,v 1.1 2021/01/01 10:30:06 brianr Exp $ +# $Id: smeserver-mailman.spec,v 1.3 2021/02/22 17:16:35 jpp Exp $ # Authority: gordonr # Name: Gordon Rowell @@ -9,7 +9,7 @@ Summary: Mailman configuration for SME s %define name smeserver-mailman Name: %{name} %define version 1.5.0 -%define release 8 +%define release 9 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -32,6 +32,9 @@ Patch1: smeserver-mailman-1.5.0-locale-2 Add Mailman integration to the SME server. %changelog +* Thu Jun 03 2021 Jean-Philippe Pialasse 1.5.0-9.sme +- fix conflicting folders [SME: 11278] + * Mon Feb 22 2021 JP Pialasse 1.5.0-8.sme - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, by assuming the date is correct and changing the weekday. @@ -321,14 +324,10 @@ rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f e-smith-%{version}-filelist /sbin/e-smith/genfilelist \ - --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \ - --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \ --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \ --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ - --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ - --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ --dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ @@ -342,25 +341,23 @@ rm -f e-smith-%{version}-filelist --dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \ $RPM_BUILD_ROOT > %{name}-%{version}-filelist -# SME8 build to avoid error -#/usr/lib/rpm/brp-python-bytecompile -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc -#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo -#rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyc -#rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyo -#rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyc -#rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyo +sed -i -e '/\/usr\/lib\/mailman$/d ; /\/usr\/lib\/mailman\/bin$/d ; /\/usr\/lib\/mailman\/Mailman$/d ; /\/usr\/lib\/mailman\/Mailman\/MTA$/d ' %{name}-%{version}-filelist +#those will conflict with mailman rpm on sme10 +# --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \ +# --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \ +# --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ +# --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ -# fixe for unwanted listed compiled python files + +# SME10 to avoid error +#/usr/lib/rpm/brp-python-bytecompile +# fix for unwanted listed compiled python files +# those pyc and pyo gets added by default by genfilelist, so need to filtering them out when we disable byte compile. +#"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc" +#"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo" +#/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist -#rm -rf %{name}-%{version}-filelist.tmp %clean rm -rf $RPM_BUILD_ROOT