|
|
6acbf9 |
Name: libcacard
|
|
|
da5cc8 |
Version: 2.7.0
|
|
|
da5cc8 |
Release: 1%{?dist}
|
|
|
6acbf9 |
Epoch: 40
|
|
|
6acbf9 |
Summary: Common Access Card (CAC) Emulation
|
|
|
6acbf9 |
|
|
|
6acbf9 |
Group: Development/Libraries
|
|
|
6acbf9 |
License: GPLv2+ and LGPLv2+ and BSD
|
|
|
6acbf9 |
URL: http://www.spice-space.org/page/Libcacard
|
|
|
da5cc8 |
Source0: http://www.spice-space.org/download/%{name}/%{name}-%{version}.tar.xz
|
|
|
da5cc8 |
Patch10: libcacard-2.7.0-install-vscclient.patch
|
|
|
da5cc8 |
# https://gitlab.freedesktop.org/spice/libcacard/merge_requests/5
|
|
|
da5cc8 |
Patch11: libcacard-2.7.0-caching-keys.patch
|
|
|
da5cc8 |
# https://gitlab.freedesktop.org/spice/libcacard/merge_requests/6
|
|
|
da5cc8 |
Patch12: libcacard-2.7.0-s390.patch
|
|
|
da5cc8 |
|
|
|
6acbf9 |
|
|
|
6acbf9 |
|
|
|
6acbf9 |
BuildRequires: glib2-devel
|
|
|
6acbf9 |
BuildRequires: nss-devel
|
|
|
da5cc8 |
BuildRequires: autoconf
|
|
|
da5cc8 |
BuildRequires: automake
|
|
|
da5cc8 |
BuildRequires: nss-tools
|
|
|
da5cc8 |
BuildRequires: softhsm
|
|
|
da5cc8 |
BuildRequires: opensc
|
|
|
da5cc8 |
BuildRequires: gnutls-utils
|
|
|
da5cc8 |
BuildRequires: autoconf-archive
|
|
|
6acbf9 |
|
|
|
6acbf9 |
Obsoletes: libcacard-rhev
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%description
|
|
|
6acbf9 |
Common Access Card (CAC) emulation library.
|
|
|
6acbf9 |
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%package tools
|
|
|
6acbf9 |
Summary: CAC Emulation tools
|
|
|
6acbf9 |
Group: Development/Libraries
|
|
|
6acbf9 |
Requires: libcacard = %{epoch}:%{version}-%{release}
|
|
|
6acbf9 |
Obsoletes: libcacard-tools-rhev
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%description tools
|
|
|
6acbf9 |
CAC emulation tools.
|
|
|
6acbf9 |
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%package devel
|
|
|
6acbf9 |
Summary: CAC Emulation devel
|
|
|
6acbf9 |
Group: Development/Libraries
|
|
|
6acbf9 |
Requires: libcacard = %{epoch}:%{version}-%{release}
|
|
|
6acbf9 |
Obsoletes: libcacard-devel-rhev
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%description devel
|
|
|
6acbf9 |
CAC emulation development files.
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%prep
|
|
|
6acbf9 |
%setup -q
|
|
|
da5cc8 |
%patch10 -p1 -R -b .vscclient
|
|
|
da5cc8 |
%patch11 -p1 -b .caching
|
|
|
da5cc8 |
%patch12 -p1 -b .s390
|
|
|
6acbf9 |
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%build
|
|
|
da5cc8 |
autoreconf
|
|
|
6acbf9 |
%configure
|
|
|
6acbf9 |
make %{?_smp_mflags}
|
|
|
6acbf9 |
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%install
|
|
|
6acbf9 |
%make_install
|
|
|
6acbf9 |
|
|
|
6acbf9 |
find $RPM_BUILD_ROOT -name "libcacard.so*" -exec chmod +x \{\} \;
|
|
|
6acbf9 |
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%check
|
|
|
da5cc8 |
# Do not run the tests on s390x, which fails
|
|
|
da5cc8 |
%ifnarch s390x
|
|
|
da5cc8 |
sed -i "s!/usr/lib64/!%{_libdir}/!" tests/setup-softhsm2.sh
|
|
|
6acbf9 |
make check V=1
|
|
|
da5cc8 |
%endif
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%files
|
|
|
6acbf9 |
%defattr(-,root,root,-)
|
|
|
6acbf9 |
%{_libdir}/libcacard.so.*
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%files tools
|
|
|
6acbf9 |
%defattr(-,root,root,-)
|
|
|
6acbf9 |
%{_bindir}/vscclient
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%files devel
|
|
|
6acbf9 |
%defattr(-,root,root,-)
|
|
|
6acbf9 |
%{_includedir}/cacard
|
|
|
6acbf9 |
%{_libdir}/libcacard.so
|
|
|
6acbf9 |
%{_libdir}/pkgconfig/libcacard.pc
|
|
|
6acbf9 |
|
|
|
6acbf9 |
|
|
|
6acbf9 |
%changelog
|
|
|
da5cc8 |
* Wed Sep 11 2019 Jakub Jelen <jjelen@redhat.com> - 2.7.0-1
|
|
|
da5cc8 |
- New upstream releas supporting CACv2 with improver compatibility with Windows guests (#917867)
|
|
|
da5cc8 |
|
|
|
6acbf9 |
* Fri Mar 18 2016 Miroslav Rezanina <mrezanin@redhat.com> - 2.5.2-2.el7
|
|
|
6acbf9 |
- Obsolete libcacard-rhev (bz#1315953)
|
|
|
6acbf9 |
|
|
|
6acbf9 |
* Fri Jan 29 2016 Miroslav Rezanina <mrezanin@redhat.com> - 2.5.2-1.el7
|
|
|
6acbf9 |
- Initial build
|