- Create 'utempter' group with official allocated GID==35 (from setup
package).
This commit is contained in:
parent
a71a99b237
commit
d280e77ce1
@ -1,10 +1,9 @@
|
||||
%define utempter_compat_ver 0.5.2
|
||||
%define helperdir %{_libexecdir}/utempter
|
||||
|
||||
Summary: A privileged helper for utmp/wtmp updates
|
||||
Name: libutempter
|
||||
Version: 1.1.4
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: LGPL
|
||||
Group: System Environment/Libraries
|
||||
URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter
|
||||
@ -51,18 +50,16 @@ make install DESTDIR="$RPM_BUILD_ROOT" libdir="%{_libdir}" libexecdir="%{_libexe
|
||||
|
||||
|
||||
# NOTE: Static lib intentionally disabled.
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libutempter.a
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre
|
||||
%{_sbindir}/groupadd -g 22 -r -f utmp || :
|
||||
# FIXME: This should be a statically assigned group number, allocated from
|
||||
# Bill Nottingham. Once the package has been approved and a group allocated,
|
||||
# I will update this to specify the proper GID.
|
||||
%{_sbindir}/groupadd -r -f utempter
|
||||
#%{_sbindir}/groupadd -g $REDHAT_ALLOCATED_GID -r -f utempter
|
||||
{
|
||||
%{_sbindir}/groupadd -g 22 -r -f utmp || :
|
||||
%{_sbindir}/groupadd -g 35 -r -f utempter || :
|
||||
}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
@ -72,9 +69,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc COPYING README
|
||||
%{_libdir}/libutempter.so.0
|
||||
%{_libdir}/libutempter.so.1.1.4
|
||||
#/usr/libexec/utempter/utempter
|
||||
%attr(710,root,utempter) %dir %{_libexecdir}/utempter
|
||||
%attr(2711,root,utmp) %helperdir/utempter
|
||||
%dir %attr(710,root,utempter) %{_libexecdir}/utempter
|
||||
%attr(2711,root,utmp) %{_libexecdir}/utempter/utempter
|
||||
# FIXME: If a symlink is needed for compat here, uncomment the code in the
|
||||
# install section and this as well:
|
||||
#%{_sbindir}/utempter
|
||||
@ -85,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libutempter.so
|
||||
|
||||
%changelog
|
||||
* Thu Jul 27 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-3.fc6
|
||||
- Create 'utempter' group with official allocated GID==35 (from setup package).
|
||||
|
||||
* Tue Jul 25 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-2.fc6
|
||||
- Removed usage of rpm macros inside the spec changelog (#200051)
|
||||
- Removed non-UTF-8 chars from changelog.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user