1 Summary: Preety puzzle games for one player
2 Summary(pl.UTF-8): Ładne układanki dla jednego gracza
4 Version: 1.0.2001.11.16
7 Group: X11/Applications/Games
8 Source0: http://nklein.com/products/54321/%{version}/%{name}.tgz
9 # Source0-md5: 20b2ad52ef45742c1a65911b225b6ddc
10 Source1: %{name}.desktop
11 Patch0: %{name}-sdl_include_dir_fix.patch
12 Patch1: %{name}-linking.patch
13 Patch2: %{name}-SDL_main.patch
14 URL: http://www.nklein.com/products/54321/
15 BuildRequires: SDL-devel >= 1.2.4
16 BuildRequires: SDL_image-devel
17 Requires: SDL >= 1.2.4
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 54321 is five games in four-, three-, or two-dimensions for one
22 player. 54321 takes five classic two-dimensional puzzle games and
23 extends them into three and four dimensions.
25 %description -l pl.UTF-8
26 54321 to pięć gier w czterech, trzech i dwóch wymiarach dla jednego
27 gracza. Gry bazują na klasycznych schematach układanek; oprawione są w
37 %{__make} -f GNUmakefile \
40 LDFLAGS="%{rpmldflags}" \
41 CXXFLAGS="%{rpmcflags} -I/usr/include/SDL -DNDEBUG=1" \
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/54321/bin/Linux,%{_libdir}/54321}
48 cp -r Release/data $RPM_BUILD_ROOT%{_datadir}/54321
49 # hack to preserve %{_datadir} arch-independent
50 install Release/bin/Linux/54321 $RPM_BUILD_ROOT%{_libdir}/54321
51 cat > $RPM_BUILD_ROOT%{_bindir}/54321 <<EOF
53 cd /usr/share/54321/bin/Linux && exec %{_libdir}/54321/54321 \$*
56 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/*
65 %attr(755,root,root) %{_libdir}/%{name}
66 %dir %{_datadir}/%{name}
67 %dir %{_datadir}/%{name}/bin
68 %dir %{_datadir}/%{name}/bin/Linux
69 %{_datadir}/%{name}/data
70 %{_desktopdir}/*.desktop