|
|
2c3ec02 |
Name: slingshot
|
|
|
2c3ec02 |
Version: 0.9
|
|
|
e36474b |
Release: 23%{?dist}
|
|
|
2c3ec02 |
Summary: A Newtonian strategy game
|
|
|
2c3ec02 |
|
|
|
29494e1 |
License: GPL-2.0-or-later
|
|
|
2c3ec02 |
URL: https://github.com/ryanakca/slingshot
|
|
|
636984c |
Source0: https://github.com/ryanakca/slingshot/archive/%{version}/slingshot-%{version}.tar.gz
|
|
|
2c3ec02 |
Source1: slingshot.desktop
|
|
|
636984c |
Source2: slingshot.appdata.xml
|
|
|
636984c |
# Port to Python 3
|
|
|
636984c |
Patch0: 243aef95dde390f97f1e0abbbdb646b3e5b97f7d.patch
|
|
|
636984c |
BuildArch: noarch
|
|
|
636984c |
BuildRequires: desktop-file-utils
|
|
|
636984c |
BuildRequires: libappstream-glib
|
|
|
636984c |
BuildRequires: python3-devel
|
|
|
636984c |
BuildRequires: python3-setuptools
|
|
|
636984c |
Requires: gnu-free-sans-fonts
|
|
|
636984c |
Requires: hicolor-icon-theme
|
|
|
636984c |
Requires: python3-pygame
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
%description
|
|
|
2c3ec02 |
Slingshot is a two dimensional, turn based simulation-strategy game
|
|
|
2c3ec02 |
set in the gravity fields of several planets. It is a highly
|
|
|
2c3ec02 |
addictive game, and never the same from round to round due to its
|
|
|
2c3ec02 |
randomly generated playing fields.
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
%prep
|
|
|
2c3ec02 |
%setup -q
|
|
|
636984c |
%patch0 -p1
|
|
|
2c3ec02 |
|
|
|
636984c |
rm -f src/slingshot/data/FreeSansBold.ttf
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
%build
|
|
|
636984c |
%py3_build
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
%install
|
|
|
636984c |
%py3_install
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
rm -rf $RPM_BUILD_ROOT/slingshot
|
|
|
2c3ec02 |
rm -rf $RPM_BUILD_ROOT/home
|
|
|
2c3ec02 |
rm -rf $RPM_BUILD_ROOT/builddir
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
2c3ec02 |
desktop-file-install \
|
|
|
2c3ec02 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
2c3ec02 |
%{SOURCE1}
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
mv src/slingshot/data/icon64x64.png src/slingshot/data/slingshot.png
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
|
|
|
2c3ec02 |
install -p -m 644 src/slingshot/data/slingshot.png \
|
|
|
2c3ec02 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
#install appdata
|
|
|
636984c |
mkdir -p $RPM_BUILD_ROOT/%{_metainfodir}
|
|
|
636984c |
install -p -m 664 %{SOURCE2} $RPM_BUILD_ROOT/%{_metainfodir}
|
|
|
636984c |
appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_metainfodir}/*.appdata.xml
|
|
|
2c3ec02 |
|
|
|
636984c |
#Link to font
|
|
|
636984c |
ln -s %{_datadir}/fonts/gnu-free/FreeSansBold.ttf $RPM_BUILD_ROOT%{python3_sitelib}/%{name}/data/FreeSansBold.ttf
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
%files
|
|
|
2c3ec02 |
%{_bindir}/slingshot
|
|
|
636984c |
%{python3_sitelib}/%{name}-*.egg-info
|
|
|
636984c |
%{python3_sitelib}/%{name}/
|
|
|
2c3ec02 |
%doc README
|
|
|
2c3ec02 |
%license LICENSE
|
|
|
2c3ec02 |
%{_datadir}/applications/slingshot.desktop
|
|
|
2c3ec02 |
%{_datadir}/icons/hicolor/64x64/apps/slingshot.png
|
|
|
6f15eb7 |
%{_datadir}/pixmaps/slingshot.xpm
|
|
|
636984c |
%{_metainfodir}/slingshot.appdata.xml
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
%changelog
|
|
|
e36474b |
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-23
|
|
|
e36474b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
e36474b |
|
|
|
1d44a41 |
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-22
|
|
|
1d44a41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
1d44a41 |
|
|
|
bd717ce |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.9-21
|
|
|
bd717ce |
- Rebuilt for Python 3.12
|
|
|
bd717ce |
|
|
|
29494e1 |
* Wed Mar 01 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.9-20
|
|
|
29494e1 |
- migrated to SPDX license
|
|
|
29494e1 |
|
|
|
c132491 |
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-19
|
|
|
c132491 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
c132491 |
|
|
|
743f17e |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-18
|
|
|
743f17e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
743f17e |
|
|
|
439ab49 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.9-17
|
|
|
439ab49 |
- Rebuilt for Python 3.11
|
|
|
439ab49 |
|
|
|
c7d2f8d |
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-16
|
|
|
c7d2f8d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
c7d2f8d |
|
|
|
735d28d |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-15
|
|
|
735d28d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
735d28d |
|
|
|
e0bcf65 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9-14
|
|
|
e0bcf65 |
- Rebuilt for Python 3.10
|
|
|
e0bcf65 |
|
|
|
c5607dc |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-13
|
|
|
c5607dc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
c5607dc |
|
|
|
636984c |
* Mon Aug 10 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.9-12
|
|
|
636984c |
- Patch to convert to Python 3.
|
|
|
636984c |
|
|
|
2c3ec02 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-11
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-10
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-9
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-8
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Thu Feb 01 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9-7
|
|
|
2c3ec02 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
2c3ec02 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9-6
|
|
|
2c3ec02 |
- Remove obsolete scriptlets
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
|
|
|
2c3ec02 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sat Jan 02 2016 Jon Ciesla <limburgher@gmail.com> - 0.9-1
|
|
|
2c3ec02 |
- New upstream, BZ 1295114
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-13
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-12
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Wed Nov 06 2013 Jon Ciesla <limburgher@gmail.com> - 0.8.1p-11
|
|
|
2c3ec02 |
- Fix URL, BZ 1023983.
|
|
|
2c3ec02 |
- Add appdata file, BZ 1023986.
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-10
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Mon Feb 11 2013 Jon Ciesla <limburgher@gmail.com> - 0.8.1p-9
|
|
|
2c3ec02 |
- Drop desktop vendor tag.
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-8
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-7
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-6
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sat Dec 04 2010 Jon Ciesla <limb@jcomserv.net> - 0.8.1p-5
|
|
|
2c3ec02 |
- Fix for crash, BZ 652244.
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-4
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Tue Mar 24 2009 Jon Ciesla <limb@jcomserv.net> - 0.8.1p-3
|
|
|
2c3ec02 |
- Update for freefont->gnu-free-fonts rename/split.
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1p-2
|
|
|
2c3ec02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
2c3ec02 |
|
|
|
2c3ec02 |
* Thu Sep 06 2007 Jon Ciesla <limb@jcomserv.net> - 0.8.1p-1
|
|
|
2c3ec02 |
- create.
|