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