]> git.pld-linux.org Git - packages/cxhextris.git/blob - cxhextris.spec
- added using %%{__make} macro.
[packages/cxhextris.git] / cxhextris.spec
1 Summary:        An X Window System color version of xhextris
2 Name:           cxhextris
3 Version:        1.0
4 Release:        15
5 Copyright:      distributable
6 Group:          X11/Games
7 Group(pl):      X11/Gry
8 Source0:        ftp://sunsite.unc.edu/pub/Linux/games/arcade/tetris/%{name}.tar.z
9 Source1:        cxhextris.wmconfig
10 Patch0:         cxhextris-config.patch
11 Patch1:         cxhextris-axp.patch
12 Patch2:         cxhextris-security.patch
13 Prereq:         /usr/X11R6/bin/mkfontdir
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _prefix         /usr/X11R6
17 %define         _mandir         %{_prefix}/man
18
19 %description
20 CXHextris is a color version of the popular xhextris game, which is a
21 Tetris-like game that uses hexagon shapes instead of square shapes.
22 CXHextris runs within the X Window System.
23
24 Install cxhextris if you enjoy playing Tetris or Tetris-like games and
25 you'd like to play one on your system. You'll need to have X installed
26 in order to play CXHextris.
27
28 %description -l pl
29 CXHextris jest kolorow± wersj± popularnej gry xhextris, bêd±cej klonem
30 Tetrisa u¿ywaj±cym sze¶ciobocznych figur zamiast kwadratowych.
31 CXHextris uruchamia siê w ¶rodowisku X Window.
32
33 Nale¿y zainstalowaæ CXHextris je¶li lubi siê gry w rodzaju Tetris. Aby
34 móc graæ w CXHextris nale¿y mieæ zainstalowane X Window.
35
36 %prep
37 %setup -q -n cxhextris
38 %patch -p1
39 %patch1 -p1
40 %patch2 -p1
41
42 %build
43 xmkmf
44 make
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} DESTDIR=$RPM_BUILD_ROOT install install.man
50
51 install -d $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/fonts/misc
52 %{__make} FONTDIR=$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/fonts install.font
53
54 ( cd $RPM_BUILD_ROOT
55 install -d .%{_sysconfdir}/X11/wmconfig
56 install $RPM_SOURCE_DIR/cxhextris.wmconfig .%{_sysconfdir}/X11/wmconfig/cxhextris
57 )
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 (cd /usr/X11R6/lib/X11/fonts/misc; /usr/X11R6/bin/mkfontdir)
64
65 %postun
66 (cd /usr/X11R6/lib/X11/fonts/misc; /usr/X11R6/bin/mkfontdir)
67
68 %files
69 %defattr(644,root,root,755)
70 %doc README README.Linux
71 %attr(4755,games,games) %{_bindir}/xhextris
72 %{_prefix}/X11R6/lib/X11/fonts/misc/hex20.pcf
73 %attr(-,games,games)    /var/lib/games/xhextris-scores
74 %{_sysconfdir}/X11/wmconfig/cxhextris
This page took 0.068453 seconds and 4 git commands to generate.