File uqm-content.spec of Package uqm-content

#
# spec file for package uqm-content
#
# 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 uqm_contentdir %{_datadir}/uqm/content
Name:           uqm-content
Version:        0.8.0
Release:        0
Summary:        Base content files for The Ur-Quan Masters
License:        SUSE-Redistributable-Content
Group:          Amusements/Games/Action/Shoot
URL:            https://sc2.sourceforge.net/
Source0:        https://download.sourceforge.net/sc2/uqm-%{version}-content.uqm
Source1:        https://download.sourceforge.net/sc2/uqm-%{version}-voice.uqm
Source2:        https://download.sourceforge.net/sc2/uqm-%{version}-3domusic.uqm
Requires:       uqm >= %{version}
BuildArch:      noarch

%description
The Ur-Quan Masters is a port of the classic game Star Control II to
modern systems.  The program code that comprises The Ur-Quan Masters
was derived from code written by Toys for Bob, Inc. for the 3DO
version of Star Control II, with their permission and encouragement.

This package contains the base content files for The Ur-Quan Masters.

%package        voice
Summary:        Optional speech package for The Ur-Quan Masters
Group:          Amusements/Games/Action/Shoot
Requires:       %{name} = %{version}

%description    voice
The Ur-Quan Masters is a port of the classic game Star Control II to
modern systems.  The program code that comprises The Ur-Quan Masters
was derived from code written by Toys for Bob, Inc. for the 3DO
version of Star Control II, with their permission and encouragement.

This package contains the optional speech package for The Ur-Quan Masters.

%package        3domusic
Summary:        Optional 3DO music package for The Ur-Quan Masters
Group:          Amusements/Games/Action/Shoot
Requires:       %{name} = %{version}

%description    3domusic
The Ur-Quan Masters is a port of the classic game Star Control II to
modern systems.  The program code that comprises The Ur-Quan Masters
was derived from code written by Toys for Bob, Inc. for the 3DO
version of Star Control II, with their permission and encouragement.

This package contains the optional 3DO music package for The Ur-Quan Masters.

%prep

%build

%install
install -dm 755 %{buildroot}%{uqm_contentdir}
install -dm 755 %{buildroot}%{uqm_contentdir}/packages
install -dm 755 %{buildroot}%{uqm_contentdir}/addons
install -pm 644 %{SOURCE0} %{buildroot}%{uqm_contentdir}/packages
install -pm 644 %{SOURCE1} %{buildroot}%{uqm_contentdir}/addons
install -pm 644 %{SOURCE2} %{buildroot}%{uqm_contentdir}/addons

%files
%dir %{_datadir}/uqm
%dir %{_datadir}/uqm/content
%dir %{_datadir}/uqm/content/packages
%dir %{_datadir}/uqm/content/addons
%{uqm_contentdir}/packages/uqm-0.8.0-content.uqm 

%files voice
%{uqm_contentdir}/addons/uqm-0.8.0-voice.uqm 

%files 3domusic
%{uqm_contentdir}/addons/uqm-0.8.0-3domusic.uqm 

%changelog
openSUSE Build Service is sponsored by