libcacard/libcacard.spec

89 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-06 19:37:17 +08:00
Name: libcacard
Version: 2.8.1
Release: 1
Summary: CAC (Common Access Card) library
2019-11-06 19:37:17 +08:00
License: LGPLv2+
URL: https://gitlab.freedesktop.org/spice/libcacard
Source0: https://www.spice-space.org/download/libcacard/%{name}-%{version}.tar.xz
Source1: https://www.spice-space.org/download/libcacard/%{name}-%{version}.tar.xz.sig
Source2: gpgkey-A3DDE969.gpg
Source3: db2.crypt
# https://gitlab.freedesktop.org/spice/libcacard/-/merge_requests/31
Patch1: libcacard-2.8.1-sort-certificates.patch
Epoch: 41
2021-01-29 16:06:32 +08:00
2019-11-06 19:37:17 +08:00
BuildRequires: gcc glib2-devel nss-devel softhsm opensc
BuildRequires: gnutls-utils nss-tools openssl gnupg2
2021-01-29 16:06:32 +08:00
BuildRequires: meson gcc-c++ pcsc-lite-devel
2019-11-06 19:37:17 +08:00
Conflicts: qemu-common < 2:2.5.0
%description
This package uses certificates read from NSS and separate pki containers to implement
DoD CAC standard so that it can provide emulation of smart cards to a virtual card
reader running in a guest virtual machine.
It implements DoD CAC standard with separate pki containers
(compatible coolkey), using certificates read from NSS.
2019-11-06 19:37:17 +08:00
%package devel
Summary: Provide development files for %{name}
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
2019-11-06 19:37:17 +08:00
%description devel
This package provides libraries and header files for the development of libcacard
%prep
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%setup -q
%patch1 -p1
cp %{SOURCE3} tests/
2019-11-06 19:37:17 +08:00
%build
2021-01-29 16:06:32 +08:00
%meson
%meson_build
2019-11-06 19:37:17 +08:00
%install
2021-01-29 16:06:32 +08:00
%meson_install
2019-11-06 19:37:17 +08:00
%ldconfig_scriptlets
%files
%license COPYING
%doc NEWS
2019-11-06 19:37:17 +08:00
%{_libdir}/libcacard.so.*
%files devel
%{_includedir}/cacard
2019-11-06 19:37:17 +08:00
%{_libdir}/libcacard.so
%{_libdir}/pkgconfig/libcacard.pc
%changelog
* Wed Jul 19 2023 Tianze Li <litianze@uniontech.com> - 41:2.8.1-1
- Update to upstream release
2022-12-22 08:55:44 +00:00
* Thu Dec 22 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 41:2.8.0-2
- update epoch to 41
2021-01-29 16:06:32 +08:00
* Fri Jan 29 2021 zhanzhimin <zhanzhimin@huawei.com> - 3:2.8.0-1
- update to 2.8.0
2020-08-21 22:37:23 +08:00
* Fri Aug 21 2020 orange_snn <songnannan2@huawei.com> - 3:2.7.0-4
- delete the check
2020-02-05 16:05:32 +08:00
* Wed Feb 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 3:2.7.0-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: enable test cases
2020-01-09 15:31:58 +08:00
* Thu Jan 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 3:2.7.0-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: optimization the spec
* Sat Oct 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 3:2.7.0-1
2019-11-06 19:37:17 +08:00
- Package init