Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:2024:games
slingshot
slingshot.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File slingshot.spec of Package slingshot
# # spec file for package slingshot # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: slingshot Version: 0.9 Release: 0 Summary: A two dimensional, turn based simulation-strategy game License: GPL-2.0-only Group: Amusements/Games/Strategy/Turn Based URL: https://github.com/ryanakca/slingshot Source: https://github.com/ryanakca/slingshot/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FEATURE-UPSTREAM https://github.com/ryanakca/slingshot/pull/4 Source1: %{name}.appdata.xml # PATCH-FIX-UPSTREAM - slingshot-port-from-python2-to-python3.patch - https://src.fedoraproject.org/rpms/slingshot/blob/rawhide/f/243aef95dde390f97f1e0abbbdb646b3e5b97f7d.patch Patch0: slingshot-port-from-python2-to-python3.patch BuildRequires: gnu-free-fonts BuildRequires: hicolor-icon-theme BuildRequires: python-rpm-macros BuildRequires: python3-devel BuildRequires: update-desktop-files Requires: gnu-free-fonts Requires: python3-pygame BuildArch: noarch %description Slingshot is a two dimensional, turn based simulation-strategy game set in the gravity fields of several planets. It is never the same from round to round due to its randomly generated playing fields. %prep %setup -q %patch0 -p1 %build python3 setup.py build %install # use system fonts rm -f slingshot/data/FreeSansBold.ttf ln -sf %{_datadir}/fonts/truetype/FreeSansBold.ttf src/slingshot/data/FreeSansBold.ttf python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} mv src/slingshot/data/icon64x64.png src/slingshot/data/slingshot.png mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps install -p -m 644 src/slingshot/data/slingshot.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps mkdir -p %{buildroot}%{_datadir}/applications install -p -m 644 data/slingshot.desktop %{buildroot}%{_datadir}/applications # https://en.opensuse.org/openSUSE:AppStore mkdir -p %{buildroot}%{_datadir}/appdata install -p -m 664 %{SOURCE1} %{buildroot}%{_datadir}/appdata %files %license LICENSE %doc README %{_bindir}/%{name} %{python_sitelib}/%{name}/ %{python_sitelib}/%{name}-*.egg-info %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/slingshot.xpm %{_datadir}/icons/hicolor/64x64/apps/%{name}.png %{_datadir}/appdata/slingshot.appdata.xml %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor