%define version 0.7.5 %define release %mkrel 2 Summary: Collection of simple PIN or passphrase entry dialogs Name: pinentry Version: %{version} Release: %{release} Source0: ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.gz Source1: %{SOURCE0}.sig Patch0: pinentry-0.7.5-glib-fix.patch Patch1: http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/app-crypt/pinentry/files/pinentry-0.7.4-grab.patch # svn diff -c 181 svn://cvs.gnupg.org/pinentry/trunk Patch2: pinentry-0.7.5-realize-transient.patch License: GPLv2+ Group: System/Kernel and hardware BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot URL: http://www.gnupg.org/ Requires(post): info-install Requires(preun):info-install BuildRequires: libgtk+2.0-devel BuildRequires: libcap-devel BuildRequires: ncurses-devel BuildRequires: qt3-devel %description %{name} is a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project. %package curses Summary: Ncurses interface of pinentry Group: System/Kernel and hardware Provides: %{name} = %{version}-%{release} Obsoletes: %{name} < 0.7.5 %description curses %{name} is a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project. This package provides Ncurses interface of the dialog. %package gtk Summary: GTK+ interface of pinentry Group: System/Kernel and hardware Provides: %{name} = %{version}-%{release} Requires: %{name}-curses = %{version}-%{release} %description gtk %{name} is a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project. This package provides GTK+ interface of the dialog. %package qt Summary: QT interface of pinentry Group: System/Kernel and hardware Provides: %{name} = %{version}-%{release} Requires: %{name}-curses = %{version}-%{release} %description qt %{name} is a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project. This package provides QT interface of the dialog. %prep %setup -q %patch0 -p0 -b .glib-fix %patch1 -p1 -b .grab %patch2 -p0 -b .realize-transient %build %configure2_5x \ --disable-pinentry-gtk \ --enable-pinentry-gtk2 \ --disable-rpath %make %install rm -rf %{buildroot} %makeinstall_std #Remove link we will use update alternative rm -f %{buildroot}%{_bindir}/pinentry %post %_install_info %{name}.info update-alternatives --install /usr/bin/pinentry pinentry /usr/bin/pinentry-curses 10 %preun %_remove_install_info %{name}.info if [ "$1" = "0" ]; then update-alternatives --remove pinentry /usr/bin/pinentry-curses fi %post gtk update-alternatives --install /usr/bin/pinentry pinentry /usr/bin/pinentry-gtk-2 20 %postun gtk if [ "$1" = "0" ]; then update-alternatives --remove pinentry /usr/bin/pinentry-gtk-2 fi %post qt update-alternatives --install /usr/bin/pinentry pinentry /usr/bin/pinentry-qt 30 %postun qt if [ "$1" = "0" ]; then update-alternatives --remove pinentry /usr/bin/pinentry-qt fi %clean rm -rf %{buildroot} %files curses %defattr(-,root,root) %doc README TODO ChangeLog NEWS AUTHORS THANKS %{_bindir}/pinentry-curses %{_infodir}/*.info* %files gtk %defattr(-,root,root) %_bindir/pinentry-gtk-2 %files qt %defattr(-,root,root) %{_bindir}/pinentry-qt %changelog * Mon Jul 07 2008 Oden Eriksson <oeriksson@mandriva.com> 0.7.5-2mdv2009.0 + Revision: 232371 - rebuilt against new libcap * Mon Mar 17 2008 Olivier Blin <oblin@mandriva.com> 0.7.5-1mdv2008.1 + Revision: 188312 - do not remove alternatives in postun if the package is not removed - move pinentry-curses in a new pinentry-curses package to make pinentry a virtual package (so that qt/gtk versions can be selected when pinentry is required) - realize the window as transient if keyboard is grabbed (from upstream SVN) - fix keyboard grab (from Gentoo) - fix build with latest glib that broke g_malloc API (from upstream ML) - restore BuildRoot + Tomasz Pawel Gajc <tpg@mandriva.org> - drop not applied patch - set buildrequires on libcap-devel - new version - new license policy + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue Dec 11 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.7.4-1mdv2008.1 + Revision: 117509 - new version * Mon Sep 10 2007 Per Ãyvind Karlsen <peroyvind@mandriva.org> 0.7.3-2mdv2008.0 + Revision: 84038 - fix broken info entry (P0, should fix #32534) - $QTLIB is already set by /etc/profile.d/qt3.sh, so don't set it in spec * Thu Jul 26 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0.7.3-1mdv2008.0 + Revision: 55628 - correct configure options - nuke rpath - update to the latest version - Import pinentry * Mon Sep 18 2006 Gwenole Beauchesne <gbeauchesne@mandriva.com> 0.7.2-6mdv2007.0 - Rebuild * Fri Jul 28 2006 Laurent MONTEL <lmontel@mandriva.com> 0.7.2-5 - Add patch to disable gtk-1.2 support * Mon Jun 19 2006 Laurent MONTEL <lmontel@mandriva.com> 0.7.2-4 - Add patch from Raphaël Gertz to use update-alternative * Fri Feb 24 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.7.2-3mdk - Add Requires(post|preun): fix ticket #17416 - use mkrel * Sat May 28 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.7.2-2mdk - add BuildRequires: libgtk+2.0-devel * Tue May 17 2005 Laurent MONTEL <lmontel@mandriva.com> 0.7.2-1mdk - 0.7.2 * Mon Mar 14 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.7.1-4mdk - fix build on lib64 platforms * Tue Mar 08 2005 Laurent MONTEL <lmontel@mandrakesoft.com> 0.7.1-3mdk - Rebuild * Sat Jun 19 2004 Abel Cheung <deaddog@deaddog.org> 0.7.1-2mdk - Rebuild with new gcc * Thu May 20 2004 Abel Cheung <deaddog@deaddog.org> 0.7.1-1mdk - New version - Don't build against libcap * Sat Jan 24 2004 Abel Cheung <deaddog@deaddog.org> 0.7.0-1mdk - New version - Enable all interfaces * Fri Nov 14 2003 Florin <florin@mandrakesoft.com> 0.6.9-2mdk - rebuild * Wed Apr 30 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.9-1mdk - Update version * Tue Feb 18 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.8-1mdk - Update and fix spec file thanks to <fabrice-marie-sec@ifrance.com> * Tue Jan 28 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.6-2mdk - Fix link as report Jason Straight <jason@JeetKuneDoMaster.net> * Wed Dec 11 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.6-1mdk - update spec file from Fabrice MARIE <fabrice-marie-sec@ifrance.com> * Sat Oct 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.5-1mdk - Initial package