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