Blame SPECS/libcacard.spec

f9085c
Name:           libcacard
f52a2a
Version:        2.7.0
f52a2a
Release:        2%{?dist}
f9085c
Summary:        CAC (Common Access Card) library
f9085c
License:        LGPLv2+
f9085c
URL:            http://www.spice-space.org/page/Libcacard
f9085c
Source0:        http://www.spice-space.org/download/libcacard/%{name}-%{version}.tar.xz
f52a2a
Source1:        http://www.spice-space.org/download/libcacard/%{name}-%{version}.tar.xz.asc
f52a2a
Source2:        gpgkey-15B5C33D.gpg
f52a2a
# https://gitlab.freedesktop.org/spice/libcacard/merge_requests/5
f52a2a
Patch0:         %{name}-2.7.0-caching-keys.patch
f9085c
Epoch:          3
f9085c
f9085c
BuildRequires:  glib2-devel
f9085c
BuildRequires:  nss-devel
f52a2a
BuildRequires:  softhsm
f52a2a
BuildRequires:  opensc
f52a2a
BuildRequires:  gnutls-utils
f52a2a
BuildRequires:  nss-tools
f52a2a
BuildRequires:  openssl
f52a2a
BuildRequires:  gnupg2
f9085c
Conflicts:      qemu-common < 2:2.5.0
f9085c
f9085c
%description
f9085c
This library provides emulation of smart cards to a virtual card
f9085c
reader running in a guest virtual machine.
f9085c
f9085c
It implements DoD CAC standard with separate pki containers
f9085c
(compatible coolkey), using certificates read from NSS.
f9085c
f9085c
%package        devel
f9085c
Summary:        Development files for %{name}
f9085c
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f9085c
f9085c
%description    devel
f9085c
The %{name}-devel package contains libraries and header files for
f9085c
developing applications that use %{name}.
f9085c
f9085c
%prep
f52a2a
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
f9085c
%setup -q
f52a2a
%patch0 -p1 -b .caching
f9085c
f9085c
%build
f9085c
%configure --disable-static
f9085c
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
f9085c
make %{?_smp_mflags}
f9085c
f52a2a
%check
f52a2a
# Do not run the tests on s390x, which fails
f52a2a
%ifnarch s390x
f52a2a
sed -i "s!/usr/lib64/!%{_libdir}/!" tests/setup-softhsm2.sh
f52a2a
make check
f52a2a
%endif
f52a2a
f9085c
%install
f9085c
%make_install
f9085c
rm -f %{buildroot}%{_libdir}/*.la
f9085c
f9085c
%post -p /sbin/ldconfig
f9085c
%postun -p /sbin/ldconfig
f9085c
f9085c
%files
f9085c
%license COPYING
f9085c
%doc NEWS
f9085c
%{_libdir}/libcacard.so.*
f9085c
f9085c
%files devel
f9085c
%{_includedir}/cacard
f9085c
%{_libdir}/libcacard.so
f9085c
%{_libdir}/pkgconfig/libcacard.pc
f9085c
f9085c
%changelog
f52a2a
* Mon Sep 16 2019 Jakub Jelen <jjelen@redhat.com> - 2.7.0-2
f52a2a
- Remove key caching capabilities since to avoid invalid handle reuse (#1746883)
f52a2a
f52a2a
* Tue Jul 23 2019 Jakub Jelen <jjelen@redhat.com> - 2.7.0-1
f52a2a
- Update to libcacard 2.7.0 to improve Windows compatibility (#1615840)
f52a2a
f9085c
* Mon Dec 17 2018 Christophe Fergeau <cfergeau@redhat.com> - 2.6.1-1
f9085c
- Update to libcacard 2.6.1
f9085c
  Resolves: rhbz#1620129
f9085c
f9085c
* Mon Aug 13 2018 Troy Dawson <tdawson@redhat.com> - 3:2.5.3-5
f9085c
- Release Bumped for el8 Mass Rebuild
f9085c
f9085c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3:2.5.3-4
f9085c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f9085c
f9085c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3:2.5.3-3
f9085c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f9085c
f9085c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3:2.5.3-2
f9085c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f9085c
f9085c
* Wed Mar 01 2017 Marc-André Lureau <marcandre.lureau@redhat.com> - 3:2.5.3-1
f9085c
- new upstream release 2.5.3
f9085c
f9085c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3:2.5.2-3
f9085c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f9085c
f9085c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3:2.5.2-2
f9085c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f9085c
f9085c
* Tue Dec  8 2015 Marc-André Lureau <marcandre.lureau@redhat.com> - 3:2.5.2-1
f9085c
- Update to latest libcacard's release (2.5.2)
f9085c
f9085c
* Wed Nov 25 2015 Fabiano Fidêncio <fidencio@redhat.com> - 3:2.5.1-1
f9085c
- Update to latest libcacard's release (2.5.1)
f9085c
f9085c
* Wed Sep 23 2015 Marc-André Lureau <marcandre.lureau@redhat.com> - 3:2.5.0-1
f9085c
- Initial standalone libcacard package.