diff --git a/pinentry.spec b/pinentry.spec index 74ba061..96ff9d8 100644 --- a/pinentry.spec +++ b/pinentry.spec @@ -1,5 +1,5 @@ Name: pinentry -Version: 0.9.1 +Version: 0.9.5 Release: 1mamba Summary: A collection of simple PIN or passphrase entry dialogs Group: Applications/Security @@ -49,6 +49,13 @@ Group: Graphical Desktop/Applications/Security %description gtk2 A of simple PIN or passphrase entry dialog based on qt libraries which utilize the Assuan protocol as described by the aegypten project. +%package gnome +Summary: A simple PIN entry dialog for Gnome 3 desktop +Group: Graphical Desktop/Applications/Security + +%description gnome +A of simple PIN or passphrase entry dialog based on qt libraries which utilize the Assuan protocol as described by the aegypten project. + %prep %setup -q cd qt4 @@ -123,6 +130,16 @@ if [ $1 -eq 0 ]; then fi exit 0 +%post gnome +/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-gnome-2 35 +exit 0 + +%preun gnome +if [ $1 -eq 0 ]; then +/usr/sbin/update-alternatives --remove pinentry %{_bindir}/pinentry-gnome +fi +exit 0 + %posttrans gtk2 # Fix an upgrade problem: alternatives removed from preun script if [ $1 -eq 1 ]; then @@ -134,6 +151,7 @@ exit 0 %files %defattr(-,root,root) %{_bindir}/pinentry-curses +%{_bindir}/pinentry-emacs %{_infodir}/pinentry.info.* %doc AUTHORS COPYING #%doc ChangeLog NEWS README THANKS TODO @@ -146,7 +164,13 @@ exit 0 %defattr(-,root,root) %{_bindir}/pinentry-gtk-2 +%files gnome +%{_bindir}/pinentry-gnome3 + %changelog +* Tue Aug 18 2015 Automatic Build System 0.9.5-1mamba +- automatic version update by autodist + * Thu Apr 02 2015 Automatic Build System 0.9.1-1mamba - automatic update by autodist