automatic version update by autodist [release 0.8.3-1mamba;Wed May 01 2013]

This commit is contained in:
Automatic Build System 2024-01-06 10:07:23 +01:00
parent 77ee6eb78a
commit ca60189957
2 changed files with 180 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# pinentry
A collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project.

178
pinentry.spec Normal file
View File

@ -0,0 +1,178 @@
Name: pinentry
Version: 0.8.3
Release: 1mamba
Summary: A collection of simple PIN or passphrase entry dialogs
Group: Applications/Security
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnupg.org
Source: ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-%{version}.tar.bz2
License: GPL
Requires(post):%{__install_info}
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libcap-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libncurses-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project.
%package qt4
Summary: A simple PIN entry dialog based on qt libraries
Group: Graphical Desktop/Applications/Security
Provides: pinentry-qt
Obsoletes: pinentry-qt
%description qt4
A of simple PIN or passphrase entry dialog based on qt libraries which utilize the Assuan protocol as described by the aegypten project.
%package gtk2
Summary: A simple PIN entry dialog based on Gtk2 libraries
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.
%prep
%setup -q
cd qt4
moc-qt4 pinentrydialog.h > pinentrydialog.moc
moc-qt4 qsecurelineedit.h > qsecurelineedit.moc
cd ..
%build
%configure \
--enable-pinentry-curses \
--disable-pinentry-qt \
--enable-pinentry-qt4 \
--disable-pinentry-gtk \
--enable-pinentry-gtk2 \
--enable-fallback-curses
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -f %{buildroot}%{_bindir}/pinentry
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-curses 20
/usr/sbin/update-alternatives --auto pinentry
%install_info pinentry.info
exit 0
%preun
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove pinentry %{_bindir}/pinentry-curses
%uninstall_info pinentry.info
fi
exit 0
%posttrans
# Fix an upgrade problem: alternatives removed from preun script
if [ $1 -eq 1 ]; then
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-curses 20
/usr/sbin/update-alternatives --auto pinentry
fi
exit 0
%post qt4
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-qt4 40
exit 0
%preun qt4
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove pinentry %{_bindir}/pinentry-qt4
fi
exit 0
%posttrans qt4
# Fix an upgrade problem: alternatives removed from preun script
if [ $1 -eq 1 ]; then
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-qt4 40
/usr/sbin/update-alternatives --auto pinentry
fi
exit 0
%post gtk2
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-gtk-2 30
exit 0
%preun gtk2
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove pinentry %{_bindir}/pinentry-gtk2
fi
exit 0
%posttrans gtk2
# Fix an upgrade problem: alternatives removed from preun script
if [ $1 -eq 1 ]; then
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-gtk-2 30
/usr/sbin/update-alternatives --auto pinentry
fi
exit 0
%files
%defattr(-,root,root)
%{_bindir}/pinentry-curses
%{_infodir}/pinentry.info.*
%doc AUTHORS COPYING
#%doc ChangeLog NEWS README THANKS TODO
%files qt4
%defattr(-,root,root)
%{_bindir}/pinentry-qt4
%files gtk2
%defattr(-,root,root)
%{_bindir}/pinentry-gtk-2
%changelog
* Wed May 01 2013 Automatic Build System <autodist@mambasoft.it> 0.8.3-1mamba
- automatic version update by autodist
* Sun Aug 26 2012 Automatic Build System <autodist@mambasoft.it> 0.8.2-1mamba
- update to 0.8.2
* Tue Dec 21 2010 Automatic Build System <autodist@mambasoft.it> 0.8.1-1mamba
- automatic update by autodist
* Wed Dec 01 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-2mamba
- added Gtk2 package
- rename pinentry-qt to pinentry-qt4 and fix alternatives
* Sun Mar 07 2010 Automatic Build System <autodist@mambasoft.it> 0.8.0-1mamba
- automatic update by autodist
* Wed Jul 01 2009 Automatic Build System <autodist@mambasoft.it> 0.7.6-1mamba
- automatic update by autodist
* Thu Jul 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.5-1mamba
- update to 0.7.5
- alternatives configuration fixed
* Fri Nov 30 2007 Aleph0 <aleph0@openmamba.org> 0.7.4-1mamba
- update to 0.7.4
* Sun Mar 04 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.2-1qilnx
- package created by autospec