forked from pool/utempter
Accepting request 162745 from home:namtrac:bugfix
- Add Source URL, see https://en.opensuse.org/SourceUrls OBS-URL: https://build.opensuse.org/request/show/162745 OBS-URL: https://build.opensuse.org/package/show/Base:System/utempter?expand=0&rev=18
This commit is contained in:
parent
69ac5d9d28
commit
5072d52006
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 5 10:01:05 UTC 2013 - idonmez@suse.com
|
||||
|
||||
- Add Source URL, see https://en.opensuse.org/SourceUrls
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 15 08:59:16 UTC 2011 - andrea.turrini@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package utempter
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 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
|
||||
@ -15,13 +15,11 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: utempter
|
||||
%define utmpGroup utmp
|
||||
Version: 0.5.5
|
||||
Release: 152
|
||||
Release: 0
|
||||
Summary: A privileged helper for utmp and wtmp updates
|
||||
License: MIT
|
||||
Group: Productivity/Security
|
||||
@ -29,30 +27,24 @@ Group: Productivity/Security
|
||||
%ifarch ppc64
|
||||
Obsoletes: utempter-64bit
|
||||
%endif
|
||||
#
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: utempter-%{version}.tar.gz
|
||||
%define _hash a628f149132e2f729bc4601e6a4f6c29
|
||||
Source: http://pkgs.fedoraproject.org/repo/pkgs/%{name}/%{name}-%{version}.tar.gz/%{_hash}/%{name}-%{version}.tar.gz
|
||||
Source2: baselibs.conf
|
||||
Patch0: utempter.eal3.diff
|
||||
Patch1: utempter-0.5.5-pie.diff
|
||||
Patch2: utempter-ppc64.patch
|
||||
#
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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
|
||||
|
||||
%package devel
|
||||
License: MIT
|
||||
Summary: Development files for utempter
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
Summary: Development files for utempter
|
||||
|
||||
%description devel
|
||||
Utempter is a privileged helper for utmp and wtmp updates. This
|
||||
@ -65,11 +57,11 @@ package contains the development files needed.
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
|
||||
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" CC="gcc"
|
||||
|
||||
%install
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
make PREFIX=$DESTDIR LIBDIR=%_libdir install
|
||||
export DESTDIR=%{buildroot}
|
||||
make PREFIX=$DESTDIR LIBDIR=%{_libdir} install
|
||||
chmod 755 $DESTDIR%{_libdir}/libutempter.so*
|
||||
/sbin/ldconfig -n $DESTDIR%{_libdir}
|
||||
|
||||
@ -77,19 +69,16 @@ chmod 755 $DESTDIR%{_libdir}/libutempter.so*
|
||||
|
||||
%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(02755, root, %{utmpGroup}) %{_sbindir}/utempter
|
||||
%attr(555,root,root) %{_libdir}/libutempter.so.*
|
||||
%attr(444,root,root) %doc /usr/share/man/man8/*
|
||||
%attr(444,root,root) %doc %{_mandir}/man8/*
|
||||
|
||||
%files devel
|
||||
%defattr(444,root,root,755)
|
||||
%attr(555,root,root) %{_libdir}/libutempter.so
|
||||
%attr(444,root,root) /usr/include/utempter.h
|
||||
%attr(444,root,root) %{_includedir}/utempter.h
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user