summaryrefslogtreecommitdiff
path: root/54321.spec
blob: 661bc987997bc5b7443b857676aef818327395f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Summary:	Preety puzzle games for one player.
Summary(pl):	Ładne puzzlowate gry dla jednego gracza.
Name:		54321
Version:	1.0.2001.11.16
Release:	1
License:	GPL
Group:		X11/Applications/Games
Source0:	http://nklein.com/products/54321/1.0.2001.11.16/%{name}.tgz
Source1:	%{name}.desktop
Source2:	%{name}-exec
Patch0:		%{name}-sdl_include_dir_fix.patch
URL:		http://www.nklein.com/products/54321/
BuildRequires:	SDL-devel
BuildRequires:	SDL_image-devel
Requires:	SDL >= 1.2.4
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define         _prefix         /usr/X11R6

%description
54321 is five games in four-, three-, or two-dimensions for one
player. 54321 takes five classic two-dimensional puzzle games and
extends them into three and four dimensions.

%description -l pl
54321 to pięć gier w czterech, trzech i dwóch wymiarach dla jednego
gracza. Gry bazują na klasycznych puzzlowatych schematach oprawionych
w ładną grafikę.

%prep
%setup -q -n 54321
%patch0 -p1

%build
%{__make} -f GNUmakefile CXXFLAGS="%{rpmcflags} -DNDEBUG=1" CC="%{__cc}" CXX="%{__cxx}"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_applnkdir}/Games \
$RPM_BUILD_ROOT{%{_bindir},%{_datadir}/54321}

cp -r Release/* $RPM_BUILD_ROOT%{_datadir}/54321
install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
mv $RPM_BUILD_ROOT%{_bindir}/54321-exec $RPM_BUILD_ROOT%{_bindir}/54321

install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
#gzip -9nf README

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
#%doc *.gz
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/data
%dir %{_datadir}/%{name}/bin
%dir %{_datadir}/%{name}/bin/Linux

%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}/data/*
%attr(755,root,root) %{_datadir}/%{name}/bin/Linux/*
%{_applnkdir}/Games/*