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