File su-wrapper.spec of Package su-wrapper

#
# spec file for package su-wrapper (Version 1.2.0)
#
# Copyright (c) 2008 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:           su-wrapper
Version:        1.2.0
Release:        473
Summary:        su-wrapper Runs Programs as Another User and Group
License:        GPL v2 or later
Group:          System/Base
PreReq:         permissions
AutoReqProv:    on
Source0:        su-wrapper-1.2.0.tar.bz2
Patch:          su-wrapper-1.2.0.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
su-wrapper is a little utility that allows special users to execute
processes under another uid and gid.

It uses a table (/etc/su-wrapper.conf) to decide whatto do in certain
situation. Therefore it walks through the table and tries to match the
current situation (the later entries have precedence).

For more information, read /usr/share/doc/packages/su-wrapper/README.



Authors:
--------
    Enrico Weigelt <weigelt@nibiru.thur.de>
    Werner Fink <werner@suse.de>

%prep
%setup
%patch -p0

%build
  pushd src
  make
  popd

%install
  pushd src
  mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
  make install DESTDIR=${RPM_BUILD_ROOT}
  popd
  mkdir -p ${RPM_BUILD_ROOT}/etc
  install -m 0640 su-wrapper.conf.dist ${RPM_BUILD_ROOT}/etc/su-wrapper.conf

%post
%run_permissions
%verifyscript
%verify_permissions -e /usr/sbin/su-wrapper

%files
%defattr(-, root, root)
%doc doc/COPYING doc/README doc/TODO doc/VERSION
%config /etc/su-wrapper.conf
%verify(not mode) /usr/sbin/su-wrapper

%changelog
* Wed Oct 08 2008 werner@suse.de
- Avoid ordered comparison of pointer with zero (bnc#433373)
* Wed May 17 2006 schwab@suse.de
- Don't strip binaries.
- Don't build as root.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Nov 12 2004 ro@suse.de
- correct permissions handling for su-wrapper
* Wed Sep 18 2002 ro@suse.de
- removed bogus self-provides
* Wed Dec 19 2001 werner@suse.de
- Initial new package: su-wrapper, Version 1.2.0, a simple
  su wrapper
openSUSE Build Service is sponsored by