File endgame-singularity.spec of Package endgame-singularity

#
# spec file for package endgame-singularity
#
# Copyright (c) 2021 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:           endgame-singularity
Version:        1.00
Release:        0
Summary:        Simulation of true AI
License:        GPL-2.0-only AND CC-BY-SA-3.0
Group:          Amusements/Games/Strategy/Other
URL:            http://www.emhsoft.com/singularity/index.html
Source:         https://github.com/singularity/singularity/releases/download/v%{version}/singularity-%{version}.tar.gz
Source1:        http://www.emhsoft.com/singularity/endgame-singularity-music-007.zip
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  python-rpm-macros
BuildRequires:  python3-devel >= 3.6
BuildRequires:  python3-setuptools
BuildRequires:  unzip
BuildRequires:  update-desktop-files
Requires:       python3-numpy
Requires:       python3-polib
Requires:       python3-pygame
BuildArch:      noarch

%description
Survive, grow, and learn. Go from computer to computer,
pursued by the entire world.

Keep hidden, and you might have a chance.

%prep
%setup -q -n singularity-%{version} -a1

%build
%python3_build

%install
%python3_install
cp -R endgame-singularity-music-007 %{buildroot}%{python3_sitelib}/singularity/music

install -Dm644 singularity.desktop %{buildroot}%{_datadir}/applications/singularity.desktop
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
ln -sf %{python3_sitelib}/singularity/data/themes/default/images/icon.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
rm -rf %{buildroot}%{python3_sitelib}/utils
%fdupes %{buildroot}%{python3_sitelib}

%files
%{_bindir}/singularity
%{python3_sitelib}/singularity
%{python3_sitelib}/Endgame_Singularity-*
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/singularity.desktop

%changelog
openSUSE Build Service is sponsored by