Adapt spec file for the merge of smeserver-mailman

tags/0.2.0_el5
Daniel Berteaud 11 years ago
parent d443f3655b
commit 1a288e1c1d
  1. 47
      ipasserelle-listes.spec

@ -1,7 +1,10 @@
%define version 0.1.1
%define release 1
%define version 0.2.0
%define release 1.beta3
%define name ipasserelle-listes
# Prevent .py bytecompile
%define __os_install_post %{nil}
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
@ -17,6 +20,7 @@ BuildArch: noarch
BuildRequires: e-smith-devtools
Requires: ipasserelle-base
Requires: mailman
Provides: smeserver-mailman
Obsoletes: smeserver-mailman
@ -25,6 +29,9 @@ iPasserelle module for the mailing list service
Includes (most of) smeserver-mailman
%changelog
* Tue Jul 29 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.2.0-1.sme
- Merge smeserver-mailman, and obsolete it
* Sat Jun 9 2012 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1.sme
- Build for noarch
- Migrate to GIT
@ -37,22 +44,54 @@ Includes (most of) smeserver-mailman
%build
perl ./createlinks
mkdir -p root/usr/lib/mailman/aliases
ln -s /usr/lib/mailman root/opt/mailman
mkdir -p root/var/spool/mailman/qfiles
for dir in archive bounces commands in news out retry shunt virgin
do
mkdir -p root/var/spool/mailman/qfiles/$dir
done
%install
rm -rf $RPM_BUILD_ROOT
rm -f %{name}-%{version}-filelist
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/sbin/e-smith/genfilelist \
--file /var/service/mailman/qrunner 'attr(0755,root,root)' \
--file /var/service/mailman/run 'attr(0755,root,root)' \
--file '/var/service/mailman/qrunner' 'attr(0755,root,root)' \
--file '/var/service/mailman/run' 'attr(0755,root,root)' \
--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)' \
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \
--dir '/var/spool/mailman/qfiles/in' 'attr(02770,mailman,mailman)' \
--dir '/var/spool/mailman/qfiles/news' 'attr(02770,mailman,mailman)' \
--dir '/var/spool/mailman/qfiles/out' 'attr(02770,mailman,mailman)' \
--dir '/var/spool/mailman/qfiles/retry' 'attr(02770,mailman,mailman)' \
--dir '/var/spool/mailman/qfiles/shunt' 'attr(02770,mailman,mailman)' \
--dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
echo "%doc CHANGELOG.git" >> %{name}-%{version}-%{release}-filelist
# fixe for unwanted listed compiled python files
sed -i -e '/py[oc]$/d' %{name}-%{version}-%{release}-filelist
%files -f %{name}-%{version}-%{release}-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%pre
/sbin/e-smith/create-system-user mailman 41 \
"Mailman user" /usr/lib/mailman /bin/false
%post
%postun

Loading…
Cancel
Save