[packages/pinentry] up to 1.1.1

atler atler at pld-linux.org
Fri Jan 22 13:33:13 CET 2021


commit 54ee0da97db8cc09865e01876cf8fd1dacbf4951
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Jan 22 13:30:42 2021 +0100

    up to 1.1.1
    
    - package efl pinentry (disabled: requires elementary >= 1.18)

 pinentry-format.patch | 26 --------------------------
 pinentry.spec         | 44 ++++++++++++++++++++++++++++++++++----------
 2 files changed, 34 insertions(+), 36 deletions(-)
---
diff --git a/pinentry.spec b/pinentry.spec
index 086fedd..c992843 100644
--- a/pinentry.spec
+++ b/pinentry.spec
@@ -1,6 +1,7 @@
 # TODO: TQt dialog [BR: pkgconfig(tqt) or pkgconfig(tqt-mt), tqmoc tool]
 #
 # Conditional build:
+%bcond_with	efl	# EFL dialog
 %bcond_without	fltk	# FLTK dialog
 %bcond_without	gtk2	# GTK+ 2 dialog
 %bcond_without	gnome3	# GNOME 3 dialog
@@ -10,15 +11,14 @@
 Summary:	Simple PIN or passphrase entry dialogs
 Summary(pl.UTF-8):	Proste kontrolki dialogowe do wpisywania PIN-ów lub haseł
 Name:		pinentry
-Version:	1.1.0
-Release:	3
+Version:	1.1.1
+Release:	1
 License:	GPL v2+
 Group:		Applications
 Source0:	ftp://ftp.gnupg.org/gcrypt/pinentry/%{name}-%{version}.tar.bz2
-# Source0-md5:	3829315cb0a1e9cedc05ffe6def7a2c6
+# Source0-md5:	d7f646d373b722317d985cddc1d107c1
 Patch0:		%{name}-info.patch
 Patch1:		%{name}-am.patch
-Patch2:		%{name}-format.patch
 URL:		http://www.gnupg.org/
 %{?with_qt5:BuildRequires:	Qt5Core-devel >= 5}
 %{?with_qt5:BuildRequires:	Qt5Gui-devel >= 5}
@@ -27,11 +27,12 @@ URL:		http://www.gnupg.org/
 %{?with_qt4:BuildRequires:	QtGui-devel >= 4}
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake >= 1:1.14
+%{?with_efl:BuildRequires:	elementary-devel >= 1.18}
 %{?with_fltk:BuildRequires:	fltk-devel >= 1.3}
 BuildRequires:	gettext-tools
 %{?with_gnome3:BuildRequires:	gcr-devel >= 3}
 %{?with_gnome3:BuildRequires:	gcr-ui-devel >= 3}
-%{?with_gtk2:BuildRequires:	gtk+2-devel >= 2:2.4.0}
+%{?with_gtk2:BuildRequires:	gtk+2-devel >= 2:2.12.0}
 BuildRequires:	libassuan-devel >= 1:2.1.0
 BuildRequires:	libcap-devel
 BuildRequires:	libgpg-error-devel >= 1.16
@@ -71,9 +72,24 @@ Simple PIN or passphrase entry dialog for Emacs.
 %description emacs -l pl.UTF-8
 Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla Emacsa.
 
+%package efl
+Summary:	Simple PIN or passphrase entry dialog using EFL
+Summary(pl.UTF-8):	Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł wykorzystująca bibliotekę EFL
+Group:		X11/Applications
+Requires:	elementary-libs >= 1.18
+Requires:	libassuan >= 1:2.1.0
+Requires:	libgpg-error >= 1.16
+
+%description efl
+Simple PIN or passphrase entry dialog using EFL.
+
+%description efl -l pl.UTF-8
+Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł
+wykorzystująca bibliotekę EFL.
+
 %package fltk
 Summary:	Simple PIN or passphrase entry dialog using FLTK
