1 |
# $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 $ |
2 |
# Authority: gordonr |
# Authority: gordonr |
3 |
# Name: Gordon Rowell |
# Name: Gordon Rowell |
4 |
|
|
9 |
%define name smeserver-mailman |
%define name smeserver-mailman |
10 |
Name: %{name} |
Name: %{name} |
11 |
%define version 1.5.0 |
%define version 1.5.0 |
12 |
%define release 8 |
%define release 9 |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
License: GPL |
License: GPL |
32 |
Add Mailman integration to the SME server. |
Add Mailman integration to the SME server. |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
|
* Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme |
36 |
|
- fix conflicting folders [SME: 11278] |
37 |
|
|
38 |
* Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme |
* Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme |
39 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
40 |
by assuming the date is correct and changing the weekday. |
by assuming the date is correct and changing the weekday. |
324 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
325 |
rm -f e-smith-%{version}-filelist |
rm -f e-smith-%{version}-filelist |
326 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
|
--dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \ |
|
|
--dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \ |
|
327 |
--dir '/var/spool/mailman' 'attr(02775,root,mailman)' \ |
--dir '/var/spool/mailman' 'attr(02775,root,mailman)' \ |
328 |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
329 |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
330 |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,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)' \ |
|
331 |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ |
332 |
--dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ |
333 |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
341 |
--dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \ |
342 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
343 |
|
|
344 |
# SME8 build to avoid error |
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 |
345 |
#/usr/lib/rpm/brp-python-bytecompile |
#those will conflict with mailman rpm on sme10 |
346 |
#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc |
# --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \ |
347 |
#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo |
# --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \ |
348 |
#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc |
# --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ |
349 |
#rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo |
# --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ |
|
#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 |
|
350 |
|
|
351 |
# fixe for unwanted listed compiled python files |
|
352 |
|
# SME10 to avoid error |
353 |
|
#/usr/lib/rpm/brp-python-bytecompile |
354 |
|
# fix for unwanted listed compiled python files |
355 |
|
# those pyc and pyo gets added by default by genfilelist, so need to filtering them out when we disable byte compile. |
356 |
|
#"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc" |
357 |
|
#"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo" |
358 |
|
#/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc |
359 |
cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp |
cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp |
360 |
cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist |
cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist |
|
#rm -rf %{name}-%{version}-filelist.tmp |
|
361 |
|
|
362 |
%clean |
%clean |
363 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |