Blame SPECS/libcacard.spec

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