File majordomo.spec of Package majordomo.import5145

# spec file for package majordomo
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           majordomo
BuildRequires:  pam-devel
License:        individual distribution permission.
Group:          Productivity/Networking/Email/Mailinglists
Summary:        Mailing List Software
AutoReqProv:    on
Version:        1.94.5
Release:        464.<RELEASE465>
Source:         majordomo-%{version}.tar.gz
Source1:        majordomo-wrapper.8.tgz
Patch0:         majordomo-%{version}.SuSE.diff
Patch1:         majordomo-%{version}.hostile_adress.patch
Patch2:         majordomo-%{version}.decl.patch
Patch3:         majordomo-%{version}.destdir.patch
Patch4:         majordomo-%{version}.fix-split-no-longer-assigning-to-_-bnc-716393.patch
PreReq:         /usr/sbin/useradd /usr/sbin/groupadd permissions
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Majordomo provides an easy to configure means of maintaining mailing

    D. Brent Chapman <Brent@GreatCircle.COM>
    Alan Millar <>
    Paul Haas <>
    Jon Luini <>
    John P. Rouillard <>

%setup -a 1
%patch4 -p1

make wrapper

#/usr/sbin/groupadd -g 28 -o -r mdom 2> /dev/null || :
#/usr/sbin/useradd -r -o -g mdom -u 28 -s /bin/bash -c "Mailing list agent" \
# -d /usr/lib/majordomo mdom 2> /dev/null || :
mkdir -p -m 755 $RPM_BUILD_ROOT/etc
mkdir -p -m 755 $RPM_BUILD_ROOT/usr/bin
mkdir -p -m 755 $RPM_BUILD_ROOT/%_mandir/{man1,man8}
mkdir -p -m 755 $RPM_BUILD_ROOT/usr/lib/majordomo
mkdir -p -m 755 $RPM_BUILD_ROOT/var/lib/majordomo{,/lists,/archive,/digest,/tmp}
touch $RPM_BUILD_ROOT/var/lib/majordomo/Log
#chmod 660 $RPM_BUILD_ROOT/var/lib/majordomo/Log
#chown mdom:mdom -R $RPM_BUILD_ROOT/var/lib/majordomo
make DESTDIR=$RPM_BUILD_ROOT MAN=%{_mandir} install install-wrapper
mv README README.majordomo
gzip -f $RPM_BUILD_ROOT%{_mandir}/man1/approve.1
gzip -f $RPM_BUILD_ROOT%{_mandir}/man1/bounce-remind.1
gzip -f $RPM_BUILD_ROOT%{_mandir}/man1/bounce.1
gzip -f $RPM_BUILD_ROOT%{_mandir}/man1/digest.1
gzip -f $RPM_BUILD_ROOT%{_mandir}/man1/resend.1
gzip -f $RPM_BUILD_ROOT%{_mandir}/man8/majordomo.8

/usr/sbin/groupadd -g 28 -o -r mdom 2> /dev/null || :
/usr/sbin/useradd -r -o -g mdom -u 28 -s /bin/bash -c "Mailing list agent" \
-d /usr/lib/majordomo mdom 2> /dev/null || :

%verify_permissions -e /usr/lib/majordomo/wrapper


%doc README.majordomo README.linux
%dir /usr/lib/majordomo/Tools
%dir /usr/lib/majordomo
%dir %attr(755,mdom,mdom) /var/lib/majordomo
%dir %attr(755,mdom,mdom) /var/lib/majordomo/archive
%dir %attr(755,mdom,mdom) /var/lib/majordomo/digest
%dir %attr(755,mdom,mdom) /var/lib/majordomo/lists
%dir %attr(755,mdom,mdom) /var/lib/majordomo/tmp
%config /etc/
%verify(not mode) %attr(4750,root,daemon) /usr/lib/majordomo/wrapper
%attr(660,mdom,mdom) /var/lib/majordomo/Log

openSUSE Build Service is sponsored by