Group :: Games/Other
RPM: overgod
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: overgod
Version: 1.0
Release: alt2_28
Summary: Another arcade-style shoot-em-up
Group: Games/Other
License: GPLv2+
URL: http://www.allegro.cc/depot/Overgod
Source0: http://downloads.sourceforge.net/overgod/overgod.tar.gz
Source1: overgod.desktop
Source2: overgod.png
Source3: overgod.appdata.xml
Patch0: overgod-1.0.patch
Patch1: overgod-1.0-format-string.patch
Patch2: overgod-1.0-shield_bmp_array_overrun.patch
Patch3: overgod-1.0-inline-use-fix.patch
BuildRequires: liballegro-devel desktop-file-utils libappstream-glib
Requires: icon-theme-hicolor
Source44: import.info
%description
For too long has humanity been ruled by cruel and disputatious gods!
Fly through the various layers of the Celestial Oversphere to unseat
those who control the universe.
In Overgod you control a little vehicle in the middle of the screen and fly
around and shoot things - a bit like asteroids, but the asteroids move
independently and shoot back. You can also upgrade your vehicle in various
ways.
%prep
%setup -q
%patch0 -p1 -z .unix
%patch1 -p1
%patch2 -p1
%patch3 -p1
sed -i 's/\r//' readme.txt licence.txt
# as-needed
sed -i -e 's,$(CC) $(LDFLAGS) -o $ at $^,$(CC) -o $ at $^ $(LDFLAGS),' Makefile
%build
%make_build \
CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable" PREFIX=%{_prefix}
%install
make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata
appstream-util validate-relax --nonet \
$RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
%files
%doc readme.txt licence.txt
%{_bindir}/overgod
%{_datadir}/overgod
%{_datadir}/appdata/overgod.appdata.xml
%{_datadir}/applications/overgod.desktop
%{_datadir}/icons/hicolor/48x48/apps/overgod.png
%changelog
…
Full changelog you can see here
BuildRequires: /usr/bin/desktop-file-install
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: overgod
Version: 1.0
Release: alt2_28
Summary: Another arcade-style shoot-em-up
Group: Games/Other
License: GPLv2+
URL: http://www.allegro.cc/depot/Overgod
Source0: http://downloads.sourceforge.net/overgod/overgod.tar.gz
Source1: overgod.desktop
Source2: overgod.png
Source3: overgod.appdata.xml
Patch0: overgod-1.0.patch
Patch1: overgod-1.0-format-string.patch
Patch2: overgod-1.0-shield_bmp_array_overrun.patch
Patch3: overgod-1.0-inline-use-fix.patch
BuildRequires: liballegro-devel desktop-file-utils libappstream-glib
Requires: icon-theme-hicolor
Source44: import.info
%description
For too long has humanity been ruled by cruel and disputatious gods!
Fly through the various layers of the Celestial Oversphere to unseat
those who control the universe.
In Overgod you control a little vehicle in the middle of the screen and fly
around and shoot things - a bit like asteroids, but the asteroids move
independently and shoot back. You can also upgrade your vehicle in various
ways.
%prep
%setup -q
%patch0 -p1 -z .unix
%patch1 -p1
%patch2 -p1
%patch3 -p1
sed -i 's/\r//' readme.txt licence.txt
# as-needed
sed -i -e 's,$(CC) $(LDFLAGS) -o $ at $^,$(CC) -o $ at $^ $(LDFLAGS),' Makefile
%build
%make_build \
CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable" PREFIX=%{_prefix}
%install
make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata
appstream-util validate-relax --nonet \
$RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
%files
%doc readme.txt licence.txt
%{_bindir}/overgod
%{_datadir}/overgod
%{_datadir}/appdata/overgod.appdata.xml
%{_datadir}/applications/overgod.desktop
%{_datadir}/icons/hicolor/48x48/apps/overgod.png
%changelog
…
Full changelog you can see here