Name:		virt_cacard
Version:	1.2.1
Release:	6%{?dist}
Summary:	Virtual CAC Card

License:	GPLv3
URL:		https://github.com/Jakuje/virt_cacard/
Source0:	https://github.com/Jakuje/virt_cacard/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz

BuildRequires:	pcsc-lite-devel
BuildRequires:	gcc
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	libcacard-devel

%description
Simple application to emulate CAC Smart cards on PC/SC layer

%prep
%setup -q

%build
./autogen.sh
./configure
make %{?_smp_mflags}


%install
install -d %{buildroot}%{_bindir}
install virt_cacard %{buildroot}%{_bindir}

%files
%license LICENSE
%doc README.md
%{_bindir}/virt_cacard


%changelog
* Wed Jun 01 2022 Jakub Jelen <jjelen@redhat.com> - 1.2.1-3
- New rebuild for RHEL7

* Tue Dec 21 2021 Jakub Jelen <jjelen@redhat.com> - 1.2.1-2
+ new rebuild

* Fri Sep 11 2020 Jakub Jelen <jjelen@redhat.com> - 1.2-1
- New upstream release

* Thu Mar 19 2020 Jakub Jelen <jjelen@redhat.com> - 1.1-1
- Initial release