File keyutils.spec of Package keyutils

#
# spec file for package keyutils (Version 1.3)
#
# Copyright (c) 2010 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:           keyutils
Url:            http://people.redhat.com/~dhowells/keyutils/
License:        GPLv2+ ; LGPLv2.1+
Group:          System/Kernel
AutoReqProv:    on
Summary:        Linux Key Management Utilities
Version:        1.4
Release:        1
Source0:        http://people.redhat.com/~dhowells/keyutils/%name-%version.tar.bz2
Source1:        baselibs.conf
Patch1:         request-key-cifs.patch
Patch2:         parallel-make.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Utilities to control the kernel key management facility and to provide
a mechanism by which the kernel can call back to user space to get a
key instantiated.



Authors:
--------
    David Howells <dhowells@redhat.com>

%package libs
License:        GPLv2+ ; LGPLv2.1+
Summary:        Key utilities library
Group:          System/Kernel

%description libs
This package provides a wrapper library for the key management facility
system calls.



Authors:
--------
    David Howells <dhowells@redhat.com>

%package devel
License:        GPLv2+ ; LGPLv2.1+
Summary:        Development package for building linux key management utilities
Group:          System/Kernel
Requires:       %{name}-libs = %{version} glibc-devel 

%description devel
This package provides headers and libraries for building key utilities.



Authors:
--------
    David Howells <dhowells@redhat.com>

%prep
%setup -q
%patch1
%patch2 -p1

%build
make %{?jobs:-j%jobs} NO_ARLIB=1 CFLAGS="$RPM_OPT_FLAGS"

%install
make install NO_ARLIB=1 DESTDIR=$RPM_BUILD_ROOT LIBDIR=/%_lib USRLIBDIR=/usr/%_lib

%post libs -p /sbin/ldconfig 

%postun libs -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc README LICENCE.GPL
/sbin/*
/bin/*
/usr/share/keyutils
%{_mandir}/*/*
%config(noreplace) /etc/*

%files libs
%defattr(-,root,root,-)
%doc LICENCE.LGPL
/%{_lib}/libkeyutils.so.*

%files devel
%defattr(-,root,root,-)
/usr/%{_lib}/libkeyutils.so
%{_includedir}/*

%changelog
openSUSE Build Service is sponsored by