2006-12-19 00:18:07 +01:00
|
|
|
#
|
|
|
|
# spec file for package utempter (Version 0.5.5)
|
|
|
|
#
|
2008-04-10 15:35:51 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:18:07 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 15:35:51 +02:00
|
|
|
|
2006-12-19 00:18:07 +01:00
|
|
|
Name: utempter
|
|
|
|
%define utmpGroup tty
|
|
|
|
Version: 0.5.5
|
2008-04-10 15:35:51 +02:00
|
|
|
Release: 105
|
2006-12-19 00:18:07 +01:00
|
|
|
Summary: A privileged helper for utmp and wtmp updates
|
|
|
|
License: X11/MIT
|
|
|
|
Group: Productivity/Security
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: utempter-%{version}.tar.gz
|
|
|
|
Patch: utempter.eal3.diff
|
|
|
|
Patch1: utempter-0.5.5-pie.diff
|
|
|
|
|
|
|
|
%description
|
|
|
|
Utempter is a utility that allows non-privileged applications such as
|
|
|
|
terminal emulators to modify the utmp database without having to be
|
|
|
|
setuid root.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Redhat
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch -p1
|
|
|
|
%patch1
|
|
|
|
|
|
|
|
%build
|
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make PREFIX=$DESTDIR LIBDIR=%_libdir install
|
|
|
|
chmod 755 $DESTDIR%{_libdir}/libutempter.so*
|
|
|
|
/sbin/ldconfig -n $DESTDIR%{_libdir}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(444,root,root,755)
|
|
|
|
%doc COPYING
|
|
|
|
%attr(02755, root, %{utmpGroup}) /usr/sbin/utempter
|
|
|
|
%attr(555,root,root) %{_libdir}/libutempter.so*
|
|
|
|
%attr(444,root,root) /usr/include/utempter.h
|
|
|
|
%attr(444,root,root) %doc /usr/share/man/man8/*
|
|
|
|
|
2008-04-10 15:35:51 +02:00
|
|
|
%changelog
|
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
|
|
|
* Sun May 28 2006 schwab@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- Don't strip binaries.
|
2008-04-10 15:35:51 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-04-10 15:35:51 +02:00
|
|
|
* Mon Jun 20 2005 kukuk@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- Compile with -fpie/-pie
|
2008-04-10 15:35:51 +02:00
|
|
|
* Thu Aug 05 2004 okir@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- Updated to latest upstream version
|
2008-04-10 15:35:51 +02:00
|
|
|
* Tue Apr 20 2004 okir@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- Fix incorrect check for /../ in path names (#39169)
|
2008-04-10 15:35:51 +02:00
|
|
|
* Fri Jan 16 2004 thomas@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- added man-page utempter.8 (EAL3)
|
2008-04-10 15:35:51 +02:00
|
|
|
* Sun Jan 11 2004 adrian@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- add %%run_ldconfig
|
2008-04-10 15:35:51 +02:00
|
|
|
* Fri Apr 12 2002 okir@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- well, if the files list says %%_libdir, one should make sure
|
|
|
|
the shared lib really goes to in %%_libdir :)
|
2008-04-10 15:35:51 +02:00
|
|
|
* Fri Mar 08 2002 kukuk@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- Create libutemtper.so.0 link and include it in RPM [Bug #14672]
|
2008-04-10 15:35:51 +02:00
|
|
|
* Tue Jan 29 2002 okir@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- %%files list uses %%_libdir rather than /usr/lib
|
2008-04-10 15:35:51 +02:00
|
|
|
* Fri Jan 25 2002 okir@suse.de
|
2006-12-19 00:18:07 +01:00
|
|
|
- Initial package.
|