2015-01-31 00:48:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package yubico-piv-tool
|
|
|
|
#
|
2023-03-04 07:30:21 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-01-31 00:48:35 +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.
|
|
|
|
|
2018-09-27 20:11:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-01-31 00:48:35 +01:00
|
|
|
#
|
|
|
|
|
2015-10-02 11:42:06 +02:00
|
|
|
|
2021-03-02 07:16:17 +01:00
|
|
|
%define sover 2
|
2015-01-31 00:48:35 +01:00
|
|
|
Name: yubico-piv-tool
|
2023-03-04 07:30:21 +01:00
|
|
|
Version: 2.3.1
|
2015-01-31 00:48:35 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Yubico YubiKey NEO CCID Manager
|
2015-10-02 11:42:06 +02:00
|
|
|
License: BSD-2-Clause
|
2015-01-31 00:48:35 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2018-08-28 15:31:16 +02:00
|
|
|
URL: https://developers.yubico.com/
|
2015-01-31 00:48:35 +01:00
|
|
|
Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
|
2015-10-02 11:42:06 +02:00
|
|
|
Source1: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz.sig
|
2022-12-04 20:43:38 +01:00
|
|
|
Source3: yubico-piv-tool.keyring
|
2021-03-02 07:16:17 +01:00
|
|
|
Patch1: pthread-link.patch
|
|
|
|
BuildRequires: c++_compiler
|
2017-12-01 12:46:22 +01:00
|
|
|
BuildRequires: check-devel
|
2021-03-02 07:16:17 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gengetopt
|
|
|
|
BuildRequires: help2man
|
2015-01-31 00:48:35 +01:00
|
|
|
BuildRequires: pcsc-lite-devel
|
2018-08-28 15:31:16 +02:00
|
|
|
BuildRequires: pkgconfig
|
2016-04-25 22:56:22 +02:00
|
|
|
BuildRequires: valgrind
|
2015-10-02 11:42:06 +02:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2018-09-28 11:27:16 +02:00
|
|
|
Requires: libykcs11-%{sover} = %{version}
|
|
|
|
Requires: libykpiv%{sover} = %{version}
|
2015-01-31 00:48:35 +01:00
|
|
|
|
|
|
|
%description
|
2015-11-10 12:54:48 +01:00
|
|
|
This is a command line tool to interact with the PIV applet on a YubiKey NEO.
|
|
|
|
Among other functions it supports, generating keys on device, importing keys
|
2015-01-31 00:48:35 +01:00
|
|
|
and certificates and creating certificate requests.
|
|
|
|
|
2018-09-28 11:27:16 +02:00
|
|
|
%package -n libykpiv%{sover}
|
2015-01-31 00:48:35 +01:00
|
|
|
Summary: Yubikey NEO PIV applet library
|
2018-09-28 11:27:16 +02:00
|
|
|
Group: System/Libraries
|
2015-11-10 12:54:48 +01:00
|
|
|
Requires: pcsc-ccid
|
2015-01-31 00:48:35 +01:00
|
|
|
|
2018-09-28 11:27:16 +02:00
|
|
|
%description -n libykpiv%{sover}
|
2015-11-10 12:54:48 +01:00
|
|
|
This is a low-level library to interact the PIV applet on a YubiKey NEO
|
|
|
|
|
2018-09-28 11:27:16 +02:00
|
|
|
%package -n libykcs11-%{sover}
|
2015-11-10 12:54:48 +01:00
|
|
|
Summary: Yubikey NEO PKCS#11 applet library
|
2018-09-28 11:27:16 +02:00
|
|
|
Group: System/Libraries
|
2015-11-10 12:54:48 +01:00
|
|
|
Requires: pcsc-ccid
|
|
|
|
|
2018-09-28 11:27:16 +02:00
|
|
|
%description -n libykcs11-%{sover}
|
2015-11-10 12:54:48 +01:00
|
|
|
This is a PKCS#11 module that allows to communicate with the PIV application running on a YubiKey
|
2015-01-31 00:48:35 +01:00
|
|
|
|
|
|
|
%package -n libykpiv-devel
|
2018-09-28 11:27:16 +02:00
|
|
|
Summary: Development files for the Yubikey NEO PIV applet library
|
2015-01-31 00:48:35 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-09-28 11:27:16 +02:00
|
|
|
Requires: libykpiv%{sover} = %{version}
|
2015-01-31 00:48:35 +01:00
|
|
|
|
|
|
|
%description -n libykpiv-devel
|
|
|
|
This package contains the header file needed to develop applications that use
|
|
|
|
Yubikey NEO PIV applet library.
|
|
|
|
|
2015-11-10 12:54:48 +01:00
|
|
|
%package -n libykcs11-devel
|
2018-09-28 11:27:16 +02:00
|
|
|
Summary: Development files for the Yubikey NEO PKCS#11 applet library
|
2015-11-10 12:54:48 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-09-28 11:27:16 +02:00
|
|
|
Requires: libykcs11-%{sover} = %{version}
|
2015-11-10 12:54:48 +01:00
|
|
|
|
|
|
|
%description -n libykcs11-devel
|
|
|
|
This package contains the header file needed to develop applications that use
|
|
|
|
Yubikey NEO PKCS#11 applet library.
|
|
|
|
|
2015-01-31 00:48:35 +01:00
|
|
|
%prep
|
2015-11-10 12:54:48 +01:00
|
|
|
%setup -q
|
2021-03-02 07:16:17 +01:00
|
|
|
%autopatch -p1
|
2015-01-31 00:48:35 +01:00
|
|
|
|
|
|
|
%build
|
2021-03-02 07:16:17 +01:00
|
|
|
%cmake -DBUILD_STATIC_LIB=OFF
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd build
|
|
|
|
make test
|
2015-01-31 00:48:35 +01:00
|
|
|
|
|
|
|
%install
|
2021-03-02 07:16:17 +01:00
|
|
|
%cmake_install
|
2015-01-31 00:48:35 +01:00
|
|
|
|
2018-09-28 11:27:16 +02:00
|
|
|
%post -n libykpiv%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libykpiv%{sover} -p /sbin/ldconfig
|
|
|
|
%post -n libykcs11-%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libykcs11-%{sover} -p /sbin/ldconfig
|
2015-11-10 12:54:48 +01:00
|
|
|
|
|
|
|
%files
|
2018-08-28 15:31:16 +02:00
|
|
|
%license COPYING
|
2021-03-02 07:16:17 +01:00
|
|
|
%doc NEWS README
|
2015-01-31 00:48:35 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
2018-09-28 11:27:16 +02:00
|
|
|
%files -n libykpiv%{sover}
|
2020-03-01 01:15:48 +01:00
|
|
|
%{_libdir}/libykpiv.so.%{sover}*
|
2015-11-10 12:54:48 +01:00
|
|
|
|
2018-09-28 11:27:16 +02:00
|
|
|
%files -n libykcs11-%{sover}
|
2020-03-01 01:15:48 +01:00
|
|
|
%{_libdir}/libykcs11.so.%{sover}*
|
2015-01-31 00:48:35 +01:00
|
|
|
|
|
|
|
%files -n libykpiv-devel
|
|
|
|
%dir %{_includedir}/ykpiv/
|
|
|
|
%{_includedir}/ykpiv/*
|
|
|
|
%{_libdir}/libykpiv.so
|
|
|
|
%{_libdir}/pkgconfig/ykpiv.pc
|
|
|
|
|
2015-11-10 12:54:48 +01:00
|
|
|
%files -n libykcs11-devel
|
|
|
|
%{_libdir}/libykcs11.so
|
|
|
|
%{_libdir}/pkgconfig/ykcs11.pc
|
|
|
|
|
2015-01-31 00:48:35 +01:00
|
|
|
%changelog
|