rebuilt with python3 [release 1.4.1-3mamba;Mon Jan 30 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 08:08:23 +01:00
parent 01dc09477b
commit e6d1f2742d

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: onboard
Version: 1.4.1
Release: 2mamba
Release: 3mamba
Summary: An onscreen keyboard useful for tablet PC users and for mobility impaired users
Group: System/Libraries
Vendor: openmamba
@ -14,27 +14,32 @@ License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-devel
BuildRequires: libXi-devel
BuildRequires: libXtst-devel
BuildRequires: libcairo-devel
BuildRequires: libcanberra-devel
BuildRequires: libdconf-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libhunspell-devel
BuildRequires: libpango-devel
BuildRequires: libpython36-devel
BuildRequires: libpython3-devel
BuildRequires: libstdc++6-devel
BuildRequires: libudev-devel
BuildRequires: libwayland-devel
BuildRequires: libwebp-devel
BuildRequires: libxkbfile-devel
## AUTOBUILDREQ-END
BuildRequires: python-distutils-extra-py36
Requires: python >= %python_version
BuildRequires: python-distutils-extra-py3
Requires: iso-codes
Requires(post): libglib
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
An onscreen keyboard useful for tablet PC users and for mobility impaired users.
@ -44,20 +49,22 @@ An onscreen keyboard useful for tablet PC users and for mobility impaired users.
#%patch0 -p0
%build
CFLAGS="%{optflags}" %{__python36} setup.py build
CFLAGS="%{optflags}" %{__python3} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python36} setup.py install \
%{__python3} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python36_sitearch} \
--install-lib=%{python3_sitearch} \
--record=%{name}.filelist
rm %{buildroot}%{_datadir}/onboard/{AUTHORS,CHANGELOG,COPYING,NEWS,README}
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%find_lang %{name} --with-gnome
%post
if [ $1 -ge 1 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
@ -70,10 +77,13 @@ if [ $1 -eq 0 ]; then
fi
:
%files
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/xdg/autostart/onboard-autostart.desktop
%{_bindir}/onboard
%{_bindir}/onboard-settings
%{_datadir}/applications/onboard-settings.desktop
%{_datadir}/applications/onboard.desktop
%{_datadir}/glib-2.0/schemas/org.onboard.gschema.xml
%{_datadir}/dbus-1/services/org.onboard.Onboard.service
%dir %{_datadir}/gnome-shell/extensions/Onboard_Indicator@onboard.org
@ -96,9 +106,9 @@ fi
%{_datadir}/onboard/onboard-default-settings.gschema.override.example
%{_datadir}/onboard/tools/checkmodels
%{_datadir}/sounds/freedesktop/stereo/onboard-key-feedback.oga
%dir %{python36_sitearch}/Onboard
%{python36_sitearch}/Onboard/*
%{python36_sitearch}/onboard-%{version}*.egg-info
%dir %{python3_sitearch}/Onboard
%{python3_sitearch}/Onboard/*
%{python3_sitearch}/onboard-%{version}*.egg-info
%{_datadir}/icons/ubuntu-mono-dark/status/22/onboard-panel.svg
%{_datadir}/icons/ubuntu-mono-light/status/22/onboard-panel.svg
%{_datadir}/icons/hicolor/scalable/apps/onboard*.svg
@ -109,6 +119,9 @@ fi
%doc AUTHORS COPYING
%changelog
* Mon Jan 30 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.1-3mamba
- rebuilt with python3
* Wed Jul 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.1-2mamba
- install glib schema and require iso-codes