SHA256
3
0
forked from pool/utempter
utempter/utempter.spec

80 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package utempter (Version 0.5.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: utempter
%define utmpGroup tty
Version: 0.5.5
Release: 142
Summary: A privileged helper for utmp and wtmp updates
License: MIT
Group: Productivity/Security
# bug437293
%ifarch ppc64
Obsoletes: utempter-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: utempter-%{version}.tar.gz
Source2: baselibs.conf
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 %{?jobs:-j%jobs} 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/*
%changelog