Group :: Jogos/Outros
RPM: lacewing
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install unzip
# END SourceDeps(oneline)
%define fedora 25
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: lacewing
Version: 1.10
Release: alt2_29
Summary: Arcade-style shoot-em-up
Group: Games/Other
License: GPLv2+
URL: http://users.olis.net.au/zel/
Source0: http://users.olis.net.au/zel/lwsrc.zip
Source1: http://users.olis.net.au/zel/lwdata.zip
Source2: lacewing.desktop
Source3: lacewing.png
Patch0: lacewing.patch
Patch1: lacewing-fullscreen.patch
Patch2: lacewing-nicecpu.patch
Patch3: lacewing-warn.patch
Patch4: lacewing-format-security.patch
Patch5: lacewing-rhbz1045111.patch
BuildRequires: liballegro-devel desktop-file-utils
Requires: icon-theme-hicolor
Source44: import.info
Patch33: lacewing-1.10-alt-as-needed.patch
%description
Arcade-style shoot-em-up where you can choose a type of ship and depending on
the type of ship can pickup a number of upgrades during the game.
Lacewing is an arcade-style shoot-em-up which plays a little bit like a cross
between Spacewar and Centipede. It has a decidedly retro style to it. It has
a single-player mode, and also co-operative and duel modes for two players
(split-screen).
%prep
%setup -q -c
unzip -qqo %{SOURCE1}
%patch0 -p1 -z .unix
%patch1 -p1 -z .fullscreen
%patch2 -p1 -z .nicecpu
%patch3 -p1 -z .warn
%patch4 -p1
%patch5 -p1
sed -i 's/\r//' readme.txt licence.txt
chmod 644 readme.txt licence.txt
%patch33 -p1
%build
%make_build PREFIX=%{_prefix} \
CFLAGS="$RPM_OPT_FLAGS -fsigned-char -Wno-deprecated-declarations"
%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 \
%if 0%{?fedora} && 0%{?fedora} < 19
\
%endif
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{SOURCE3} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
%files
%doc readme.txt licence.txt
%{_bindir}/lacewing
%{_datadir}/lacewing
%if 0%{?fedora} && 0%{?fedora} < 19
%{_datadir}/applications/lacewing.desktop
%else
%{_datadir}/applications/lacewing.desktop
%endif
%{_datadir}/icons/hicolor/48x48/apps/lacewing.png
%changelog
…
Todas as alterações você pod ver aqui
BuildRequires: /usr/bin/desktop-file-install unzip
# END SourceDeps(oneline)
%define fedora 25
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: lacewing
Version: 1.10
Release: alt2_29
Summary: Arcade-style shoot-em-up
Group: Games/Other
License: GPLv2+
URL: http://users.olis.net.au/zel/
Source0: http://users.olis.net.au/zel/lwsrc.zip
Source1: http://users.olis.net.au/zel/lwdata.zip
Source2: lacewing.desktop
Source3: lacewing.png
Patch0: lacewing.patch
Patch1: lacewing-fullscreen.patch
Patch2: lacewing-nicecpu.patch
Patch3: lacewing-warn.patch
Patch4: lacewing-format-security.patch
Patch5: lacewing-rhbz1045111.patch
BuildRequires: liballegro-devel desktop-file-utils
Requires: icon-theme-hicolor
Source44: import.info
Patch33: lacewing-1.10-alt-as-needed.patch
%description
Arcade-style shoot-em-up where you can choose a type of ship and depending on
the type of ship can pickup a number of upgrades during the game.
Lacewing is an arcade-style shoot-em-up which plays a little bit like a cross
between Spacewar and Centipede. It has a decidedly retro style to it. It has
a single-player mode, and also co-operative and duel modes for two players
(split-screen).
%prep
%setup -q -c
unzip -qqo %{SOURCE1}
%patch0 -p1 -z .unix
%patch1 -p1 -z .fullscreen
%patch2 -p1 -z .nicecpu
%patch3 -p1 -z .warn
%patch4 -p1
%patch5 -p1
sed -i 's/\r//' readme.txt licence.txt
chmod 644 readme.txt licence.txt
%patch33 -p1
%build
%make_build PREFIX=%{_prefix} \
CFLAGS="$RPM_OPT_FLAGS -fsigned-char -Wno-deprecated-declarations"
%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 \
%if 0%{?fedora} && 0%{?fedora} < 19
\
%endif
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{SOURCE3} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
%files
%doc readme.txt licence.txt
%{_bindir}/lacewing
%{_datadir}/lacewing
%if 0%{?fedora} && 0%{?fedora} < 19
%{_datadir}/applications/lacewing.desktop
%else
%{_datadir}/applications/lacewing.desktop
%endif
%{_datadir}/icons/hicolor/48x48/apps/lacewing.png
%changelog
…
Todas as alterações você pod ver aqui