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
|
|
|
#
|
2014-08-21 15:05:37 +02:00
|
|
|
# Copyright (c) 2014 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/
|
|
|
|
#
|
|
|
|
|
2008-04-10 15:35:51 +02:00
|
|
|
|
2013-06-20 11:49:51 +02:00
|
|
|
%define lname libutempter0
|
2006-12-19 00:18:07 +01:00
|
|
|
Name: utempter
|
2010-11-16 14:35:53 +01:00
|
|
|
%define utmpGroup utmp
|
2013-06-20 11:49:51 +02:00
|
|
|
Version: 1.1.6
|
2013-04-05 20:31:36 +02:00
|
|
|
Release: 0
|
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
|
2013-06-20 11:49:51 +02:00
|
|
|
Url: ftp://ftp.altlinux.org/pub/people/ldv/utempter/
|
|
|
|
Source: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%name-%version.tar.bz2
|
|
|
|
Source1: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%name-%version.tar.bz2.asc
|
2009-12-27 10:50:53 +01:00
|
|
|
Source2: baselibs.conf
|
2013-06-20 11:49:51 +02:00
|
|
|
Source3: %name.keyring
|
2010-06-03 14:47:12 +02:00
|
|
|
Patch0: utempter.eal3.diff
|
2013-06-20 11:49:51 +02:00
|
|
|
Patch1: utempter-no-staticlib.patch
|
2013-06-21 09:17:38 +02:00
|
|
|
# will be checked by source service
|
|
|
|
#BuildRequires: gpg-offline
|
2013-06-20 11:49:51 +02:00
|
|
|
|
2013-04-05 20:31:36 +02:00
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
2010-09-10 15:03:04 +02:00
|
|
|
%package devel
|
2013-04-05 20:31:36 +02:00
|
|
|
Summary: Development files for utempter
|
2010-09-10 15:03:04 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-06-20 11:49:51 +02:00
|
|
|
Requires: %lname = %{version}
|
2010-09-10 15:03:04 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2013-06-20 11:49:51 +02:00
|
|
|
%package -n %lname
|
|
|
|
Summary: Shared library of utempter
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
PreReq: permissions
|
|
|
|
Provides: utempter = %version
|
|
|
|
Obsoletes: utempter <= 0.5.5
|
|
|
|
Requires: %{name}
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
Utempter is a privileged helper for utmp and wtmp updates. This
|
|
|
|
package contains the library used by applications.
|
|
|
|
|
2006-12-19 00:18:07 +01:00
|
|
|
%prep
|
2013-06-20 11:49:51 +02:00
|
|
|
%setup -q -n lib%name-%version
|
2010-06-03 14:47:12 +02:00
|
|
|
%patch0 -p1
|
2013-06-20 11:49:51 +02:00
|
|
|
%patch1 -p1
|
2006-12-19 00:18:07 +01:00
|
|
|
|
|
|
|
%build
|
2013-06-20 11:49:51 +02:00
|
|
|
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags} -fPIC" CC="gcc"
|
2006-12-19 00:18:07 +01:00
|
|
|
|
|
|
|
%install
|
2013-04-05 20:31:36 +02:00
|
|
|
export DESTDIR=%{buildroot}
|
2013-06-20 11:49:51 +02:00
|
|
|
make PREFIX=$DESTDIR libdir=%{_libdir} DESTDIR=%{buildroot} install
|
2006-12-19 00:18:07 +01:00
|
|
|
chmod 755 $DESTDIR%{_libdir}/libutempter.so*
|
|
|
|
/sbin/ldconfig -n $DESTDIR%{_libdir}
|
|
|
|
|
2013-06-20 11:49:51 +02:00
|
|
|
%verifyscript -n %lname
|
|
|
|
%verify_permissions -e /usr/lib/utempter/utempter
|
2006-12-19 00:18:07 +01:00
|
|
|
|
2013-06-20 11:49:51 +02:00
|
|
|
%post -n %lname
|
|
|
|
%set_permissions /usr/lib/utempter/utempter
|
|
|
|
/sbin/ldconfig
|
2006-12-19 00:18:07 +01:00
|
|
|
|
2013-06-20 11:49:51 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(644,root,root,755)
|
2006-12-19 00:18:07 +01:00
|
|
|
%doc COPYING
|
2013-06-20 11:49:51 +02:00
|
|
|
%dir /usr/lib/utempter
|
|
|
|
%attr(02755, root, %{utmpGroup}) /usr/lib/utempter/utempter
|
|
|
|
%attr(755,root,root) %{_libdir}/libutempter.so.*
|
|
|
|
%attr(644,root,root) %doc %{_mandir}/man8/*
|
2006-12-19 00:18:07 +01:00
|
|
|
|
2010-09-10 15:03:04 +02:00
|
|
|
%files devel
|
2013-06-20 11:49:51 +02:00
|
|
|
%doc COPYING
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%attr(755,root,root) %{_libdir}/libutempter.so
|
|
|
|
%attr(644,root,root) %{_includedir}/utempter.h
|
|
|
|
%attr(644,root,root) %doc %{_mandir}/man3/*
|
2010-09-10 15:03:04 +02:00
|
|
|
|
2008-04-10 15:35:51 +02:00
|
|
|
%changelog
|