]> git.pld-linux.org Git - packages/cxhextris.git/blob - cxhextris.spec
almost raw
[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: Amusements/Games
7 Source: ftp://sunsite.unc.edu/pub/Linux/games/arcade/tetris/cxhextris.tar.z
8 Source1: cxhextris.wmconfig
9 Patch0: cxhextris-config.patch
10 Patch1: cxhextris-axp.patch
11 Patch2: cxhextris-security.patch
12 Prereq: /usr/X11R6/bin/mkfontdir
13 BuildRoot: /var/tmp/cxhextris-root
14
15 %description
16 CXHextris is a color version of the popular xhextris game, which is a
17 Tetris-like game that uses hexagon shapes instead of square shapes.
18 CXHextris runs within the X Window System.
19
20 Install cxhextris if you enjoy playing Tetris or Tetris-like games and
21 you'd like to play one on your system.  You'll need to have X installed
22 in order to play CXHextris.
23
24 %prep
25 %setup -q -n cxhextris
26 %patch -p1
27 %patch1 -p1
28 %patch2 -p1
29
30 %build
31 xmkmf
32 make
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 make DESTDIR=$RPM_BUILD_ROOT install install.man
38
39 mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
40 make FONTDIR=$RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts install.font
41
42 ( cd $RPM_BUILD_ROOT
43   mkdir -p ./etc/X11/wmconfig
44   install -m 644 $RPM_SOURCE_DIR/cxhextris.wmconfig ./etc/X11/wmconfig/cxhextris
45 )
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 (cd /usr/X11R6/lib/X11/fonts/misc; /usr/X11R6/bin/mkfontdir)
52
53 %postun
54 (cd /usr/X11R6/lib/X11/fonts/misc; /usr/X11R6/bin/mkfontdir)
55
56 %files
57 %defattr(-,root,root)
58 %doc README README.Linux
59 %attr(4755,games,games) /usr/X11R6/bin/xhextris
60 /usr/X11R6/lib/X11/fonts/misc/hex20.pcf
61 %attr(-,games,games)    /var/lib/games/xhextris-scores
62 /etc/X11/wmconfig/cxhextris
This page took 0.037262 seconds and 4 git commands to generate.