10 Star 0 Fork 4

src-anolis-dde/onboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
onboard.spec 7.86 KB
一键复制 编辑 原始数据 按行查看 历史
yangxianzhao 提交于 2024-01-12 15:24 . rebuild for qt5-qtbase
# This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1
%define anolis_release .0.4
Name: onboard
Version: 1.4.1
%global major_version 1.4
Release: 18%{anolis_release}%{?dist}
Summary: On-screen keyboard for TabletPC and mobility impaired users (Xorg only)
# The entire source code is GPLv3 apart from translation strings and
# /gnome/Onboard_Indicator@onboard.org/convenience.js which are both BSD-3-clause
License: GPLv3 and BSD
URL: https://launchpad.net/onboard/
Source0: %{url}%{major_version}/%{version}/+download/onboard-%{version}.tar.gz
# Wrong Python interpreter in Onboard/IconPalette.py
# Reported (2017-03-10, fixed in the upstream): https://bugs.launchpad.net/onboard/+bug/1671930
Patch0: onboard-1.4.1-pythonversion.patch
BuildRequires: gcc-c++
BuildRequires: python3-devel
BuildRequires: python3-distutils-extra
BuildRequires: dconf-devel
BuildRequires: libcanberra-devel
BuildRequires: libxkbfile-devel
BuildRequires: libXtst-devel
BuildRequires: libX11-devel
BuildRequires: hunspell-devel
BuildRequires: python3-devel
BuildRequires: intltool
BuildRequires: python3-dbus
BuildRequires: systemd-devel
BuildRequires: desktop-file-utils
Requires: iso-codes
Requires: dbus-x11
Requires: python3-gobject
Requires: onboard-data
%if 0%{?fedora} < 25
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%endif
%description
Onboard is an onscreen keyboard useful for everybody that cannot use a
hardware keyboard; for example TabletPC users, mobility impaired users...
It has been designed with simplicity in mind and can be used right away
without the need of any configuration, as it can read the keyboard layout
from the X server.
%prep
%setup -q
%patch0
%build
%py3_build
%check
# No tests defined in the upstream
%install
%py3_install
# Remove icons for Ubuntu
rm %{buildroot}%{_datadir}/icons/ubuntu* -rf
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{_builddir}/%{name}-%{version}/build/share/applications/onboard.desktop
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{_builddir}/%{name}-%{version}/build/share/applications/onboard-settings.desktop
# Fix the right-click menu of taskbar is displayed in English
install -d %{?buildroot}%{_datadir}/locale/
cp -ap %{_builddir}/%{name}-%{version}/build/mo/* %{?buildroot}%{_datadir}/locale/
# Fix permissions for a couple of scripts so the user may execute them (not normal behaviour, but still)
chmod +x %{buildroot}%{python3_sitearch}/Onboard/IconPalette.py %{buildroot}%{python3_sitearch}/Onboard/settings.py \
%{buildroot}%{python3_sitearch}/Onboard/pypredict/lm_wrapper.py %{buildroot}%{_datadir}/%{name}/layoutstrings.py
%package data
Summary: Data for Onboard
BuildArch: noarch
Requires: onboard
%description data
%{summary}.
%files
%{_bindir}/%{name}*
%{_datadir}/man/man1/onboard*
%{_datadir}/applications/%{name}*.desktop
%{python3_sitearch}/Onboard/
%{python3_sitearch}/onboard*.egg-info
%{_datadir}/glib-2.0/schemas/org.onboard.gschema.xml
%files data
%doc AUTHORS NEWS README HACKING
%license COPYING COPYING.BSD3 COPYING.GPL3
%defattr(-,root,root,-)
%{_datadir}/%{name}/
%{_datadir}/locale/
%{_datadir}/sounds/freedesktop/stereo/onboard-key-feedback.oga
%{_datadir}/icons/HighContrast/scalable/apps/onboard.svg
%{_datadir}/icons/hicolor/*/apps/onboard.*
%{_datadir}/dbus-1/services/org.onboard.Onboard.service
%{_datadir}/gnome-shell/extensions/Onboard_Indicator@onboard.org
%changelog
* Fri Jan 12 2024 yangxianzhao <yangxianzhao@uniontech.com> - 1.4.1-17.0.4
- rebuild for qt5-qtbase
* Wed Sep 20 2023 yangxianzhao <yangxianzhao@uniontech.com> - 1.4.1-17.0.3
- rebuild for qt5-qtbase-5.15.3
* Tue Aug 08 2023 yangxianzhao <yangxianzhao@uniontech.com> - 1.4.1-17.0.2
- rebuild for anolis 8.9 dde
* Thu Dec 29 2022 hanshuang <hanshuang@uniontech.com> - 1.4.1-17.0.1
- Rebuild on an8.7-dde
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-16
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-15
- Rebuilt for Python 3.8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Nov 13 2018 Caolán McNamara <caolanm@redhat.com> - 1.4.1-12
- rebuild for hunspell-1.7.0
* Mon Oct 22 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.4.1-11
- Add compiler to BR
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-10
- Rebuilt for Python 3.7
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.1-8
- Remove obsolete scriptlets
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
* Wed Mar 15 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.4.1-4
- Fixed spec file in regard to #1431322 comment 7 (1431322#c7)
* Wed Mar 15 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.4.1-3
- Fixed spec file in regard to #1431322 comment 5 (1431322#c5)
* Wed Mar 15 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.4.1-2
- Fixed spec file in regard to #1431322
* Fri Mar 10 2017 Nemanja Milosevic <nmilosev@fedoraproject.org> - 1.4.1-1
- Adopted package
- Cleanup
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.94.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Nov 25 2010 Fabian Affolter <fabian@bernewireless.net> - 0.94.0-1
- Fixed #657147
- Updated to new upstream version 0.94.0
* Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.93.0-3
- Fix the build and the scriptlets
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.93.0-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu May 27 2010 Fabian Affolter <fabian@bernewireless.net> - 0.93.0-1
- Updated docs
- Updated to new upstream version 0.93.0
* Fri Dec 18 2009 Fabian Affolter <fabian@bernewireless.net> - 0.92.0-1
- Desktop file and icon removed
- Translations added
- MIME update added
- Updated to new upstream version 0.92.0
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Dec 13 2008 Fabian Affolter <fabian@bernewireless.net> 0.91.2-3
- Clean-up
- gnome-python2 removed
- Fixed issues from Comment #2 in #472027
* Mon Dec 08 2008 Parag Nemade <panemade@gmail.com> 0.91.2-2
- spec cleanup
* Mon Nov 17 2008 Fabian Affolter <fabian@bernewireless.net> 0.91.2-1
- Initial package for Fedora
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-dde/onboard.git
git@gitee.com:src-anolis-dde/onboard.git
src-anolis-dde
onboard
onboard
a8

搜索帮助