-Summary(pl.UTF-8):	Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł wykorzystujący bibliotekę FLTK
+Summary(pl.UTF-8):	Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł wykorzystująca bibliotekę FLTK
 Group:		X11/Applications
 Requires:	fltk >= 1.3
 Requires:	libassuan >= 1:2.1.0
@@ -84,13 +100,13 @@ Simple PIN or passphrase entry dialog using FLTK.
 
 %description fltk -l pl.UTF-8
 Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł
-wykorzystujący bibliotekę FLTK.
+wykorzystująca bibliotekę FLTK.
 
 %package gnome3
 Summary:	Simple PIN or passphrase entry dialog for GNOME 3
 Summary(pl.UTF-8):	Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla GNOME 3
 Group:		X11/Applications
-Requires:	gtk+2 >= 2:2.4.0
+Requires:	gtk+2 >= 2:2.12.0
 Requires:	libassuan >= 1:2.1.0
 Requires:	libgpg-error >= 1.16
 
@@ -104,7 +120,7 @@ Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla GNOME 3.
 Summary:	Simple PIN or passphrase entry dialog for GTK+ 2
 Summary(pl.UTF-8):	Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla GTK+ 2
 Group:		X11/Applications
-Requires:	gtk+2 >= 2:2.4.0
+Requires:	gtk+2 >= 2:2.12.0
 Requires:	libassuan >= 1:2.1.0
 Requires:	libgpg-error >= 1.16
 
@@ -144,7 +160,6 @@ Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla Qt5.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %if 0
 cd qt4
@@ -168,6 +183,7 @@ cd build
 	--disable-libsecret \
 	--enable-fallback-curses \
 	--enable-pinentry-curses \
+	--enable-pinentry-efl%{!?with_efl:=no} \
 	--enable-pinentry-emacs \
 	--enable-pinentry-fltk%{!?with_fltk:=no} \
 	--enable-pinentry-gnome3%{!?with_gnome3:=no} \
@@ -237,6 +253,8 @@ elif [ -x %{_bindir}/pinentry-qt ]; then
 	exec %{_bindir}/pinentry-qt "$@"
 elif [ -x %{_bindir}/pinentry-fltk ]; then
 	exec %{_bindir}/pinentry-fltk "$@"
+elif [ -x %{_bindir}/pinentry-efl ]; then
+	exec %{_bindir}/pinentry-efl "$@"
 else
 	exec %{_bindir}/pinentry-curses "$@"
 fi
@@ -259,6 +277,12 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/pinentry-tty
 %{_infodir}/pinentry.info*
 
+%if %{with efl}
+%files efl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pinentry-efl
+%endif
+
 %files emacs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/pinentry-emacs
diff --git a/pinentry-format.patch b/pinentry-format.patch
deleted file mode 100644
index dad35d8..0000000
--- a/pinentry-format.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- pinentry-1.1.0/fltk/main.cxx.orig	2017-12-03 17:13:05.000000000 +0100
-+++ pinentry-1.1.0/fltk/main.cxx	2017-12-05 17:52:30.945016594 +0100
-@@ -241,12 +241,12 @@
- 				if (pe->one_button)
- 				{
- 					fl_ok = ok.c_str();
--					fl_message(message);
-+					fl_message("%s", message);
- 					result = 1; // OK
- 				}
- 				else if (pe->notok)
- 				{
--					switch (fl_choice(message, ok.c_str(), cancel.c_str(), pe->notok))
-+					switch (fl_choice("%s", ok.c_str(), cancel.c_str(), pe->notok, message))
- 					{
- 					case 0: result = 1; break;
- 					case 2: result = 0; break;
-@@ -256,7 +256,7 @@
- 				}
- 				else
- 				{
--					switch (fl_choice(message, ok.c_str(), cancel.c_str(), NULL))
-+					switch (fl_choice("%s", ok.c_str(), cancel.c_str(), NULL, message))
- 					{
- 					case 0: result = 1; break;
- 					default:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pinentry.git/commitdiff/0ddd2638a88108c1db99d1429095c948a1564d98



More information about the pld-cvs-commit mailing list