|
|
ed43ac4 |
%undefine __cmake_in_source_build
|
|
|
ed43ac4 |
|
|
|
6920171 |
Name: yubihsm-shell
|
|
|
40f4f44 |
Version: 2.4.0
|
|
|
40f4f44 |
Release: 1%{?dist}
|
|
|
6920171 |
Summary: Tools to interact with YubiHSM 2
|
|
|
6920171 |
|
|
|
6920171 |
License: ASL 2.0
|
|
|
6920171 |
URL: https://github.com/Yubico/%{name}/
|
|
|
6920171 |
Source0: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz
|
|
|
6920171 |
Source1: https://developers.yubico.com/%{name}/Releases/%{name}-%{version}.tar.gz.sig
|
|
|
52348de |
Source2: gpgkey-9588EA0F.gpg
|
|
|
7702129 |
# https://github.com/Yubico/yubihsm-shell/pull/312
|
|
|
7702129 |
# https://github.com/Yubico/yubihsm-shell/pull/314
|
|
|
68d1ae6 |
Patch1: yubihsm-shell-2.4.0-fix-id-type.patch
|
|
|
6920171 |
|
|
|
6920171 |
BuildRequires: cmake
|
|
|
6920171 |
BuildRequires: cppcheck
|
|
|
6920171 |
BuildRequires: gcc
|
|
|
ee0ae2c |
%if 0%{?fedora}
|
|
|
6920171 |
BuildRequires: lcov
|
|
|
ee0ae2c |
%endif
|
|
|
6920171 |
BuildRequires: gengetopt
|
|
|
6920171 |
BuildRequires: help2man
|
|
|
6920171 |
BuildRequires: openssl-devel
|
|
|
6920171 |
BuildRequires: libcurl-devel
|
|
|
6920171 |
BuildRequires: libedit-devel
|
|
|
6920171 |
BuildRequires: pcsc-lite-devel
|
|
|
6920171 |
BuildRequires: clang
|
|
|
6920171 |
BuildRequires: pkg-config
|
|
|
194898a |
%if 0%{fedora} > 36
|
|
|
194898a |
BuildRequires: libusb-compat-0.1-devel
|
|
|
194898a |
%else
|
|
|
6920171 |
BuildRequires: libusb-devel
|
|
|
194898a |
%endif
|
|
|
6920171 |
BuildRequires: chrpath
|
|
|
6920171 |
BuildRequires: gnupg2
|
|
|
6920171 |
|
|
|
6920171 |
%description
|
|
|
6920171 |
This package contains most of the components used to interact with
|
|
|
6920171 |
the YubiHSM 2 at both a user-facing and programmatic level.
|
|
|
6920171 |
|
|
|
6920171 |
%package devel
|
|
|
6920171 |
Summary: Development tools for interacting with YubiHSM 2
|
|
|
6920171 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
6920171 |
|
|
|
6920171 |
%description devel
|
|
|
6920171 |
Development libraries for working with yubihsm 2.
|
|
|
6920171 |
|
|
|
6920171 |
%prep
|
|
|
6920171 |
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|
|
6920171 |
%setup -q
|
|
|
68d1ae6 |
%patch1 -p1
|
|
|
6920171 |
|
|
|
6920171 |
|
|
|
6920171 |
%build
|
|
|
8d642a9 |
%set_build_flags
|
|
|
ee436a7 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1865658#c6
|
|
|
ee436a7 |
# The generated code fails to build on s390x in Fedora 33
|
|
|
ee436a7 |
# For now, disable this particular check when building this arch
|
|
|
ee436a7 |
%ifarch s390x
|
|
|
ee436a7 |
export CFLAGS="$CFLAGS -Wno-error=format-overflow"
|
|
|
ee436a7 |
%endif
|
|
|
8d642a9 |
# OpenSSL 3.0 deprecates a lot of functions still widely used here
|
|
|
8d642a9 |
export CFLAGS="$CFLAGS -Wno-error=deprecated-declarations"
|
|
|
73a7fb8 |
%cmake -DCMAKE_SKIP_INSTALL_RPATH=ON
|
|
|
ed43ac4 |
%cmake_build
|
|
|
6920171 |
|
|
|
6920171 |
|
|
|
6920171 |
%install
|
|
|
ed43ac4 |
%cmake_install
|
|
|
6920171 |
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/yubihsm-shell
|
|
|
6920171 |
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/yubihsm-wrap
|
|
|
6920171 |
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/pkcs11/yubihsm_pkcs11.so
|
|
|
6920171 |
|
|
|
6920171 |
|
|
|
6920171 |
%files
|
|
|
6920171 |
%license LICENSE
|
|
|
c3d9481 |
%{_bindir}/yubihsm-auth
|
|
|
6920171 |
%{_bindir}/yubihsm-shell
|
|
|
6920171 |
%{_bindir}/yubihsm-wrap
|
|
|
6920171 |
%{_libdir}/libyubihsm.so.2
|
|
|
6920171 |
%{_libdir}/libyubihsm.so.2.*
|
|
|
6920171 |
%{_libdir}/libyubihsm_http.so.2
|
|
|
6920171 |
%{_libdir}/libyubihsm_http.so.2.*
|
|
|
6920171 |
%{_libdir}/libyubihsm_usb.so.2
|
|
|
6920171 |
%{_libdir}/libyubihsm_usb.so.2.*
|
|
|
c3d9481 |
%{_libdir}/libykhsmauth.so.2
|
|
|
c3d9481 |
%{_libdir}/libykhsmauth.so.2.*
|
|
|
6920171 |
%dir %{_libdir}/pkcs11
|
|
|
6920171 |
%{_libdir}/pkcs11/yubihsm_pkcs11.so
|
|
|
6920171 |
%doc
|
|
|
c3d9481 |
%{_mandir}/man1/yubihsm-auth.1.*
|
|
|
6920171 |
%{_mandir}/man1/yubihsm-shell.1.*
|
|
|
6920171 |
%{_mandir}/man1/yubihsm-wrap.1.*
|
|
|
6920171 |
|
|
|
6920171 |
%files devel
|
|
|
6920171 |
%{_libdir}/libyubihsm.so
|
|
|
6920171 |
%{_libdir}/libyubihsm_http.so
|
|
|
6920171 |
%{_libdir}/libyubihsm_usb.so
|
|
|
c3d9481 |
%{_libdir}/libykhsmauth.so
|
|
|
6920171 |
%{_includedir}/yubihsm.h
|
|
|
c3d9481 |
%{_includedir}/ykhsmauth.h
|
|
|
6920171 |
%dir %{_includedir}/pkcs11
|
|
|
6920171 |
%{_includedir}/pkcs11/pkcs11.h
|
|
|
6920171 |
%{_includedir}/pkcs11/pkcs11y.h
|
|
|
6920171 |
%{_datadir}/pkgconfig/yubihsm.pc
|
|
|
c3d9481 |
%{_datadir}/pkgconfig/ykhsmauth.pc
|
|
|
6920171 |
|
|
|
6920171 |
|
|
|
6920171 |
|
|
|
6920171 |
%changelog
|
|
|
40f4f44 |
* Mon Jan 30 2023 Jakub Jelen <jjelen@redhat.com> - 2.4.0-1
|
|
|
40f4f44 |
- New upstream release (#2165239)
|
|
|
40f4f44 |
|
|
|
9137f78 |
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
|
|
|
9137f78 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
9137f78 |
|
|
|
90ab714 |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
|
|
|
90ab714 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
90ab714 |
|
|
|
194898a |
* Mon Jun 27 2022 Jakub Jelen <jjelen@redhat.com> - 2.3.2-1
|
|
|
194898a |
- New upstream release (#2100542)
|
|
|
194898a |
|
|
|
dde806d |
* Tue Feb 22 2022 Veronika Hanulikova <vhanulik@redhat.com> - 2.3.1-1
|
|
|
dde806d |
- New upstream release (#2050104)
|
|
|
dde806d |
|
|
|
c3c2eeb |
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0b-2
|
|
|
c3c2eeb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
c3c2eeb |
|
|
|
8ef7f5e |
* Mon Jan 03 2022 Jakub Jelen <jjelen@redhat.com> - 2.3.0b-1
|
|
|
8ef7f5e |
- New upstream release (#2035159)
|
|
|
8ef7f5e |
|
|
|
52348de |
* Mon Dec 13 2021 Jakub Jelen <jjelen@redhat.com> - 2.3.0-1
|
|
|
52348de |
- New upstream release (#2030694)
|
|
|
52348de |
|
|
|
ba57cc5 |
* Thu Nov 18 2021 Jakub Jelen <jjelen@redhat.com> - 2.2.0-5
|
|
|
ba57cc5 |
- Rebuild with deprecated OpenSSL 3.0 functions (#2021878)
|
|
|
ba57cc5 |
|
|
|
a385636 |
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 2.2.0-4
|
|
|
a385636 |
- Rebuilt with OpenSSL 3.0.0
|
|
|
a385636 |
|
|
|
dce23b1 |
* Tue Aug 03 2021 Jakub Jelen <jjelen@redhat.com> - 2.2.0-3
|
|
|
dce23b1 |
- Disable rpath to allow build in Fedora 35 (#1988058)
|
|
|
dce23b1 |
|
|
|
e5cc50a |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
|
|
|
e5cc50a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
e5cc50a |
|
|
|
c3d9481 |
* Fri Apr 16 2021 Jakub Jelen <jjelen@redhat.com> - 2.2.0-1
|
|
|
c3d9481 |
- New upstream release (#1950207)
|
|
|
c3d9481 |
|
|
|
942c5d8 |
* Thu Mar 18 2021 Jakub Jelen <jjelen@redhat.com> - 2.1.0-1
|
|
|
942c5d8 |
- New upstream release (#1936041)
|
|
|
942c5d8 |
|
|
|
11432a6 |
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
|
|
|
11432a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
11432a6 |
|
|
|
47623ca |
* Wed Oct 21 2020 Jakub Jelen <jjelen@redhat.com> - 2.0.3-1
|
|
|
47623ca |
- New upstream release (#1889941)
|
|
|
47623ca |
|
|
|
4382fe2 |
* Thu Aug 06 2020 Jakub Jelen <jjelen@redhat.com> - 2.0.2-7
|
|
|
4382fe2 |
- Workaround FTBFS on s390x (#1865658)
|
|
|
4382fe2 |
|
|
|
c8dc134 |
* Thu Aug 06 2020 Jakub Jelen <jjelen@redhat.com> - 2.0.2-6
|
|
|
c8dc134 |
- Rebuild after libz3 soname bump (#1865658)
|
|
|
c8dc134 |
|
|
|
f996dd4 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
|
|
|
f996dd4 |
- Second attempt - Rebuilt for
|
|
|
f996dd4 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
f996dd4 |
|
|
|
01125ea |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
|
|
|
01125ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
01125ea |
|
|
|
4d57e9d |
* Mon Mar 16 2020 Jakub Jelen <jjelen@redhat.com> - 2.0.2-3
|
|
|
4d57e9d |
- Avoid warnings/errors with new gcc on s390x (#1800289)
|
|
|
4d57e9d |
|
|
|
3e3707a |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
|
|
|
3e3707a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
3e3707a |
|
|
|
a164a20 |
* Tue Jan 07 2020 Jakub Jelen <jjelen@redhat.com> - 2.0.2-1
|
|
|
a164a20 |
- New upstream release (#1772013)
|
|
|
a164a20 |
|
|
|
3b4c05d |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
|
|
|
3b4c05d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
3b4c05d |
|
|
|
907aace |
* Tue Apr 02 2019 Jakub Jelen <jjelen@redhat.com> - 2.0.1-1
|
|
|
907aace |
- New upstream release (#1692935)
|
|
|
907aace |
|
|
|
30a7dc6 |
* Wed Feb 13 2019 Jakub Jelen <jjelen@redhat.com> - 2.0.0-4
|
|
|
30a7dc6 |
- Workaround unreasonagle error from GCC9 (#1676257)
|
|
|
30a7dc6 |
|
|
|
cb238f3 |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
|
cb238f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
cb238f3 |
|
|
|
6920171 |
* Mon Dec 03 2018 Jakub Jelen <jjelen@redhat.com> - 2.0.0-2
|
|
|
6920171 |
- Pull the latest signed tarballs
|
|
|
6920171 |
- Address review comments (#1654689)
|
|
|
6920171 |
|
|
|
6920171 |
* Thu Nov 29 2018 Jakub Jelen <jjelen@redhat.com> - 2.0.0-1
|
|
|
6920171 |
- Initial release
|
|
|
6920171 |
|
|
|
6920171 |
|