File vegastrike-data.spec of Package vegastrike-data
#
# spec file for package vegastrike-data
#
# 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/
#
%define srcname Assets-Production
Name: vegastrike-data
Version: 0.8.0
Release: 0
Summary: Data files for Vega Strike
License: GPL-2.0-or-later
Group: Amusements/Games/3D/Simulation
URL: https://www.vega-strike.org/
Source0: https://github.com/vegastrike/%{srcname}/archive/refs/tags/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- https://github.com/vegastrike/Assets-Production/pull/57
Patch0: 0001-CMake-do-not-require-any-compiler.patch
BuildRequires: cmake
BuildRequires: fdupes
Requires: vegastrike >= %{version}
BuildArch: noarch
ExcludeArch: %{ix86}
%description
Data files for Vega Strike, a GPL 3D OpenGL Action RPG space sim that allows
a player to trade and bounty hunt.
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%cmake
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}/vegastrike
# Remove duplicate license file because we package it already
rm -rfv %{buildroot}%{_datadir}/vegastrike/vega-license.txt
# Remove devel stuff - fix devel-file-in-non-devel-package
rm -rfv %{buildroot}%{_datadir}/vegastrike/programs/*.h
rm -rfv %{buildroot}%{_datadir}/vegastrike/programs/planet/*.h
%files
%license vega-license.txt
%{_bindir}/vs*
%{_datadir}/vegastrike
%{_datadir}/applications/vega*.desktop
%{_datadir}/pixmaps/vega*
%changelog