402ad21
%global fver v.%{version}
402ad21
402ad21
Name: ags
402ad21
Summary: Engine for creating and running videogames of adventure (quest) genre
b457d4d
Version: 3.5.0.32
402ad21
URL:     http://www.adventuregamestudio.co.uk/site/ags/
9949928
Release: 2%{?dist}
c7d3817
Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz
402ad21
# unbundle alfont
402ad21
Patch0:  %{name}-use-system-alfont.patch
402ad21
# unbundle allegro
402ad21
Patch1:  %{name}-use-system-allegro.patch
d96dc05
# unbundle freetype
d96dc05
Patch2:  %{name}-use-system-freetype.patch
d96dc05
# use dynamic linking for dumb
d96dc05
Patch4:  %{name}-dynamic-dumb.patch
402ad21
License: Artistic 2.0 and BSD and Giftware and LGPLv2+ and Public Domain and zlib
402ad21
BuildRequires: alfont-devel
402ad21
BuildRequires: allegro-devel
402ad21
BuildRequires: dumb-devel
402ad21
BuildRequires: freetype-devel
402ad21
BuildRequires: gcc-c++
402ad21
BuildRequires: libogg-devel
402ad21
BuildRequires: libtheora-devel
402ad21
BuildRequires: libvorbis-devel
402ad21
BuildRequires: libXext-devel
402ad21
BuildRequires: libXxf86vm-devel
2dd8a27
BuildRequires: make
402ad21
# https://web.archive.org/web/20050323070052/http://www.inp.nsk.su/~bukinm/dusty/aastr/ (Giftware)
402ad21
# dead upstream, might be possible to use aastr2:
402ad21
# https://www.allegro.cc/resource/Libraries/Graphics/AASTR2
402ad21
Provides: bundled(aastr) = 0.1.1
402ad21
# https://web.archive.org/web/20060518092445/http://nekros.freeshell.org/delirium/alogg.html (BSD)
402ad21
# dead upstream, internals are used, not trivial to unbundle
402ad21
Provides: bundled(AllegroOGG) = 1.0.3
402ad21
# https://web.archive.org/web/20050305175733/http://nekros.freeshell.org/delirium/almp3.php (LGPLv2+)
402ad21
# dead upstream, bundles parts of old mpg123, not trivial to separate
402ad21
Provides: bundled(almp3) = 2.0.5
402ad21
# http://kcat.strangesoft.net/apeg.html (Public Domain)
402ad21
Provides: bundled(apeg) = 1.2.1
402ad21
# https://web.archive.org/web/20090403045142/http://www.hiend3d.com/hq2x.html (LGPLv2+)
402ad21
# dead upstream
402ad21
Provides: bundled(hq2x3x)
402ad21
# https://web.archive.org/web/20040104090747/http://www.alphalink.com.au/~tjaden/libcda/index.html (zlib)
402ad21
# dead upstream
402ad21
Provides: bundled(libcda) = 0.5
402ad21
402ad21
%description
402ad21
Adventure Game Studio (AGS) - is the IDE and the engine meant for creating and
402ad21
running videogames of adventure (aka "quest") genre. It has potential, although
402ad21
limited, support for other genres as well.
402ad21
402ad21
Originally created by Chris Jones back in 1999, AGS was opensourced in 2011 and
402ad21
since continued to be developed by contributors.
402ad21
402ad21
%prep
402ad21
%setup -q -n %{name}-%{?commit:%{commit}}%{!?commit:%{fver}}
402ad21
%patch0 -p1 -b .alfont
402ad21
%patch1 -p1 -b .allegro
d96dc05
%patch2 -p1 -b .noft
d96dc05
%patch4 -p1 -b .dynamic
402ad21
# delete unused bundled stuff
402ad21
pushd Common/libinclude
d96dc05
rm -r internal
d96dc05
rm -r ogg
402ad21
rm -r theora
402ad21
rm -r vorbis
402ad21
rm aldumb.h
402ad21
rm dumb.h
402ad21
popd
402ad21
pushd Common/libsrc
d96dc05
rm -r alfont-2.0.9
d96dc05
rm -r freetype-2.1.3
402ad21
rmdir googletest
402ad21
popd
402ad21
pushd Engine/libsrc
402ad21
rm -r allegro-4.2.2-agspatch
402ad21
rm -r dumb-0.9.2
402ad21
popd
402ad21
iconv -o Changes.txt.utf-8 -f iso8859-1 -t utf-8 Changes.txt && \
402ad21
touch -r Changes.txt Changes.txt.utf-8 && \
402ad21
mv Changes.txt.utf-8 Changes.txt
402ad21
402ad21
%build
402ad21
%set_build_flags
8433a44
%make_build -C Engine
402ad21
402ad21
%install
402ad21
make V=1 -C Engine PREFIX=%{buildroot}%{_prefix} install
402ad21
402ad21
%files
402ad21
%license License.txt
402ad21
%doc Changes.txt Copyright.txt OPTIONS.md README.md
402ad21
%{_bindir}/ags
402ad21
402ad21
%changelog
9949928
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0.32-2
9949928
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9949928
b457d4d
* Thu May 13 2021 Dominik Mierzejewski <rpm@greysector.net> - 3.5.0.32-1
b457d4d
- update to 3.5.0.32
b457d4d
1988231
* Thu Apr 08 2021 Dominik Mierzejewski <rpm@greysector.net> - 3.5.0.31-1
1988231
- update to 3.5.0.31
1988231
- drop obsolete patches
1988231
73c1cf2
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0.25-2
73c1cf2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
73c1cf2
d96dc05
* Mon Aug 03 2020 Dominik Mierzejewski <rpm@greysector.net> - 3.5.0.25-1
d96dc05
- update to 3.5.0.25 (#1862828)
d96dc05
- fix compilation with GCC10 (missing cstdio includes)
d96dc05
- unbundle freetype
d96dc05
- fix linking against system libdumb
f5b7542
- fix compilation on big-endian (missing include)
d96dc05
1deb1dc
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4.2-4
1deb1dc
- Second attempt - Rebuilt for
1deb1dc
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1deb1dc
60d0fe9
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4.2-3
60d0fe9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
60d0fe9
d983fec
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4.2-2
d983fec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d983fec
c7d3817
* Sat Nov 09 2019 Dominik Mierzejewski <rpm@greysector.net> - 3.4.4.2-1
c7d3817
- use upstream source directly, offending files were removed upstream
c7d3817
402ad21
* Wed Oct 02 2019 Dominik Mierzejewski <rpm@greysector.net> - 3.4.4.1-1
402ad21
- initial Fedora package of 3.4.4.1 release
402ad21
- remove non-free Engine/libsrc/libcda-0.5/{bcd.doc,djgpp.c} from tarball
402ad21
- convert Changes.txt to UTF-8