2006-12-14 17:20:47 +01:00
|
|
|
#
|
2011-04-20 13:35:59 +02:00
|
|
|
# spec file for package keyutils
|
2006-12-14 17:20:47 +01:00
|
|
|
#
|
2018-02-26 10:45:38 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-14 17:20:47 +01:00
|
|
|
#
|
2008-11-17 17:10:21 +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-14 17:20:47 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: keyutils
|
2011-09-22 17:57:03 +02:00
|
|
|
%define lname libkeyutils1
|
2011-09-22 18:43:35 +02:00
|
|
|
Url: http://people.redhat.com/~dhowells/keyutils/
|
2006-12-14 17:20:47 +01:00
|
|
|
Summary: Linux Key Management Utilities
|
2018-10-29 17:45:56 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2012-04-11 10:24:13 +02:00
|
|
|
Group: System/Kernel
|
2018-10-29 16:38:39 +01:00
|
|
|
Version: 1.5.11
|
2012-04-11 10:24:13 +02:00
|
|
|
Release: 0
|
2006-12-14 17:20:47 +01:00
|
|
|
Source0: http://people.redhat.com/~dhowells/keyutils/%name-%version.tar.bz2
|
2009-12-16 09:10:15 +01:00
|
|
|
Source1: baselibs.conf
|
2018-10-29 17:45:56 +01:00
|
|
|
Source2: http://people.redhat.com/~dhowells/keyutils/%name-%version.tar.bz2.sig
|
|
|
|
Source3: %name.keyring
|
2008-11-28 15:20:18 +01:00
|
|
|
Patch1: request-key-cifs.patch
|
2015-02-04 14:47:36 +01:00
|
|
|
Patch2: request-key-nfs4.patch
|
|
|
|
Patch3: keyutils-nodate.patch
|
2017-03-29 14:12:11 +02:00
|
|
|
Patch4: keyutils-usr-move.patch
|
2019-03-04 11:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(krb5)
|
2006-12-14 17:20:47 +01:00
|
|
|
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.
|
|
|
|
|
2011-09-22 17:57:03 +02:00
|
|
|
%package -n %lname
|
2006-12-14 17:20:47 +01:00
|
|
|
Summary: Key utilities library
|
|
|
|
Group: System/Kernel
|
2011-09-22 17:57:03 +02:00
|
|
|
Obsoletes: keyutils-libs < %version-%release
|
|
|
|
Provides: keyutils-libs = %version-%release
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2011-09-22 17:57:03 +02:00
|
|
|
%description -n %lname
|
2006-12-14 17:20:47 +01:00
|
|
|
This package provides a wrapper library for the key management facility
|
|
|
|
system calls.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development package for building linux key management utilities
|
|
|
|
Group: System/Kernel
|
2012-04-11 10:24:13 +02:00
|
|
|
Requires: %lname = %version
|
|
|
|
Requires: glibc-devel
|
2006-12-14 17:20:47 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides headers and libraries for building key utilities.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-09-22 18:43:35 +02:00
|
|
|
%patch1 -p0
|
2015-02-04 14:47:36 +01:00
|
|
|
%patch2 -p1
|
2012-04-11 10:24:13 +02:00
|
|
|
%patch3 -p1
|
2017-03-29 14:12:11 +02:00
|
|
|
%patch4 -p1
|
2006-12-14 17:20:47 +01:00
|
|
|
|
|
|
|
%build
|
2013-07-29 10:38:34 +02:00
|
|
|
make %{?_smp_mflags} NO_ARLIB=1 CFLAGS="%{optflags}" CC="%__cc"
|
2006-12-14 17:20:47 +01:00
|
|
|
|
|
|
|
%install
|
2017-03-29 14:12:11 +02:00
|
|
|
make install NO_ARLIB=1 DESTDIR=%{buildroot} BINDIR=/%{_bindir} SBINDIR=/%{_sbindir} LIBDIR=/%{_libdir} USRLIBDIR=%{_libdir}
|
|
|
|
mkdir -p %{buildroot}/bin %{buildroot}/sbin
|
|
|
|
ln -s /%{_bindir}/keyctl %{buildroot}/bin
|
|
|
|
ln -s /%{_sbindir}/key.dns_resolver %{buildroot}/sbin
|
|
|
|
ln -s /%{_sbindir}/request-key %{buildroot}/sbin
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2011-09-22 17:57:03 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2011-09-22 17:57:03 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2006-12-14 17:20:47 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2018-02-26 10:45:38 +01:00
|
|
|
%license LICENCE.GPL
|
|
|
|
%doc README
|
2006-12-14 17:20:47 +01:00
|
|
|
/sbin/*
|
|
|
|
/bin/*
|
2017-03-29 14:12:11 +02:00
|
|
|
/%{_sbindir}/*
|
|
|
|
/%{_bindir}/*
|
2013-07-29 10:38:34 +02:00
|
|
|
%{_datadir}/keyutils
|
2006-12-14 17:20:47 +01:00
|
|
|
%{_mandir}/*/*
|
2013-07-29 10:38:34 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/request-key.conf
|
|
|
|
%dir %{_sysconfdir}/request-key.d/
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2011-09-22 17:57:03 +02:00
|
|
|
%files -n %lname
|
2006-12-14 17:20:47 +01:00
|
|
|
%defattr(-,root,root,-)
|
2018-02-26 10:45:38 +01:00
|
|
|
%license LICENCE.LGPL
|
2017-03-29 14:12:11 +02:00
|
|
|
/%{_libdir}/libkeyutils.so.*
|
2006-12-14 17:20:47 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2013-07-29 10:38:34 +02:00
|
|
|
%{_libdir}/libkeyutils.so
|
2006-12-14 17:20:47 +01:00
|
|
|
%{_includedir}/*
|
|
|
|
|
2008-04-10 14:21:03 +02:00
|
|
|
%changelog
|