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