ed43ac4
%undefine __cmake_in_source_build
ed43ac4
6920171
Name:		yubihsm-shell
47623ca
Version:	2.0.3
47623ca
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
a164a20
Source2:	gpgkey-C4686BFE.gpg
6920171
6920171
BuildRequires:	cmake
6920171
BuildRequires:	cppcheck
6920171
BuildRequires:	gcc
6920171
BuildRequires:	lcov
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
6920171
BuildRequires:	libusb-devel
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
6920171
6920171
6920171
%build
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
ed43ac4
%cmake
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
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.*
6920171
%dir %{_libdir}/pkcs11
6920171
%{_libdir}/pkcs11/yubihsm_pkcs11.so
6920171
%doc 
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
6920171
%{_includedir}/yubihsm.h
6920171
%dir %{_includedir}/pkcs11
6920171
%{_includedir}/pkcs11/pkcs11.h
6920171
%{_includedir}/pkcs11/pkcs11y.h
6920171
%{_datadir}/pkgconfig/yubihsm.pc
6920171
6920171
6920171
6920171
%changelog
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