File ags.spec of Package ags

#
# spec file for package ags
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

Name:           ags
Url:            http://www.adventuregamestudio.co.uk/
License:        Artistic-2.0
Group:          Amusements/Games/Other
Version:        3.5.0.27
Release:        0
Summary:        Adventure Game Studio
Source:         https://github.com/adventuregamestudio/ags/releases/download/v.%{version}/ags_%{version}_source.tar.xz
# PATCH-FIX-FEDORA unbundle alfont
Patch0:         ags-use-system-alfont.patch
# PATCH-FIX-FEDORA unbundle freetype
Patch1:         ags-use-system-freetype.patch
# PATCH-FIX-FEDORA fix missing includes under GCC10
Patch2:         ags-gcc10.patch
# PATCH-FIX-FEDORA use dynamic linking for dumb
Patch3:         ags-dynamic-dumb.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  cmake >= 3.13
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(allegro) >= 4.2.2
BuildRequires:  libaldmb-devel
BuildRequires:  libdumb-devel
BuildRequires:  libalfont-devel
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(ogg)
BuildRequires:  pkgconfig(theora)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  xz

%description
Adventure Game Studio allows you to create your own point-and-click adventure games,
similar to the early 90's Sierra and Lucasarts adventures. It consists of an easy-to-use
editor to create your games, and a run-time engine to play them.

%prep
%autosetup -p1 -n ags_%{version}_source

%build
%make_build --directory=Engine

%install
make --directory=Engine PREFIX=%{buildroot}%{_prefix} install

%files
%doc Changes.txt
%license Copyright.txt License.txt
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by