Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Parag Nemade | 838b841b98 | |
Ondřej Vašík | 23beb3faf8 | |
Ondřej Vašík | 60d8a63357 |
|
@ -53,7 +53,7 @@
|
|||
Summary: Implementation of Linux Standard Base specification
|
||||
Name: redhat-lsb
|
||||
Version: 4.1
|
||||
Release: 20%{?dist}
|
||||
Release: 21.1%{?dist}
|
||||
URL: http://www.linuxfoundation.org/collaborate/workgroups/lsb
|
||||
Source0: https://fedorahosted.org/releases/r/e/redhat-lsb/%{name}-%{version}-%{srcrelease}.tar.bz2
|
||||
Patch0: lsb-release-3.1-update-init-functions.patch
|
||||
|
@ -287,6 +287,7 @@ Requires: /usr/sbin/groupmod
|
|||
Requires: /usr/sbin/useradd
|
||||
Requires: /usr/sbin/userdel
|
||||
Requires: /usr/sbin/usermod
|
||||
Requires: /usr/sbin/sendmail
|
||||
Requires: redhat-lsb-submod-security%{?_isa} = %{version}-%{release}
|
||||
|
||||
Provides: lsb-core-%{archname} = %{version}-%{release}
|
||||
|
@ -625,15 +626,6 @@ fi
|
|||
done
|
||||
fi
|
||||
%endif
|
||||
if ! grep -s -q '^hosts: \+files \+dns *$' /etc/nsswitch.conf;then
|
||||
cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf.orig
|
||||
ed -s /etc/nsswitch.conf <<EOF
|
||||
/^hosts: \+files \+/s/.*/hosts: files dns mdns4_minimal/
|
||||
w
|
||||
q
|
||||
EOF
|
||||
cat /etc/nsswitch.conf > %{_datadir}/lsb/nsswitch.conf
|
||||
fi
|
||||
|
||||
%post
|
||||
%ifarch %{ix86}
|
||||
|
@ -644,27 +636,6 @@ fi
|
|||
done
|
||||
fi
|
||||
%endif
|
||||
if ! grep -s -q '^hosts: \+files \+dns *$' /etc/nsswitch.conf;then
|
||||
cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf.orig
|
||||
ed -s /etc/nsswitch.conf <<EOF
|
||||
/^hosts: \+files \+/s/.*/hosts: files dns mdns4_minimal/
|
||||
w
|
||||
q
|
||||
EOF
|
||||
cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf
|
||||
fi
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ];then
|
||||
if [ -e %{_datadir}/lsb/nsswitch.conf -a -e %{_datadir}/lsb/nsswitch.conf.orig ];then
|
||||
if cmp -s %{_datadir}/lsb/nsswitch.conf /etc/nsswitch.conf;then
|
||||
cp /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
|
||||
echo "warning: /etc/nsswitch.conf saved as /etc/nsswitch.conf.rpmsave" >&2
|
||||
cat %{_datadir}/lsb/nsswitch.conf.orig >/etc/nsswitch.conf
|
||||
fi
|
||||
rm -f %{_datadir}/lsb/{nsswitch.conf,nsswitch.conf.orig}
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun submod-security -p <lua>
|
||||
os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules")
|
||||
|
@ -784,6 +755,13 @@ os.remove("%{_datadir}/lsb")
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 01 2014 Parag <pnemade AT redhat DOT com> - 4.1-21.1
|
||||
- Resolves:rh#1133536 - redhat-lsb does not requires /usr/sbin/sendmail
|
||||
|
||||
* Mon Nov 25 2013 Ondrej Vasik <ovasik@redhat.com> - 4.1-21
|
||||
- remove nsswitch handling - broken and unnecessary
|
||||
(#986728, #915147)
|
||||
|
||||
* Tue Aug 13 2013 Ondrej Vasik <ovasik@redhat.com> - 4.1-20
|
||||
- fix the patch for aarch64 support to be not patch of
|
||||
patch but real patch (sorry, simply, fix aarch64 build)
|
||||
|
|
Loading…
Reference in New Issue