%bcond_without freetype %bcond_without openal %global fver v.%{version} %define ags_license Artistic 2.0 and BSD and Giftware and LGPLv2+ and Public Domain and zlib %if %{without freetype} %define license_full %{ags_license} and FTL %else %define license_full %{ags_license} %endif Name: ags Summary: Engine for creating and running videogames of adventure (quest) genre Version: 3.6.0.36 URL: http://www.adventuregamestudio.co.uk/site/ags/ Release: 1%{?dist} Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz # unbundle freetype Patch2: %{name}-use-system-freetype.patch # use openal-soft Patch3: %{name}-use-openal.patch License: %{license_full} %if %{with freetype} BuildRequires: freetype-devel %else # incorrect rendering with new FT: https://github.com/adventuregamestudio/ags/issues/1528 Provides: bundled(freetype) = 2.1.3 %endif %if %{with openal} BuildRequires: openal-soft-devel %else # https://github.com/icculus/mojoAL (zlib) Provides: bundled(mojoal) %endif BuildRequires: gcc-c++ BuildRequires: glm-devel # for KHR/khrplatform.h BuildRequires: libglvnd-devel BuildRequires: libogg-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: make BuildRequires: SDL2-devel BuildRequires: SDL2_sound-devel BuildRequires: tinyxml2-devel # https://web.archive.org/web/20050323070052/http://www.inp.nsk.su/~bukinm/dusty/aastr/ (Giftware) # dead upstream, might be possible to use aastr2: # https://www.allegro.cc/resource/Libraries/Graphics/AASTR2 Provides: bundled(aastr) = 0.1.1 # bundled alfont is patched Provides: bundled(alfont) = 2.0.9 # bundled allegro is stripped and patched Provides: bundled(allegro) = 4.4.3 # http://kcat.strangesoft.net/apeg.html (Public Domain) Provides: bundled(apeg) = 1.2.1 # https://web.archive.org/web/20040104090747/http://www.alphalink.com.au/~tjaden/libcda/index.html (zlib) # dead upstream Provides: bundled(libcda) = 0.5 %description Adventure Game Studio (AGS) - is the IDE and the engine meant for creating and running videogames of adventure (aka "quest") genre. It has potential, although limited, support for other genres as well. Originally created by Chris Jones back in 1999, AGS was opensourced in 2011 and since continued to be developed by contributors. %prep %setup -q -n %{name}-%{?commit:%{commit}}%{!?commit:%{fver}} %if %{with freetype} %patch2 -p1 -b .noft %endif %if %{with openal} %patch3 -p1 -b .openal %endif # delete unused bundled stuff pushd Common/libinclude rm -r ogg rm -r theora rm -r vorbis popd pushd Common/libsrc %if %{with freetype} rm -r freetype-2.1.3 %endif rmdir googletest popd pushd Engine/libsrc rm -r glad{,-gles2}/include/KHR rm -r ogg rm -r theora rm -r vorbis popd pushd libsrc rm -r glm %if %{with openal} rm -r mojoAL %endif rm -r tinyxml2 popd iconv -o Changes.txt.utf-8 -f iso8859-1 -t utf-8 Changes.txt && \ touch -r Changes.txt Changes.txt.utf-8 && \ mv Changes.txt.utf-8 Changes.txt %build %set_build_flags %make_build -C Engine %install make V=1 -C Engine PREFIX=%{buildroot}%{_prefix} install %files %license License.txt %doc Changes.txt Copyright.txt OPTIONS.md README.md %{_bindir}/ags %changelog * Mon Oct 10 2022 Dominik Mierzejewski - 3.6.0.36-1 - update to 3.6.0.36 (#2108390) * Thu Oct 06 2022 Dominik Mierzejewski - 3.6.0.35-1 - update to 3.6.0.35 (#2108390) * Sun Sep 25 2022 Rich Mattes - 3.6.0.33-2 - Rebuild for tinyxml2-9.0.0 * Sun Aug 14 2022 Dominik Mierzejewski - 3.6.0.33-1 - update to 3.6.0.33 (#2108390) * Wed Jul 20 2022 Fedora Release Engineering - 3.6.0.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 18 2022 Dominik Mierzejewski - 3.6.0.30-1 - update to 3.6.0.30 (#2105677) * Tue Jul 05 2022 Dominik Mierzejewski - 3.6.0.29-1 - update to 3.6.0.29 (#2100149) * Wed Jun 08 2022 Dominik Mierzejewski - 3.6.0.27-1 - update to 3.6.0.27 (#2091478) * Thu May 12 2022 Dominik Mierzejewski - 3.6.0.25-1 - update to 3.6.0.25 - unbundle khrplatform.h header - unbundle glm, ogg, theora, tinyxml2 and vorbis - use openal-soft instead of bundled mojoAL * Wed Jan 19 2022 Fedora Release Engineering - 3.5.0.32-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 3.5.0.32-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu May 13 2021 Dominik Mierzejewski - 3.5.0.32-1 - update to 3.5.0.32 * Thu Apr 08 2021 Dominik Mierzejewski - 3.5.0.31-1 - update to 3.5.0.31 - drop obsolete patches * Mon Jan 25 2021 Fedora Release Engineering - 3.5.0.25-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Aug 03 2020 Dominik Mierzejewski - 3.5.0.25-1 - update to 3.5.0.25 (#1862828) - fix compilation with GCC10 (missing cstdio includes) - unbundle freetype - fix linking against system libdumb - fix compilation on big-endian (missing include) * Fri Jul 31 2020 Fedora Release Engineering - 3.4.4.2-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 3.4.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 3.4.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Nov 09 2019 Dominik Mierzejewski - 3.4.4.2-1 - use upstream source directly, offending files were removed upstream * Wed Oct 02 2019 Dominik Mierzejewski - 3.4.4.1-1 - initial Fedora package of 3.4.4.1 release - remove non-free Engine/libsrc/libcda-0.5/{bcd.doc,djgpp.c} from tarball - convert Changes.txt to UTF-8