d52093
%define utempter_compat_ver 0.5.2
d52093
d52093
Summary: A privileged helper for utmp/wtmp updates
d52093
Name: libutempter
d52093
Version: 1.1.6
c6903e
Release: 4%{?dist}
d52093
License: LGPLv2+
d52093
Group: System Environment/Libraries
d52093
URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter
d52093
d52093
Source0: ftp://ftp.altlinux.org/pub/people/ldv/utempter/%{name}-%{version}.tar.bz2
d52093
d52093
# Compile with PIE and RELRO flags.
d52093
Patch0: libutempter-pierelro.patch
d52093
d52093
Requires(pre): shadow-utils
d52093
Requires(post): /sbin/ldconfig
d52093
Requires(postun): /sbin/ldconfig
d52093
d52093
Provides: utempter = %{utempter_compat_ver}
d52093
d52093
%description
d52093
This library provides interface for terminal emulators such as
d52093
screen and xterm to record user sessions to utmp and wtmp files.
d52093
d52093
%package devel
d52093
Summary: Development environment for utempter
d52093
Group: Development/Libraries
d52093
Requires: %{name} = %{version}-%{release}
d52093
d52093
%description devel
d52093
This package contains development files required to build
d52093
utempter-based software.
d52093
d52093
%prep
d52093
%setup -q
d52093
%patch0 -p1 -b .pierelro
d52093
d52093
%build
d52093
make CFLAGS="$RPM_OPT_FLAGS" libdir="%{_libdir}" libexecdir="%{_libexecdir}"
d52093
d52093
%install
d52093
make install DESTDIR="$RPM_BUILD_ROOT" libdir="%{_libdir}" libexecdir="%{_libexecdir}"
d52093
d52093
# FIXME: We might need to enable this part for backward compat with the
d52093
# Red Hat / Fedora 'utempter' package:
d52093
#
d52093
# mkdir -p %{_sbindir}
d52093
# ln -sf %{helperdir}/utempter %{_sbindir}/utempter
d52093
d52093
d52093
# NOTE: Static lib intentionally disabled.
d52093
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
d52093
d52093
%pre
d52093
{
d52093
    %{_sbindir}/groupadd -g 22 -r -f utmp || :
d52093
    %{_sbindir}/groupadd -g 35 -r -f utempter || :
d52093
}
d52093
d52093
%post -p /sbin/ldconfig
d52093
%postun -p /sbin/ldconfig
d52093
d52093
%files
d52093
%doc COPYING README
d52093
%{_libdir}/libutempter.so.0
d52093
%{_libdir}/libutempter.so.1.*
d52093
%dir %attr(755,root,utempter) %{_libexecdir}/utempter
d52093
%attr(2711,root,utmp) %{_libexecdir}/utempter/utempter
d52093
# FIXME: If a symlink is needed for compat here, uncomment the code in the
d52093
# install section and this as well:
d52093
#%{_sbindir}/utempter
d52093
d52093
%files devel
d52093
%{_includedir}/utempter.h
d52093
%{_libdir}/libutempter.so
d52093
%{_mandir}/man3/*
d52093
d52093
%changelog
c6903e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.6-4
c6903e
- Mass rebuild 2014-01-24
c6903e
c6903e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.6-3
c6903e
- Mass rebuild 2013-12-27
c6903e
d52093
* Thu Jan 24 2013 Miroslav Lichvar <mlichvar@redhat.com> - 1.1.6-2
d52093
- compile with PIE and RELRO flags (#853176)
d52093
d52093
* Thu Oct 11 2012 Miroslav Lichvar <mlichvar@redhat.com> - 1.1.6-1
d52093
- update to 1.1.6
d52093
- fix license tag
d52093
- remove unnecessary macros
d52093
d52093
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-7
d52093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d52093
d52093
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-6
d52093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d52093
d52093
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-5
d52093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d52093
d52093
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-4
d52093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d52093
d52093
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
d52093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d52093
d52093
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.5-2
d52093
- Autorebuild for GCC 4.3
d52093
d52093
* Wed Nov 07 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d52093
- 1.1.5-1
d52093
- version upgrade
d52093
- fix #246063
d52093
d52093
* Tue Aug 21 2007 Adam Jackson <ajax@redhat.com> - 1.1.4-4
d52093
- Rebuild for build id
d52093
d52093
* Thu Jul 27 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-3.fc6
d52093
- Create 'utempter' group with official allocated GID==35 (from setup package).
d52093
d52093
* Tue Jul 25 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-2.fc6
d52093
- Removed usage of rpm macros inside the spec changelog (#200051)
d52093
- Removed non-UTF-8 chars from changelog.
d52093
d52093
* Mon Jul 24 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-1.fc6
d52093
- Initial build of Dimitry's libutempter replacement for Fedora Core.
d52093
- Reworked the upstream spec file for Fedora packaging compliance.
d52093
- Removed static lib subpackage as we dont ship those.
d52093
d52093
* Fri Dec 09 2005 Dmitry V. Levin <ldv@altlinux.org> 1.1.4-alt1
d52093
- Enabled almost all diagnostics supported by gcc and fixed all
d52093
  issues found by gcc-3.4.4-alt3.
d52093
- Added FreeBSD support, based on patches from Gentoo/FreeBSD.
d52093
- Makefile:
d52093
  + Fixed few portability issues reported by Gentoo developers.
d52093
- libutempter: Linked with -Wl,-z,defs.
d52093
- utempter:
d52093
  + Fixed struct utmp initialization on 64-bit architectures
d52093
    with 32-bit backwards compatibility enabled (like x86_64).
d52093
  + Linked with -Wl,-z,now, i.e., marked it to tell the dynamic
d52093
    linker to resolve all symbols when the program is started.
d52093
    Suggested by Gentoo developers.
d52093
d52093
* Thu Aug 18 2005 Dmitry V. Levin <ldv@altlinux.org> 1.1.3-alt1
d52093
- Restricted list of global symbols exported by the library.
d52093
- Updated FSF postal address.
d52093
d52093
* Sun Sep 05 2004 Dmitry V. Levin <ldv@altlinux.org> 1.1.2-alt1
d52093
- Added multilib support.
d52093
d52093
* Fri Feb 14 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.1-alt1
d52093
- iface.c: don't block SIGCHLD; redefine signal handler instead.
d52093
d52093
* Mon Dec 23 2002 Dmitry V. Levin <ldv@altlinux.org> 1.1.0-alt1
d52093
- Changed soname back to libutempter.so.0, introduced versioning.
d52093
d52093
* Tue Sep 24 2002 Dmitry V. Levin <ldv@altlinux.org> 1.0.7-alt1
d52093
- If helper execution fails, try saved group ID.
d52093
d52093
* Tue May 21 2002 Dmitry V. Levin <ldv@altlinux.org> 1.0.6-alt1
d52093
- New function: utempter_set_helper.
d52093
d52093
* Mon Dec 10 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.5-alt1
d52093
- iface.c: block SIGCHLD instead of redefine signal handler.
d52093
d52093
* Wed Nov 21 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.4-alt1
d52093
- utempter.h: do not use "__attribute ((unused))".
d52093
d52093
* Tue Nov 13 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.3-alt1
d52093
- Added compatibility declarations to ease upgrade of old applications.
d52093
- Added small README file.
d52093
- Corrected provides.
d52093
d52093
* Thu Nov 08 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.2-alt1
d52093
- Added compatibility library to ease upgrade of old applications.
d52093
d52093
* Mon Nov 05 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.1-alt1
d52093
- Indented code a bit (Solar request).
d52093
d52093
* Mon Oct 15 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.0-alt1
d52093
- Rewritten the code completely.
d52093
- Renamed to libutempter.
d52093
- Corrected the package description.
d52093
- FHSificated (yes, there are no more {_sbindir}/utempter).
d52093
- Libificated.
d52093
d52093
* Fri Oct 12 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.5.2-alt4
d52093
- {_libdir}/utempter sounds better so use it as helper directory.
d52093
d52093
* Thu Oct 11 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.5.2-alt3
d52093
- Specfile cleanup.
d52093
- Owl-compatible changes:
d52093
  + added utempter group;
d52093
  + utempter binary moved to {_libdir}/utempter.d,
d52093
    owned by group utempter with 710 permissions.
d52093
d52093
* Thu Jun 28 2001 Sergie Pugachev <fd_rag@altlinux.ru> 0.5.2-alt1
d52093
- new version
d52093
d52093
* Tue Dec 05 2000 AEN <aen@logic.ru>
d52093
- build for RE
d52093
d52093
* Tue Jul 25 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.5.1-4mdk
d52093
- BM
d52093
d52093
* Fri May 19 2000 Pixel <pixel@mandrakesoft.com> 0.5.1-3mdk
d52093
- add -devel
d52093
- add soname
d52093
- spec helper cleanup
d52093
d52093
* Sat Apr 08 2000 Christopher Molnar <molnarc@mandrakesoft.com> 0.5.1-2mdk
d52093
- changed group
d52093
d52093
* Tue Oct 26 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
d52093
- 0.5.1
d52093
- fix utmp as group 22.
d52093
- strip utempter.
d52093
- defattr to root.
d52093
d52093
* Thu Jun 10 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
d52093
- Mandrake adaptions
d52093
d52093
* Fri Jun  4 1999 Jeff Johnson <jbj@redhat.com>
d52093
- ignore SIGCHLD while processing utmp.