%define svn %nil Name: pinentry Version: 0.8.1 %if "%svn" != "" Release: 0.%svn.1ark Source: %name-%svn.tar.lz %else Release: 1ark Source: ftp://ftp.gnupg.org/gcrypt/pinentry/%name-%version.tar.gz %endif Summary: PIN entry dialogs URL: ftp://ftp.gnupg.org/gcrypt/pinentry/ License: GPL Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-root BuildRequires: libcap-devel %track prog %name = { url = ftp://ftp.gnupg.org/gcrypt/pinentry/ regex = %name-(__VER__)\.tar\.gz version = %version } %description This is a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project; see http://www.gnupg.org/aegypten/ for details. There are programs for different toolkits available. For all GUIs it is automatically detected which modules can be built, but it can also be requested explicitely. %package qt Summary: Graphical version of PIN entry dialogs Group: System/Libraries Requires: %name = %version-%release %description qt Graphical version of PIN entry dialogs %prep %if "%svn" != "" %setup -q -n %name %else %setup -q %endif aclocal -I m4 autoheader automake -a autoconf find . -name "*.moc" |xargs rm cd qt4 for i in *.h; do moc -o ${i/.h/.moc} $i done cd .. [ -e doc/version.texi ] || echo %version >doc/version.texi %configure --disable-pinentry-gtk --disable-pinentry-gtk2 --with-qt-libraries=%_libdir/qt4/lib --with-qt-includes=%_libdir/qt4/include %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT" %files %defattr(-,root,root) %_bindir/pinentry %_bindir/pinentry-curses %_infodir/pinentry* %files qt %defattr(-,root,root) %_bindir/pinentry-qt4 %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Thu Sep 29 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 0.8.1-1ark - 0.8.1 * Fri Apr 16 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 0.8.0-1ark - 0.8.0 * Sun Jun 21 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 0.7.6-1ark - 0.7.6 final - Add rpm5 tracking info * Fri May 29 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 0.7.6-0.204.1ark - Update -- the Qt4 port is upstream now * Fri May 23 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 0.7.5-1ark - 0.7.5 - Add preliminary (not yet 100% secure) Qt4 support * Mon Jan 28 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 0.7.4-1ark - 0.7.4 * Sun Jul 7 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 0.7.3-1ark - 0.7.3 * Sat Sep 24 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 0.7.2-2ark - Rebuild w/ new Qt * Thu Mar 10 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 0.7.2-1ark - initial RPM