Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 792e8f586609bd854e1cf7a1911e15ba > files > 5

sdlvexed-0.6-6.mga9.src.rpm

%define name sdlvexed
%define version 0.6
%define release %mkrel 6

%define vexed_name vexed22

Summary:	Colorful puzzle
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	%{name}-%{version}.tar.bz2
Source1:	https://downloads.sourceforge.net/vexed/%vexed_name.zip
Source2:	sdlvexed
Source3:	sdlvexed.desktop
Patch0:		%{name}-0.6-mga-new-perl-sdl.patch
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://sdlvexed.segfault.pl/
BuildRequires:	imagemagick
BuildArch:	noarch
Requires:	perl(Alien::SDL)

%description
SDL Vexed is a puzzle game written in Perl-SDL.  It is a clone of the
classic PalmOS game Vexed.  Some graphics and the level packs come from
the original game.

%prep
%setup -q
%autopatch -p1
%setup -q -T -D -a 1

%build

%install
mkdir -p %buildroot%_gamesdatadir/%name
cp -r gfx/ vexed %buildroot%_gamesdatadir/%name
cp -r %vexed_name/levels/ %buildroot%_gamesdatadir/%name/levelpacks

mkdir -p %buildroot%_gamesbindir
cp %SOURCE2 %buildroot%_gamesbindir

mkdir -p %buildroot%{_datadir}/applications
cp %SOURCE3 %buildroot%{_datadir}/applications

mkdir -p %buildroot{%_liconsdir,%_miconsdir}
convert -scale 48x48 gfx/block1.png %buildroot%_liconsdir/%name.png
convert -scale 32x32 gfx/block1.png %buildroot%_iconsdir/%name.png
convert -scale 16x16 gfx/block1.png %buildroot%_miconsdir/%name.png

%files
%doc CHANGELOG README
%_gamesbindir/%name
%_gamesdatadir/%name
%_datadir/applications/%name.desktop
%_liconsdir/%name.png
%_iconsdir/%name.png
%_miconsdir/%name.png




%changelog
* Thu Feb 09 2023 ns80 <ns80> 0.6-6.mga9
+ Revision: 1939688
- rebuild for aging

* Thu Mar 31 2022 umeabot <umeabot> 0.6-5.mga9
+ Revision: 1836526
- Mageia 9 Mass Rebuild

* Wed Feb 12 2020 umeabot <umeabot> 0.6-4.mga8
+ Revision: 1500027
- Mageia 8 Mass Rebuild

* Wed Sep 19 2018 umeabot <umeabot> 0.6-3.mga7
+ Revision: 1275411
- Mageia 7 Mass Rebuild

* Fri Feb 19 2016 umeabot <umeabot> 0.6-2.mga6
+ Revision: 969553
- Mageia 6 Mass Rebuild

* Mon Aug 24 2015 ns80 <ns80> 0.6-1.mga6
+ Revision: 869011
- imported package sdlvexed