2006-12-19 00:18:07 +01:00
|
|
|
#
|
2011-10-04 11:24:37 +02:00
|
|
|
# spec file for package utempter
|
2006-12-19 00:18:07 +01:00
|
|
|
#
|
2011-10-04 11:24:37 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:18:07 +01:00
|
|
|
#
|
2009-01-09 02:06:09 +01:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:18:07 +01:00
|
|
|
# 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
|
2010-11-16 14:35:53 +01:00
|
|
|
%define utmpGroup utmp
|
2006-12-19 00:18:07 +01:00
|
|
|
Version: 0.5.5
|
2011-10-04 11:24:37 +02:00
|
|
|
Release: 152
|
2006-12-19 00:18:07 +01:00
|
|
|
Summary: A privileged helper for utmp and wtmp updates
|
2009-12-27 10:50:53 +01:00
|
|
|
License: MIT
|
2006-12-19 00:18:07 +01:00
|
|
|
Group: Productivity/Security
|
2009-01-09 02:06:09 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: utempter-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:18:07 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: utempter-%{version}.tar.gz
|
2009-12-27 10:50:53 +01:00
|
|
|
Source2: baselibs.conf
|
2010-06-03 14:47:12 +02:00
|
|
|
Patch0: utempter.eal3.diff
|
2006-12-19 00:18:07 +01:00
|
|
|
Patch1: utempter-0.5.5-pie.diff
|
2010-06-03 14:47:12 +02:00
|
|
|
Patch2: utempter-ppc64.patch
|
2006-12-19 00:18:07 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2010-09-10 15:03:04 +02:00
|
|
|
%package devel
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Summary: Development files for utempter
|
|
|
|
|
|
|
|
%description devel
|
2011-10-16 09:33:49 +02:00
|
|
|
Utempter is a privileged helper for utmp and wtmp updates. This
|
2010-09-10 15:03:04 +02:00
|
|
|
package contains the development files needed.
|
|
|
|
|
2006-12-19 00:18:07 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-06-03 14:47:12 +02:00
|
|
|
%patch0 -p1
|
2006-12-19 00:18:07 +01:00
|
|
|
%patch1
|
2010-06-03 14:47:12 +02:00
|
|
|
%patch2 -p1
|
2006-12-19 00:18:07 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-04 11:24:37 +02:00
|
|
|
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
|
2006-12-19 00:18:07 +01:00
|
|
|
|
|
|
|
%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
|
2010-09-10 15:03:04 +02:00
|
|
|
%attr(555,root,root) %{_libdir}/libutempter.so.*
|
2006-12-19 00:18:07 +01:00
|
|
|
%attr(444,root,root) %doc /usr/share/man/man8/*
|
|
|
|
|
2010-09-10 15:03:04 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(444,root,root,755)
|
|
|
|
%attr(555,root,root) %{_libdir}/libutempter.so
|
|
|
|
%attr(444,root,root) /usr/include/utempter.h
|
|
|
|
|
2008-04-10 15:35:51 +02:00
|
|
|
%changelog
|