]> git.pld-linux.org Git - packages/54321.git/blob - 54321.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/54321.git] / 54321.spec
1 Summary:        Preety puzzle games for one player
2 Summary(pl.UTF-8):      Ładne układanki dla jednego gracza
3 Name:           54321
4 Version:        1.0.2001.11.16
5 Release:        4
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 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)
19
20 %description
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.
24
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
28 ładną grafikę.
29
30 %prep
31 %setup -q -n 54321
32 %patch0 -p1
33 %patch1 -p1
34 %patch2 -p1
35
36 %build
37 %{__make} -f GNUmakefile \
38         CC="%{__cc}" \
39         CXX="%{__cxx}" \
40         LDFLAGS="%{rpmldflags}" \
41         CXXFLAGS="%{rpmcflags} -I/usr/include/SDL -DNDEBUG=1" \
42         STRIP="echo"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/54321/bin/Linux,%{_libdir}/54321}
47
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
52 #!/bin/sh
53 cd /usr/share/54321/bin/Linux && exec %{_libdir}/54321/54321 \$*
54 EOF
55
56 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc README
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
This page took 0.079754 seconds and 4 git commands to generate.