Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > e1dd72e8ce6c795e8960727948c8924a > files > 8

numptyphysics-0.4-0.git20132002.6.mga5.src.rpm

%define	rev	git20132002

Name:		numptyphysics
Version:	0.4
Summary:	A crayon-drawing based physics puzzle game
Release:	%mkrel -c %{rev} 6
License:	GPLv3
Group:		Games/Puzzles
Url:		http://numptyphysics.garage.maemo.org
# Stable release git tag: https://github.com/thp/%{name}/archive/%{version}.tar.gz
# Fork: https://github.com/smr99/numptyphysics
Source0:	%{name}-%{version}-%{rev}.tar.gz
Source1:	%{name}-levels.tar.gz
# retreived from home page
Source2:	README
# from Debian
Source3:	%{name}.6
Patch0:		%{name}-%{version}-mga-desktop-file.patch
Patch1:		%{name}-%{version}-mga-makefile.patch
# https://github.com/thp/numptyphysics/issues/2
Patch2:		%{name}-%{version}-mga-fix-memory-corruption.patch

BuildRequires:	intltool
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	vim-common

%description
Harness gravity with your crayon and set about creating blocks, ramps, levers,
pulleys and whatever else you fancy to get the little red thing to the little
yellow thing.

Numpty Physics is a drawing puzzle game in the spirit (and style?) of Crayon
Physics using the same excellent Box2D engine. Note though that I've not
actually played CP so the experience may be very different. Numpty Physics
includes a built-in editor so that you may build (and submit) your own levels.

%prep
%setup -q -n %{name}-%{version}-%{rev}
%apply_patches
cp -f %{SOURCE2} ./

%build
%setup_compile_flags
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_datadir}/%{name}

# additional levels
tar xzf %{SOURCE1} -C %{buildroot}%{_datadir}/%{name}
mv -f %{buildroot}%{_datadir}/%{name}/%{name}-levels/*.nph %{buildroot}%{_datadir}/%{name}/
rm -rf %{buildroot}%{_datadir}/%{name}/%{name}-levels

# icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{buildroot}%{_datadir}/%{name}/data/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

# man
mkdir -p %{buildroot}%{_mandir}/man6
cp -f %{SOURCE3} %{buildroot}%{_mandir}/man6/

%files
%doc AUTHORS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%{_mandir}/man6/%{name}*


%changelog
* Sat Nov 29 2014 alexl <alexl> 0.4-0.git20132002.6.mga5
+ Revision: 799837
- merge desktop file with smr99's fork

* Wed Oct 15 2014 umeabot <umeabot> 0.4-0.git20132002.5.mga5
+ Revision: 749179
- Second Mageia 5 Mass Rebuild

* Sun Sep 28 2014 umeabot <umeabot> 0.4-0.git20132002.4.mga5
+ Revision: 731511
- Mageia 5 Mass Rebuild

* Thu May 22 2014 akien <akien> 0.4-0.git20132002.3.mga5
+ Revision: 625067
- RPM group is Games and not Education

* Thu May 22 2014 akien <akien> 0.4-0.git20132002.2.mga5
+ Revision: 625063
- Move icon to %%_datadir/pixmaps since 80x80 is not a valid hicolor size

* Mon May 19 2014 alexl <alexl> 0.4-0.git20132002.1.mga5
+ Revision: 623727
- the latest git snapshot
- clean spec
- new summary
- move gcc patch (in upstream now)
- add README and man page
- update desktop-file.patch and makefile.patch
- add fix-memory-corruption.patch
- rename desktop-file.patch
- rename makefile.patch
- No reasons for obsolete

  + akien <akien>
    - No longer maintained and segfaults after completion of the first level

* Fri Oct 18 2013 umeabot <umeabot> 0.3.3-3.mga4
+ Revision: 508356
- Mageia 4 Mass Rebuild

* Sat Jan 12 2013 umeabot <umeabot> 0.3.3-2.mga3
+ Revision: 361081
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Dec 14 2012 matteo <matteo> 0.3.3-1.mga3
+ Revision: 330952
- new stable version

* Sun Jul 29 2012 matteo <matteo> 0.3.2-0.git.a22cde2.1.mga3
+ Revision: 275554
- added patch to support gcc-4.7
- new version

* Sun Mar 25 2012 anaselli <anaselli> 0.2-0.svn.157.2.mga2
+ Revision: 226367
- added missed levels

* Thu Jan 05 2012 matteo <matteo> 0.2-0.svn.157.1.mga2
+ Revision: 191922
- unzipped patch; spec file reviewed

* Fri Dec 23 2011 matteo <matteo> 0.2-0.svn.157.mga2
+ Revision: 186813
- fixed wrong summary
- imported package numptyphysics