- fc5: gcc/glibc respin
This commit is contained in:
parent
422db444a8
commit
38ee87c7a3
@ -1,6 +1,7 @@
|
||||
|
||||
Name: pinentry
|
||||
Version: 0.7.2
|
||||
Release: 1%{?dist}
|
||||
Release: 1%{?dist}.1
|
||||
Summary: Collection of simple PIN or passphrase entry dialogs
|
||||
|
||||
Group: Applications/System
|
||||
@ -8,16 +9,19 @@ License: GPL
|
||||
URL: http://www.gnupg.org/aegypten/
|
||||
Source0: http://ftp.gnupg.org/gcrypt/pinentry/%{name}-%{version}.tar.gz
|
||||
Source1: http://ftp.gnupg.org/gcrypt/pinentry/%{name}-%{version}.tar.gz.sig
|
||||
Patch0: %{name}-info.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Patch0: pinentry-info.patch
|
||||
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: qt-devel
|
||||
BuildRequires: ncurses-devel
|
||||
|
||||
Requires(post): %{_sbindir}/update-alternatives
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(postun): %{_sbindir}/update-alternatives
|
||||
Requires(postun): /sbin/install-info
|
||||
|
||||
Provides: %{name}-curses = %{version}-%{release}
|
||||
|
||||
%description
|
||||
@ -30,10 +34,9 @@ This package contains the curses (text) based version of the PIN entry dialog.
|
||||
Summary: Passphrase/PIN entry dialog based on GTK+
|
||||
Group: Applications/System
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-gui = %{version}-%{release}
|
||||
Requires(post): %{_sbindir}/update-alternatives
|
||||
Requires(postun): %{_sbindir}/update-alternatives
|
||||
Provides: %{name}-gui = %{version}-%{release}
|
||||
|
||||
%description gtk
|
||||
Pinentry is a collection of simple PIN or passphrase entry dialogs which
|
||||
utilize the Assuan protocol as described by the aegypten project; see
|
||||
@ -44,10 +47,9 @@ This package contains the GTK+ GUI based version of the PIN entry dialog.
|
||||
Summary: Passphrase/PIN entry dialog based on Qt
|
||||
Group: Applications/System
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-gui = %{version}-%{release}
|
||||
Requires(post): %{_sbindir}/update-alternatives
|
||||
Requires(postun): %{_sbindir}/update-alternatives
|
||||
Provides: %{name}-gui = %{version}-%{release}
|
||||
|
||||
%description qt
|
||||
Pinentry is a collection of simple PIN or passphrase entry dialogs which
|
||||
utilize the Assuan protocol as described by the aegypten project; see
|
||||
@ -57,22 +59,34 @@ This package contains the Qt GUI based version of the PIN entry dialog.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
|
||||
%build
|
||||
[ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
|
||||
%configure --disable-rpath --disable-dependency-tracking --disable-pinentry-gtk
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export QTLIB=${QTDIR}/lib QTINC=${QTDIR}/include
|
||||
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
--disable-dependency-tracking \
|
||||
--disable-pinentry-gtk
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
# Backwards compatibility
|
||||
ln -s pinentry-gtk-2 $RPM_BUILD_ROOT%{_bindir}/pinentry-gtk
|
||||
|
||||
# Dummy symlink for %%ghost
|
||||
ln -sf %{_sysconfdir}/alternatives/pinentry $RPM_BUILD_ROOT%{_bindir}/pinentry
|
||||
|
||||
# unpackaged files
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
|
||||
@ -81,7 +95,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%post
|
||||
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
|
||||
/sbin/install-info %{_infodir}/pinentry.info %{_infodir}/dir || :
|
||||
if [ $1 -eq 1 ] ; then
|
||||
%{_sbindir}/update-alternatives --install %{_bindir}/pinentry \
|
||||
pinentry %{_bindir}/pinentry-curses 10
|
||||
@ -101,8 +115,7 @@ fi
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
/sbin/install-info --delete %{_infodir}/%{name}.info \
|
||||
%{_infodir}/dir 2>/dev/null || :
|
||||
/sbin/install-info --delete %{_infodir}/pinentry.info %{_infodir}/dir || :
|
||||
%{_sbindir}/update-alternatives --remove pinentry %{_bindir}/pinentry-curses
|
||||
fi
|
||||
|
||||
@ -136,6 +149,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net>
|
||||
- fc5: gcc/glibc respin
|
||||
|
||||
* Tue Oct 18 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.7.2-1
|
||||
- 0.7.2, docs patch applied upstream.
|
||||
- Switch to GTK2 in -gtk.
|
||||
|
Loading…
Reference in New Issue
Block a user