cackey.spec at [458e2fe6b9]

File cackey.spec artifact 0ed6aa2c0b part of check-in 458e2fe6b9


Summary: PC/SC PKCS#11 Provider for Government Smartcards
Name: cackey
Version: @@VERS@@
Release: 1
License: Public Domain
Packager: Roy Keene <cackey@rkeene.org>
URL: https://software.forge.mil/sf/frs/do/listReleases/projects.community_cac/frs.cackey
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Group: System Environment/Libraries
Requires: pcsc-lite


%description
CACKey provides a standard interface (PKCS#11) for smartcards connected to a
PC/SC compliant reader.  It performs a similar function to "CoolKey", but
only supports Government Smartcards.  It supports all Government Smartcards
that implement the Government Smartcard Interoperability Specification (GSC-IS)
v2.1 or newer as well as PIV cards that comply with NIST SP 800-73-3.


%prep
%setup -q


%build
CFLAGS="%{optflags}" \
	./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir}
make  %{?_smp_mflags}


%install
if [ ! %{buildroot} = "/" ]; then %{__rm} -rf %{buildroot}; fi
make DESTDIR=%{buildroot} install


%clean
if [ ! %{buildroot} = "/" ]; then %{__rm} -rf %{buildroot}; fi


%files
%defattr(-,root,root)
%{_libdir}/libcackey.so
%{_libdir}/libcackey_g.so