Name: yubihsm-shell Version: 2.0.0 Release: 2%{?dist} Summary: Tools to interact with YubiHSM 2 License: ASL 2.0 URL: https://github.com/Yubico/%{name}/ Source0: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz Source1: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz.sig Source2: gpgkey-B2168C0A.gpg # https://github.com/Yubico/yubihsm-shell/pull/7 Patch1: %{name}-2.0.0-install-to-lib64.patch BuildRequires: cmake BuildRequires: cppcheck BuildRequires: gcc BuildRequires: lcov BuildRequires: gengetopt BuildRequires: help2man BuildRequires: openssl-devel BuildRequires: libcurl-devel BuildRequires: libedit-devel BuildRequires: pcsc-lite-devel BuildRequires: clang BuildRequires: pkg-config BuildRequires: libusb-devel BuildRequires: chrpath BuildRequires: gnupg2 %description This package contains most of the components used to interact with the YubiHSM 2 at both a user-facing and programmatic level. %package devel Summary: Development tools for interacting with YubiHSM 2 Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development libraries for working with yubihsm 2. %prep gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %setup -q %patch1 -p1 %build mkdir build && cd build %cmake ../ %make_build %install cd build %make_install chrpath --delete $RPM_BUILD_ROOT%{_bindir}/yubihsm-shell chrpath --delete $RPM_BUILD_ROOT%{_bindir}/yubihsm-wrap chrpath --delete $RPM_BUILD_ROOT%{_libdir}/pkcs11/yubihsm_pkcs11.so %files %license LICENSE %{_bindir}/yubihsm-shell %{_bindir}/yubihsm-wrap %{_libdir}/libyubihsm.so.2 %{_libdir}/libyubihsm.so.2.* %{_libdir}/libyubihsm_http.so.2 %{_libdir}/libyubihsm_http.so.2.* %{_libdir}/libyubihsm_usb.so.2 %{_libdir}/libyubihsm_usb.so.2.* %dir %{_libdir}/pkcs11 %{_libdir}/pkcs11/yubihsm_pkcs11.so %doc %{_mandir}/man1/yubihsm-shell.1.* %{_mandir}/man1/yubihsm-wrap.1.* %files devel %{_libdir}/libyubihsm.so %{_libdir}/libyubihsm_http.so %{_libdir}/libyubihsm_usb.so %{_includedir}/yubihsm.h %dir %{_includedir}/pkcs11 %{_includedir}/pkcs11/pkcs11.h %{_includedir}/pkcs11/pkcs11y.h %{_datadir}/pkgconfig/yubihsm.pc %changelog * Mon Dec 03 2018 Jakub Jelen - 2.0.0-2 - Pull the latest signed tarballs - Address review comments (#1654689) * Thu Nov 29 2018 Jakub Jelen - 2.0.0-1 - Initial release