Summary:	A collection of PIN or passphrase entry dialogs
Name:		pinentry
Version:	1.0.0
Release:	2%{?dist}
License:	GPLv3+
URL:		https://gnupg.org/software/pinentry/index.html
Group:		Applications/Cryptography.
Source0:        https://gnupg.org/ftp/gcrypt/%{name}/%{name}-%{version}.tar.bz2
%define sha1 pinentry=85d9ac81ebad3fb082514c505c90c39a0456f1f6
Vendor:		VMware, Inc.
Distribution:	Photon
BuildRequires:  libassuan
BuildRequires:  ncurses-devel
BuildRequires:  libgpg-error

%description
pinentry is a small collection of dialog programs that allow GnuPG to read passphrases and PIN numbers in a secure manner.
There are versions for the common GTK and Qt toolkits as well as for the text terminal (Curses).
They utilize the Assuan protocol as specified in the Libassuan manual. 


%prep
%setup -q -n %{name}-%{version}

%build
./configure --prefix=%{_prefix}      \
            --sysconfdir=%{_sysconfdir} \
            --with-libusb=no \
            --enable-pinentry-tty

make
%install
make DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%{_bindir}/*
%{_infodir}/*
%exclude %{_infodir}/dir

%changelog
*       Wed Aug 16 2017 Danut Moraru <dmoraru@vmware.com> 1.0.0-2
-       Build pinentry-tty
*       Mon Jul 31 2017 Kumar Kaushik <kaushikk@vmware.com> 1.0.0-1
-       Initial Build.