1 # TODO: use system libassuan 2 instead of included libassuan 1
4 %bcond_without gtk # without GTK+ 1.x dialog
5 %bcond_without gtk2 # without GTK+ 2 dialog
6 %bcond_without qt # without Qt dialog
7 %bcond_without qt4 # without Qt4 dialog
9 Summary: Simple PIN or passphrase entry dialogs
10 Summary(pl.UTF-8): Proste kontrolki dialogowe do wpisywania PIN-ów lub haseł
16 Source0: ftp://ftp.gnupg.org/gcrypt/pinentry/%{name}-%{version}.tar.bz2
17 # Source0-md5: e2b6f94471ba1e978f6e5bf6b275189b
18 Patch0: %{name}-system-assuan.patch
19 Patch1: %{name}-info.patch
20 Patch2: %{name}-am.patch
21 Patch3: %{name}-doc.patch
22 Patch4: %{name}-activate.patch
23 URL: http://www.gnupg.org/
24 %{?with_qt4:BuildRequires: QtGui-devel}
25 BuildRequires: autoconf >= 2.57
26 BuildRequires: automake >= 1:1.10
27 BuildRequires: gettext-devel
28 %{?with_gtk:BuildRequires: gtk+-devel >= 1.2.0}
29 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.4.0}
30 #BuildRequires: libassuan-devel
31 BuildRequires: libcap-devel
32 BuildRequires: libstdc++-devel
33 BuildRequires: ncurses-devel
34 BuildRequires: pkgconfig
35 %{?with_qt:BuildRequires: qt-devel}
36 %{?with_qt4:BuildRequires: qt4-build}
37 BuildRequires: texinfo
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 This is a collection of simple PIN or passphrase entry dialogs which
42 utilize the Assuan protocol as described by the aegypten project; see
43 http://www.gnupg.org/aegypten/ for details. Base package contains
46 %description -l pl.UTF-8
47 Jest to zestaw prostych kontrolek dialogowych do wpisywania PIN-ów lub
48 haseł, używające protokołu Assuan opisanego w projekcie aegypten;
49 więcej szczegółów pod adresem http://www.gnupg.org/aegypten/.
50 Podstawowy pakiet zawiera kontrolkę opartą na curses.
53 Summary: Simple PIN or passphrase entry dialog for GTK+ 1.x
54 Summary(pl.UTF-8): Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla GTK+ 1.x
55 Group: X11/Applications
58 Simple PIN or passphrase entry dialog for GTK+ 1.x.
60 %description gtk -l pl.UTF-8
61 Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla GTK+
65 Summary: Simple PIN or passphrase entry dialog for GTK+ 2
66 Summary(pl.UTF-8): Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla GTK+ 2
67 Group: X11/Applications
68 Requires: gtk+2 >= 2:2.4.0
71 Simple PIN or passphrase entry dialog for GTK+ 2.
73 %description gtk2 -l pl.UTF-8
74 Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla GTK+ 2.
77 Summary: Simple PIN or passphrase entry dialog for Qt
78 Summary(pl.UTF-8): Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla Qt
79 Group: X11/Applications
82 Simple PIN or passphrase entry dialog for Qt.
84 %description qt -l pl.UTF-8
85 Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla Qt.
88 Summary: Simple PIN or passphrase entry dialog for Qt4
89 Summary(pl.UTF-8): Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla Qt4
90 Group: X11/Applications
93 Simple PIN or passphrase entry dialog for Qt4.
95 %description qt4 -l pl.UTF-8
96 Prosta kontrolka dialogowa do wpisywania PIN-ów lub haseł dla Qt4.
108 %{_bindir}/moc-qt4 pinentrydialog.h -o pinentrydialog.moc
109 %{_bindir}/moc-qt4 pinentryconfirm.h -o pinentryconfirm.moc
110 %{_bindir}/moc-qt4 qsecurelineedit.h -o qsecurelineedit.moc
121 CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
123 --enable-maintainer-mode \
124 --enable-fallback-curses \
125 --enable-pinentry-curses \
126 --enable-pinentry-gtk%{!?with_gtk:=no} \
127 --enable-pinentry-gtk2%{!?with_gtk2:=no} \
128 --enable-pinentry-qt%{!?with_qt:=no} \
129 --enable-pinentry-qt4%{!?with_qt4:=no} \
130 --enable-pinentry-tty \
131 --with-qt-includes=%{_includedir}/qt
136 rm -rf $RPM_BUILD_ROOT
139 DESTDIR=$RPM_BUILD_ROOT
141 %{__rm} $RPM_BUILD_ROOT%{_bindir}/pinentry
142 cat >$RPM_BUILD_ROOT%{_bindir}/pinentry <<'EOF'
145 if [ -n "$PINENTRY_PROGRAM" ]; then
146 exec $PINENTRY_PROGRAM "$@"
147 elif [ -z "$DISPLAY" ]; then
148 exec %{_bindir}/pinentry-curses "$@"
149 elif [ -x %{_bindir}/pinentry-gtk-2 ]; then
150 exec %{_bindir}/pinentry-gtk-2 "$@"
151 elif [ -x %{_bindir}/pinentry-gtk ]; then
152 exec %{_bindir}/pinentry-gtk "$@"
153 elif [ -x %{_bindir}/pinentry-qt4 ]; then
154 exec %{_bindir}/pinentry-qt4 "$@"
155 elif [ -x %{_bindir}/pinentry-qt ]; then
156 exec %{_bindir}/pinentry-qt "$@"
158 exec %{_bindir}/pinentry-curses "$@"
163 rm -rf $RPM_BUILD_ROOT
165 %post -p /sbin/postshell
166 -/usr/sbin/fix-info-dir -c %{_infodir}
168 %postun -p /sbin/postshell
169 -/usr/sbin/fix-info-dir -c %{_infodir}
172 %defattr(644,root,root,755)
173 %doc AUTHORS ChangeLog NEWS README THANKS TODO
174 %attr(755,root,root) %{_bindir}/pinentry
175 %attr(755,root,root) %{_bindir}/pinentry-curses
176 %attr(755,root,root) %{_bindir}/pinentry-tty
177 %{_infodir}/pinentry.info*
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_bindir}/pinentry-gtk
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_bindir}/pinentry-gtk-2
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/pinentry-qt
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_bindir}/pinentry-qt4