bf57aca
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
bf57aca
0331491
Name:           blobwars
f4b6c16
Version:        2.00
d15ee32
Release:        14%{?dist}
0331491
Summary:        Mission and Objective based 2D Platform Game
e3479b6
# Code and gfx is all GPLv2+. Music is all CC-BY-SA. SFX are a mix, see readme
98a098a
License:        GPLv2+ and CC-BY-SA and CC-BY and BSD and Public Domain
d29d225
URL:            http://www.parallelrealities.co.uk/p/blob-wars-metal-blob-solid.html
98a098a
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
f4b6c16
Patch0:         blobwars-2.00-Werror.patch
11e746a
Patch1:         blobwars-2.00-dont-override-strlcat.patch
f4b6c16
BuildRequires:  desktop-file-utils
11e746a
BuildRequires:  gcc-c++ make
f4b6c16
BuildRequires:  gettext
f4b6c16
BuildRequires:  SDL2-devel
f4b6c16
BuildRequires:  SDL2_image-devel
f4b6c16
BuildRequires:  SDL2_mixer-devel
f4b6c16
BuildRequires:  SDL2_net-devel
f4b6c16
BuildRequires:  SDL2_ttf-devel
f4b6c16
BuildRequires:  zlib-devel
f4b6c16
Requires:       hicolor-icon-theme
0331491
0331491
%description
0331491
Blob Wars : Metal Blob Solid. This is Episode I of the Blob Wars Saga.
0331491
You must undertake the role of fearless Blob solider, Bob, as he infiltrates
0331491
various enemy installations and hideouts in an attempt to rescue as many
0331491
MIAs as possible.
0331491
0331491
%prep
11e746a
%autosetup -p1
f4b6c16
f4b6c16
# fix permissions
f4b6c16
chmod 0644 Makefile*
f4b6c16
f4b6c16
# SED-FIX-OPENSUSE -- Fix paths and libraries
f4b6c16
sed -i -e 's|USEPAK ?= 0|USEPAK ?= 1|;
f4b6c16
           s|$(PREFIX)/games|$(PREFIX)/bin|;
f4b6c16
           s|$(PREFIX)/share/games|$(PREFIX)/share|;
f4b6c16
           s| -Werror||;
f4b6c16
           s|$(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG)|$(CXX) $(GAMEOBJS) $(LIBS) -o $(PROG)|;
f4b6c16
           s|$(CXX) $(LIBS) $(PAKOBJS) -o pak|$(CXX) $(PAKOBJS) $(LIBS) -o pak|;
f4b6c16
           s|$(CXX) $(LIBS) $(MAPOBJS) -o mapeditor|$(CXX) $(MAPOBJS) $(LIBS) -o mapeditor|' Makefile
f4b6c16
f4b6c16
# SED-FIX-OPENSUSE -- Fix pak
f4b6c16
sed -i -e 's|gzclose(pak)|gzclose((gzFile)pak)|;
f4b6c16
           s|gzclose(fp)|gzclose((gzFile)fp)|' src/pak.cpp
0331491
0331491
%build
11e746a
%make_build CFLAGS="$RPM_OPT_FLAGS" RELEASE=1 DOCDIR=%{_pkgdocdir}/
0331491
0331491
%install
bf57aca
%make_install DOCDIR=%{_pkgdocdir}/
25a7937
%find_lang %{name}
d29d225
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications \
0331491
  $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
0331491
Richard Hughes bea2fd9
# Register as an application to be visible in the software center
Richard Hughes bea2fd9
#
Richard Hughes bea2fd9
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes bea2fd9
# project, translated and installed into the right place during `make install`.
Richard Hughes bea2fd9
#
Richard Hughes bea2fd9
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes bea2fd9
#
Richard Hughes bea2fd9
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes bea2fd9
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes bea2fd9
Richard Hughes bea2fd9
Richard Hughes bea2fd9
Richard Hughes bea2fd9
EmailAddress: hdegoede@redhat.com
Richard Hughes bea2fd9
SentUpstream: 2014-09-18
Richard Hughes bea2fd9
-->
Richard Hughes bea2fd9
<application>
Richard Hughes bea2fd9
  <id type="desktop">blobwars.desktop</id>
Richard Hughes bea2fd9
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes bea2fd9
  <summary>Mission and Objective based 2D Platform Game</summary>
Richard Hughes bea2fd9
  <description>
Richard Hughes bea2fd9
    

Richard Hughes bea2fd9
      Blob Wars: Metal Blob Solid is a 2D side scrolling platformer where you control
Richard Hughes bea2fd9
      Bob, (a blob secret agent) through 25 missions to rescue other blobs and stop
Richard Hughes bea2fd9
      the evil alien leader: Galdov.
Richard Hughes bea2fd9
    

Richard Hughes bea2fd9
  </description>
Richard Hughes bea2fd9
  <url type="homepage">http://www.parallelrealities.co.uk/p/blob-wars-metal-blob-solid.html</url>
Richard Hughes bea2fd9
  <screenshots>
Richard Hughes bea2fd9
    <screenshot type="default">http://3.bp.blogspot.com/-VGOFb5wKQkE/T4RuJznkWkI/AAAAAAAAA10/u1pyXxBa1yw/s1600/03.jpg</screenshot>
Richard Hughes bea2fd9
    <screenshot>http://3.bp.blogspot.com/-oBB_IbOXWEI/T4RuI6G3Y5I/AAAAAAAAA1s/_Tb2v1YrINk/s1600/02.jpg</screenshot>
Richard Hughes bea2fd9
    <screenshot>http://3.bp.blogspot.com/-s0v-Lr5WBa0/T4RuH7DbgKI/AAAAAAAAA1k/58HXOP40NIk/s1600/01.jpg</screenshot>
Richard Hughes bea2fd9
  </screenshots>
Richard Hughes bea2fd9
  
Richard Hughes bea2fd9
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
Richard Hughes bea2fd9
   -->
Richard Hughes bea2fd9
</application>
Richard Hughes bea2fd9
EOF
Richard Hughes bea2fd9
25a7937
%files -f %{name}.lang
bf57aca
%{_pkgdocdir}
0331491
%{_bindir}/%{name}
0331491
%{_datadir}/%{name}
Richard Hughes bea2fd9
%{_datadir}/appdata/%{name}.appdata.xml
d29d225
%{_datadir}/applications/%{name}.desktop
0331491
%{_datadir}/icons/hicolor/*/apps/%{name}.png
0331491
0331491
%changelog
d15ee32
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.00-14
d15ee32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d15ee32
6046dcd
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.00-13
6046dcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
6046dcd
11e746a
* Fri Jul 28 2023 Hans de Goede <hdegoede@redhat.com> - 2.00-12
11e746a
- Fix FTBFS (rhbz#2225725)
11e746a
- Restore honering RPM_OPT_FLAGS, restore debuginfo pkgs
11e746a
- Drop no longer used bitstream-vera-sans-fonts Requires
11e746a
- Trim changelog
11e746a
6d68a87
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.00-11
6d68a87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
6d68a87
fabc74a
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.00-10
fabc74a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
fabc74a
2e5649c
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.00-9
2e5649c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2e5649c
8fa82be
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.00-8
8fa82be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild