Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > eebac78c5dcc7e4c4e16cbefb10c58fc > files > 3

jag-0.3.1-2.1.mga1.src.rpm

%define subrel 1

Name:		jag
Version:	0.3.1
Release:	%mkrel 2
# README say "under the GPL" so that quite vague
License:	GPLv2+
Group:		Games/Puzzles
Summary:	An arcade-puzzle 2D game to break all of the target blocks
URL:		http://jag.xlabsoft.com
Source:		http://jag.xlabsoft.com/files/%name-%version-src.zip

# adujst path to conform to FHS
# not sent upstream, too ugly
Patch0:		%{name}-path.patch

BuildRequires:  libmesagl-devel
BuildRequires:  libSDL-devel
BuildRequires:  libSDL_mixer-devel
BuildRequires:  libxrandr-devel
BuildRequires:  libxrender-devel
BuildRequires:  qt4-devel
BuildRequires:  unzip

%description
JAG is a free and opensource arcade-puzzle 2D game.

The aim of JAG is to break all of the target pieces on each level, and to do
this before the time runs out. Keep doing this until you have beaten the last
level and won the game. Move game pieces using mouse into matches of 3 or more
in a straight line horizontally or vertically. Doing this on top of the target
cells will break them. The faster targets are removed, the bigger is score.
There are single and double targets. Unlike the single ones, double targets
are removed in two turns. Some pieces are blocked. Before removing such ones,
blocks should be destroyed. Blocks also can be single or double. By breaking
pieces and targets, you're earning score which can be spent for applying a
special tool. Tools make the life easier as they're mostly intended for
breaking several pieces at a time, including blocks and targets. By breaking
pieces of the same type, you're also increasing bonus counters. If you will
collect 500 and more items, you can remove all the same items from the field.

%files
%_bindir/%name
%_datadir/applications/%name.desktop
%_liconsdir/%name.png
%_datadir/%name/

#--------------------------------------------------------------------

%prep
%setup -q -n %name-%version-src
%patch0 -p1

%build
%qmake_qt4 Game.pro
%make

cat > %name.desktop <<EOF
[Desktop Entry]
Name=JAG
GenericName=Arcade-puzzle 2D game
Comment=%summary
Exec=%name
Icon=%_liconsdir/%name
Type=Application
StartupNotify=false
Categories=Game;LogicGame;
Terminal=false
EOF

%install
%makeinstall INSTALL_ROOT=%buildroot

install -d -m755 %buildroot/%_datadir/applications/
install -m644 %name.desktop %buildroot/%_datadir/applications/%name.desktop

install -d -m755 %buildroot/%_liconsdir
install -m644 images/item4.png %buildroot/%_liconsdir/%name.png



%changelog

* Sat Jan 28 2012 dmorgan <dmorgan> 0.3.1-2.1.mga1
+ Revision: 202399
- Use subrel
- Add for updates
- imported package jag


* Mon Dec 06 2010 Oden Eriksson <oeriksson@mandriva.com> 0.3.1-2mdv2011.0
+ Revision: 612437
- the mass rebuild of 2010.1 packages

* Thu Feb 25 2010 Michael Scherer <misc@mandriva.org> 0.3.1-1mdv2010.1
+ Revision: 511258
- comment patch to explain why it is not sent upstream
- fix License tag
- adapt and clean rpm from MIB


* Sat Feb 13 2010 Andrey Bondrov <bondrov@math.dvgu.ru> 0.3.1-69.1mib2009.1
- New version 0.3.1
- Clean up and fix spec
- Add patch0 to fix path from usr/local to usr
- MIB (Mandriva Italia Backport) - http://mib.pianetalinux.org

* Thu Oct 15 2009 Beppe Florin <symbianflo@fastwebnet.it>  0.2.6-69.1mib2009.1
- New release
- MIB (Mandriva Italia Backport) - http://mib.pianetalinux.org

* Sun Aug 09 2009 Alberto Altieri <alberto.altieri@gmail.com> 0.2.5-69.1mib2009.1
- First version/release for MIB users
- MIB (Mandriva Italia Backport) new optimized

* Sun Jul 12 2009 Fr. Br. George <george@altlinux.ru> 0.2.3-alt1
- Initial build from scratch