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
|
|
|
#
|
2022-06-21 10:30:07 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2019-07-02 07:01:21 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-14 17:20:47 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-07-30 12:44:17 +02:00
|
|
|
%if ! %{defined _distconfdir}
|
|
|
|
%define _distconfdir %{_sysconfdir}
|
|
|
|
%else
|
|
|
|
%define use_usretc 1
|
|
|
|
%endif
|
|
|
|
|
2011-09-22 17:57:03 +02:00
|
|
|
%define lname libkeyutils1
|
2021-01-04 12:40:47 +01:00
|
|
|
Name: keyutils
|
|
|
|
Version: 1.6.3
|
|
|
|
Release: 0
|
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
|
2021-01-04 12:40:47 +01:00
|
|
|
URL: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/
|
|
|
|
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-%{version}.tar.gz
|
2009-12-16 09:10:15 +01:00
|
|
|
Source1: baselibs.conf
|
2021-01-04 12:40:47 +01:00
|
|
|
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
|
2021-01-04 12:40:47 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
2019-03-04 11:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(krb5)
|
2006-12-14 17:20:47 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2021-01-04 12:40:47 +01:00
|
|
|
%package -n %{lname}
|
2006-12-14 17:20:47 +01:00
|
|
|
Summary: Key utilities library
|
2021-01-06 11:27:43 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2006-12-14 17:20:47 +01:00
|
|
|
Group: System/Kernel
|
2021-01-04 12:40:47 +01:00
|
|
|
Obsoletes: keyutils-libs < %{version}-%{release}
|
|
|
|
Provides: keyutils-libs = %{version}-%{release}
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2021-01-04 12:40:47 +01: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
|
2021-01-06 11:27:43 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2006-12-14 17:20:47 +01:00
|
|
|
Group: System/Kernel
|
2021-01-04 12:40:47 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2012-04-11 10:24:13 +02:00
|
|
|
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
|
2021-01-04 12:40:47 +01:00
|
|
|
%patch1
|
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
|
2021-01-04 12:40:47 +01:00
|
|
|
%make_build NO_ARLIB=1 CFLAGS="%{optflags}" CC="gcc"
|
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}
|
2023-01-04 19:40:50 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2017-03-29 14:12:11 +02:00
|
|
|
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
|
2020-11-20 11:16:13 +01:00
|
|
|
%endif
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2021-07-30 12:44:17 +02:00
|
|
|
install -m 0750 -d \
|
|
|
|
%{buildroot}%{_sysconfdir}/keys \
|
|
|
|
%{buildroot}%{_sysconfdir}/keys/ima \
|
2022-06-21 10:30:07 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/keys/evm \
|
2021-07-30 12:44:17 +02:00
|
|
|
%{buildroot}%{_distconfdir}/keys \
|
2022-06-21 10:30:07 +02:00
|
|
|
%{buildroot}%{_distconfdir}/keys/ima \
|
|
|
|
%{buildroot}%{_distconfdir}/keys/evm
|
2021-07-30 12:44:17 +02:00
|
|
|
|
2021-01-04 12:40:47 +01:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2006-12-14 17:20:47 +01:00
|
|
|
|
|
|
|
%files
|
2018-02-26 10:45:38 +01:00
|
|
|
%license LICENCE.GPL
|
|
|
|
%doc README
|
2023-01-04 19:40:50 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2006-12-14 17:20:47 +01:00
|
|
|
/sbin/*
|
|
|
|
/bin/*
|
2020-11-20 11:16:13 +01:00
|
|
|
%endif
|
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/
|
2021-07-30 12:44:17 +02:00
|
|
|
%dir %{_sysconfdir}/keys/
|
|
|
|
%dir %{_sysconfdir}/keys/ima/
|
2022-06-21 10:30:07 +02:00
|
|
|
%dir %{_sysconfdir}/keys/evm/
|
2021-07-30 12:44:17 +02:00
|
|
|
%if %{defined use_usretc}
|
|
|
|
%dir %{_distconfdir}/keys/
|
|
|
|
%dir %{_distconfdir}/keys/ima/
|
2022-06-21 10:30:07 +02:00
|
|
|
%dir %{_distconfdir}/keys/evm/
|
2021-07-30 12:44:17 +02:00
|
|
|
%endif
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2021-01-04 12:40:47 +01:00
|
|
|
%files -n %{lname}
|
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
|
2013-07-29 10:38:34 +02:00
|
|
|
%{_libdir}/libkeyutils.so
|
2006-12-14 17:20:47 +01:00
|
|
|
%{_includedir}/*
|
2019-07-02 07:01:21 +02:00
|
|
|
%attr(0644, root, root) %{_libdir}/pkgconfig/libkeyutils.pc
|
2006-12-14 17:20:47 +01:00
|
|
|
|
2008-04-10 14:21:03 +02:00
|
|
|
%changelog
|