forked from pool/yubico-piv-tool
7b7db64f0a
- Version 1.7.0 (released 2019-04-03) * Add ykpiv_get_serial() to API. * Add version and serial to status output. * FASC-N fixes for CHUID. * ykcs11: Fix ECDSA signatures. * Make selfsigned X.509 extensions have correct extensions to match openssl. * Security fixes. * Documentation fixes. * Try to clear memory that might contain secrets. OBS-URL: https://build.opensuse.org/request/show/707077 OBS-URL: https://build.opensuse.org/package/show/security/yubico-piv-tool?expand=0&rev=28
118 lines
3.7 KiB
RPMSpec
118 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package yubico-piv-tool
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 1
|
|
Name: yubico-piv-tool
|
|
Version: 1.7.0
|
|
Release: 0
|
|
Summary: Yubico YubiKey NEO CCID Manager
|
|
License: BSD-2-Clause
|
|
Group: Productivity/Networking/Security
|
|
URL: https://developers.yubico.com/
|
|
Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
|
|
Source1: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz.sig
|
|
BuildRequires: check-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: pcsc-lite-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: valgrind
|
|
BuildRequires: pkgconfig(openssl)
|
|
Requires: libykcs11-%{sover} = %{version}
|
|
Requires: libykpiv%{sover} = %{version}
|
|
|
|
%description
|
|
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
|
|
and certificates and creating certificate requests.
|
|
|
|
%package -n libykpiv%{sover}
|
|
Summary: Yubikey NEO PIV applet library
|
|
Group: System/Libraries
|
|
Requires: pcsc-ccid
|
|
|
|
%description -n libykpiv%{sover}
|
|
This is a low-level library to interact the PIV applet on a YubiKey NEO
|
|
|
|
%package -n libykcs11-%{sover}
|
|
Summary: Yubikey NEO PKCS#11 applet library
|
|
Group: System/Libraries
|
|
Requires: pcsc-ccid
|
|
|
|
%description -n libykcs11-%{sover}
|
|
This is a PKCS#11 module that allows to communicate with the PIV application running on a YubiKey
|
|
|
|
%package -n libykpiv-devel
|
|
Summary: Development files for the Yubikey NEO PIV applet library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libykpiv%{sover} = %{version}
|
|
|
|
%description -n libykpiv-devel
|
|
This package contains the header file needed to develop applications that use
|
|
Yubikey NEO PIV applet library.
|
|
|
|
%package -n libykcs11-devel
|
|
Summary: Development files for the Yubikey NEO PKCS#11 applet library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libykcs11-%{sover} = %{version}
|
|
|
|
%description -n libykcs11-devel
|
|
This package contains the header file needed to develop applications that use
|
|
Yubikey NEO PKCS#11 applet library.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static --with-backend=pcsc
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install INSTALL="install -p"
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%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
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc NEWS ChangeLog README
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/*
|
|
|
|
%files -n libykpiv%{sover}
|
|
%{_libdir}/libykpiv.so.%{sover}
|
|
%{_libdir}/libykpiv.so.%{sover}.5.0
|
|
|
|
%files -n libykcs11-%{sover}
|
|
%{_libdir}/libykcs11.so.%{sover}
|
|
%{_libdir}/libykcs11.so.%{sover}.5.0
|
|
|
|
%files -n libykpiv-devel
|
|
%dir %{_includedir}/ykpiv/
|
|
%{_includedir}/ykpiv/*
|
|
%{_libdir}/libykpiv.so
|
|
%{_libdir}/pkgconfig/ykpiv.pc
|
|
|
|
%files -n libykcs11-devel
|
|
%{_libdir}/libykcs11.so
|
|
%{_libdir}/pkgconfig/ykcs11.pc
|
|
|
|
%changelog
|