%global commit0 722c52e819e98ed8b88a26f9891d4b6b0983bcb7 %global date0 20160804 Name: apx Version: 0.1 Release: 41.%{date0}git%{?dist} Summary: QIX clone, cut into and claim the square area # Automatically converted from old format: MIT - review is highly recommended. License: MIT URL: https://github.com/tstriker/%{name} Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{commit0}.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-setuptools BuildRequires: fontpackages-devel BuildRequires: desktop-file-utils libappstream-glib Requires: python3 Requires: hicolor-icon-theme # need introspection for cairo Requires: python3-gobject Requires: python3-cairo Requires: %{name}-fonts = %{version}-%{release} %description APX is a QIX clone with minor differences in game-play from the original. Read about the original: http://en.wikipedia.org/wiki/Qix Use arrow keys to move around the perimeter of square, hold down Space or Shift to cut into the area. Connect back to perimeter to claim the area. Your objective is to claim 75 percent or more to proceed to the next level. Claiming with Shift key will be slower but give you double the points. For every claimed full percent over 75 percent you get extra 1000 points. %package fonts Summary: Fonts for the game %{name} # Automatically converted from old format: CC-BY - review is highly recommended. License: LicenseRef-Callaway-CC-BY URL: http://www.04.jp.org/ BuildArch: noarch Requires: fontpackages-filesystem %description fonts Fonts for the game %{name}. Redistribution from: http://www.04.jp.org %prep %autosetup -p1 -n%{name}-%{commit0} sed -i s,Games,Game, data/*.desktop # add right shebang sed -i '1d;2i#!%{__python3}' bin/%{name} find %{name} -name \*.py |xargs sed -i '/^#!\//, 1d' # do not try to install the font again and again sed -i /utils.install_font.*/d bin/%{name} sed -i -r 's,(fonts/)04b03,\1%{name},' setup.py %build sed -i '/"install":/d' setup.py %py3_build %install %py3_install # avoid misplaced license file find %{buildroot} -name '*LICENSE' -print -delete %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %files %license LICENSE %doc AUTHORS README.md %dir %{_datadir}/%{name} %{_datadir}/%{name}/*.sqlite %{_datadir}/icons/hicolor/scalable/*.svg %{python3_sitelib}/* %{_bindir}/%{name} %{_datadir}/applications/*.desktop %{_datadir}/appdata/*.appdata.xml %_font_pkg *.ttf %license data/*_LICENSE %changelog * Wed Aug 28 2024 Miroslav Suchý - 0.1-41.20160804git - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 0.1-40.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.1-39.20160804git - Rebuilt for Python 3.13 * Mon Jan 22 2024 Fedora Release Engineering - 0.1-38.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0.1-37.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 0.1-36.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.1-35.20160804git - Rebuilt for Python 3.12 * Wed Jan 18 2023 Fedora Release Engineering - 0.1-34.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 0.1-33.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.1-32.20160804git - Rebuilt for Python 3.11 * Wed Jan 19 2022 Fedora Release Engineering - 0.1-31.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0.1-30.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.1-29.20160804git - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 0.1-28.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.1-27.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.1-26.20160804git - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 0.1-25.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.1-24.20160804git - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.1-23.20160804git - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 0.1-22.20160804git - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 10 2019 Raphael Groner - 0.1-21.20160804git - fix build for python 3.8 - condense upstreamed patches * Thu Jan 31 2019 Fedora Release Engineering - 0.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 0.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.1-18 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 0.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Jan 07 2018 Igor Gnatenko - 0.1-16 - Remove obsolete scriptlets * Wed Jul 26 2017 Fedora Release Engineering - 0.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.1-13 - Rebuild for Python 3.6 * Sun Jul 31 2016 Raphael Groner - 0.1-12 - add another patch for python3 * Fri Jul 29 2016 Raphael Groner - 0.1-11 - add patch: Difficult to see with some desktop themes * Tue Jul 19 2016 Fedora Release Engineering - 0.1-10 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Sun Jul 10 2016 Raphael Groner - 0.1-9 - note new upstream URL * Sat Jul 09 2016 Raphael Groner - 0.1-8 - fix crash with python3, rhbz#1347738 * Wed Feb 03 2016 Fedora Release Engineering - 0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Dec 27 2015 Raphael Groner - 0.1-6 - fix Requires again * Sat Dec 26 2015 Raphael Groner - 0.1-5 - fix b0rken dependencies to cairo - apply acceptance of upstream 2to3 - apply upstream patch to revert removal of R: hicolor-icon-theme - comply to fonts packaging policy * Fri Dec 25 2015 Raphael Groner - 0.1-4 - apply latest upstream patches - port to python3 - enable appdata validation - remove R: hicolor-icons-theme * Sat Sep 26 2015 Raphael Groner - 0.1-3 - avoid duplicated but misplaced license file from doc folder * Wed Jun 17 2015 Fedora Release Engineering - 0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Feb 23 2015 Raphael Groner - 0-0.7.20150118gite978d95 - first official upstream release v0.1 * Wed Jan 28 2015 Raphael Groner - 0-0.8.20150118gite978d95 - introduce license macro * Sun Jan 18 2015 Raphael Groner - 0-0.7.20150118gite978d95 - new upstream snapshot - remove obsolete tweaks - legal fonts subpackage * Mon Jan 12 2015 Raphael Groner - 0-0.6.20141101gite7766f1 - R: pycairo without -devel * Fri Dec 19 2014 Raphael Groner - 0-0.5.20141102gite7766f1 - require cairo - honor AUTHORS - use date of last commit (instead of export/clone) * Mon Nov 03 2014 Raphael Groner - 0-0.4.20141102gite7766f1 - proper usage of macro python2_sitelib - comment about strange location for redistributed font * Sun Nov 02 2014 Raphael Groner - 0-0.3.20141102gite7766f1 - new snapshot: license change for font * Wed Oct 29 2014 Raphael Groner - 0-0.2.20141010git853fdd0 - fix Requires - fix description - preserve timestamps * Sat Oct 11 2014 Raphael Groner - 0-0.1.20141010git853fdd0 - initial