]> git.pld-linux.org Git - packages/54321.git/blob - 54321.spec
7807f7604ac7e44ea9b78067f23975caa3f53656
[packages/54321.git] / 54321.spec
1 Summary:        Preety puzzle games for one player
2 Summary(pl):    £adne uk³adanki dla jednego gracza
3 Name:           54321
4 Version:        1.0.2001.11.16
5 Release:        2
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://nklein.com/products/54321/1.0.2001.11.16/%{name}.tgz
9 # Source0-md5:  20b2ad52ef45742c1a65911b225b6ddc
10 Source1:        %{name}.desktop
11 Patch0:         %{name}-sdl_include_dir_fix.patch
12 URL:            http://www.nklein.com/products/54321/
13 BuildRequires:  SDL-devel
14 BuildRequires:  SDL_image-devel
15 Requires:       SDL >= 1.2.4
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 54321 is five games in four-, three-, or two-dimensions for one
20 player. 54321 takes five classic two-dimensional puzzle games and
21 extends them into three and four dimensions.
22
23 %description -l pl
24 54321 to piêæ gier w czterech, trzech i dwóch wymiarach dla jednego
25 gracza. Gry bazuj± na klasycznych schematach uk³adanek; oprawione s± w
26 ³adn± grafikê.
27
28 %prep
29 %setup -q -n 54321
30 %patch0 -p1
31
32 %build
33 %{__make} -f GNUmakefile \
34         CC="%{__cc}" \
35         CXX="%{__cxx}" \
36         CXXFLAGS="%{rpmcflags} -I/usr/include/SDL -DNDEBUG=1"
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/54321/bin/Linux,%{_libdir}/54321}
41
42 cp -r Release/data $RPM_BUILD_ROOT%{_datadir}/54321
43 # hack to preserve %{_datadir} arch-independent
44 install Release/bin/Linux/54321 $RPM_BUILD_ROOT%{_libdir}/54321
45 cat > $RPM_BUILD_ROOT%{_bindir}/54321 <<EOF
46 #!/bin/sh
47 cd /usr/share/54321/bin/Linux && exec %{_libdir}/54321/54321 \$*
48 EOF
49
50 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README
58 %attr(755,root,root) %{_bindir}/*
59 %attr(755,root,root) %{_libdir}/%{name}
60 %dir %{_datadir}/%{name}
61 %dir %{_datadir}/%{name}/bin
62 %dir %{_datadir}/%{name}/bin/Linux
63 %{_datadir}/%{name}/data
64 %{_desktopdir}/*
This page took 0.023202 seconds and 3 git commands to generate.