File smc.spec of Package smc
#
# spec file for package smc
#
# 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: smc
Version: 1.9
Release: 0
Summary: Secret Maryo Chronicles
License: GPL-3.0-only
Group: Amusements/Games/Action/Arcade
URL: http://www.secretmaryo.org
Source0: https://sourceforge.net/projects/smclone/files/Secret%%20Maryo%%20Chronicles/%{version}/%{name}-%{version}.tar.bz2
Source1: %{name}.desktop
# PATCH-FIX-UPSTREAM smc-boost-filesystem3.patch dimstar@opensuse.org -- Fix buld with boost 1.46, patch taken from the Forum, by upstream auth.
Patch0: smc-boost-filesystem3.patch
Patch1: smc-1.9-fix-implicit-linking.patch
Patch2: smc-fixes-for-cegui-v0-7.diff
Patch3: pkgconfig-cegui.patch
BuildRequires: Mesa-devel
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_system-devel
BuildRequires: pkgconfig
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(CEGUI-0-OPENGL)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(libpng)
Recommends: smc-music-addon
%description
Secret Maryo Chronicles is an Open Source two-dimensional platform game
with a style designed similar to classic sidescroller games.
It uses the platform independent library SDL and, since version 0.98,
the OpenGL accelerated Graphics Renderer. The game is developed in C++.
%prep
%autosetup -p1
# Licenses to shared libraries, available in their own packages
rm -fr docs/licenses
sed -i 's/\r//' docs/*
chmod 644 docs/*
%build
autoreconf -fi
%configure LIBS=-lboost_system
%make_build
%install
%make_install
install -d -m 755 %{buildroot}%{_datadir}/applications
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
install -d -m 755 %{buildroot}%{_mandir}/man6
install -m 644 data/icon/window_32.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name} Games ArcadeGame
%fdupes -s %{buildroot}
#%find_lang 'Secret Maryo Chronicles' %{name}
# -f %{name}.lang
%files
%doc docs/*
%{_bindir}/smc
%{_datadir}/smc
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog