package fltk binding apart [release 1.2.1-2mamba;Thu Jan 11 2024]

This commit is contained in:
Silvan Calarco 2024-01-11 21:11:13 +01:00
parent 2d715d244b
commit 3d7ba549e1

View File

@ -1,6 +1,6 @@
Name: pinentry
Version: 1.2.1
Release: 1mamba
Release: 2mamba
Summary: A collection of simple PIN or passphrase entry dialogs
Group: Applications/Security
Vendor: openmamba
@ -20,14 +20,14 @@ BuildRequires: libXft-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrender-devel
BuildRequires: libassuan-devel
BuildRequires: libatk-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libcairo-devel
BuildRequires: libefl-devel
BuildRequires: libfltk-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgcr-devel
BuildRequires: libgcr3-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgpg-error-devel
@ -43,6 +43,7 @@ BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
Requires(post): chkconfig
%description
A collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol as described by the aegypten project.
@ -63,6 +64,13 @@ Group: Graphical Desktop/Applications/Security
%description efl
A of simple PIN or passphrase entry dialog based on efl libraries which utilize the Assuan protocol as described by the aegypten project.
%package fltk
Summary: A simple PIN entry dialog based on fltk libraries
Group: Graphical Desktop/Applications/Security
%description fltk
A of simple PIN or passphrase entry dialog based on fltk 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
@ -98,6 +106,8 @@ A of simple PIN or passphrase entry dialog based on qt libraries which utilize t
%makeinstall
rm -f %{buildroot}%{_bindir}/pinentry
rm -f %{buildroot}%{_infodir}/dir
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -105,14 +115,14 @@ rm -f %{buildroot}%{_bindir}/pinentry
/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
@ -120,17 +130,37 @@ 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 efl
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-efl 30
:
%preun efl
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove pinentry %{_bindir}/pinentry-efl
fi
:
%post fltk
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-fltk 30
:
%preun fltk
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove pinentry %{_bindir}/pinentry-fltk
fi
:
%post qt
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-qt 40
exit 0
:
%preun qt
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove pinentry %{_bindir}/pinentry-qt
fi
exit 0
:
%posttrans qt
# Fix an upgrade problem: alternatives removed from preun script
@ -139,27 +169,27 @@ if [ $1 -eq 1 ]; then
/usr/sbin/update-alternatives --install %{_bindir}/pinentry pinentry %{_bindir}/pinentry-qt 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
:
%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
@ -167,12 +197,11 @@ 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
%{_bindir}/pinentry-fltk
%{_infodir}/pinentry.info.*
%doc AUTHORS COPYING
#%doc ChangeLog NEWS README THANKS TODO
@ -182,6 +211,10 @@ exit 0
%defattr(-,root,root)
%{_bindir}/pinentry-efl
%files fltk
%defattr(-,root,root)
%{_bindir}/pinentry-fltk
%files qt
%defattr(-,root,root)
%{_bindir}/pinentry-qt
@ -195,6 +228,9 @@ exit 0
%{_bindir}/pinentry-gnome3
%changelog
* Thu Jan 11 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-2mamba
- package fltk binding apart
* Thu Sep 01 2022 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
- automatic version update by autodist