From d9d693af90fa58ba4939861b17e0c312c4bc7737 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 03:56:06 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.5.2-1mamba;Fri Oct 28 2016] --- README.md | 4 +++ libcacard.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 libcacard.spec diff --git a/README.md b/README.md index 780aa31..2e5221a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # libcacard +CAC (Common Access Card) library +This library provides 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. + diff --git a/libcacard.spec b/libcacard.spec new file mode 100644 index 0000000..f76dfae --- /dev/null +++ b/libcacard.spec @@ -0,0 +1,83 @@ +Name: libcacard +Version: 2.5.2 +Release: 1mamba +Summary: CAC (Common Access Card) library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.spice-space.org/page/Libcacard +Source: http://www.spice-space.org/download/libcacard/libcacard-%{version}.tar.xz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libglib-devel +BuildRequires: libnspr-devel +BuildRequires: libnss-devel +BuildRequires: libpcre-devel +BuildRequires: libpcsclite-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +CAC (Common Access Card) library +This library provides 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. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Applications/Security +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libcacard.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/cacard +%{_includedir}/cacard/*.h +%{_libdir}/libcacard.la +%{_libdir}/libcacard.so +%{_libdir}/pkgconfig/libcacard.pc +%doc ChangeLog NEWS README.md + +%files tools +%defattr(-,root,root) +%{_bindir}/vscclient + +%changelog +* Fri Oct 28 2016 Silvan Calarco 2.5.2-1mamba +- package created using the webbuild interface