88 lines
2.6 KiB
RPMSpec
88 lines
2.6 KiB
RPMSpec
Name: powermanga
|
|
Version: 0.91
|
|
Release: 1mamba
|
|
Summary: Arcade 2D shoot-them-up game
|
|
Group: Graphical Desktop/Applications/Games
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Fabio Giani <fabio.giani@gmail.com>
|
|
URL: http://linux.tlk.fr/games/Powermanga/
|
|
Source0: http://linux.tlk.fr/games/Powermanga/download/powermanga-%{version}.tgz
|
|
Source1: powermanga.png
|
|
Patch0: powermanga-0.91-libpng-1.5.patch
|
|
License: GPL
|
|
BuildRequires: xorg-server-devel, libSDL-devel, libSDL_mixer-devel
|
|
BuildRequires: libXxf86dga-devel,libXext-devel, glibc-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Powermanga is an arcade 2D shoot-them-up game with 41 levels and more than 200 sprites.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
./bootstrap
|
|
%configure
|
|
%make CFLAGS="-Wno-missing-field-initializers -lm"
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
# Fix location of the man page
|
|
%{__mkdir_p} %{buildroot}%{_mandir}/man6
|
|
#%{__mv} %{buildroot}%{_prefix}/share/man/powermanga.6 \
|
|
# %{buildroot}%{_mandir}/man6/
|
|
|
|
# Install pixmap for the menu entry
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/powermanga.png
|
|
|
|
# Create the system menu entry
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
|
[Desktop Entry]
|
|
Name=Powermanga
|
|
Comment=Arcade 2D shoot-them-up game
|
|
Comment[it]=Gioco 2D sparatutto
|
|
Icon=powermanga.png
|
|
Exec=powermanga
|
|
Terminal=false
|
|
Type=Application
|
|
Categories=Game;ArcadeGame;
|
|
EOF
|
|
|
|
mkdir -p %{buildroot}/usr/bin
|
|
mv -f %{buildroot}/usr/games/powermanga %{buildroot}/usr/bin/powermanga
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%config(noreplace) %{_localstatedir}/games/powermanga/powermanga.hi
|
|
%config(noreplace) %{_localstatedir}/games/powermanga/powermanga.hi-easy
|
|
%config(noreplace) %{_localstatedir}/games/powermanga/powermanga.hi-hard
|
|
%{_bindir}/powermanga
|
|
%{_datadir}/games/powermanga/*
|
|
%{_datadir}/pixmaps/powermanga.png
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_mandir}/man6/powermanga.6*
|
|
%doc AUTHORS COPYING
|
|
#CHANGES README
|
|
|
|
%changelog
|
|
* Tue Oct 16 2012 Automatic Build System <autodist@mambasoft.it> 0.91-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jan 03 2008 Fabio Giani <fabio.giani@gmail.com> 0.90-1mamba
|
|
- update to 0.90
|
|
|
|
* Fri Apr 22 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.79-2qilnx
|
|
- rebuild and moved from devel-contrib repository to devel repository
|
|
|
|
* Sat Sep 25 2004 Matteo Bernasconi <voyagernm@virgilio.it> 0.79-1
|
|
- first build
|