]> git.pld-linux.org Git - packages/bsd-games.git/blob - bsd-games.spec
We need you, flex.
[packages/bsd-games.git] / bsd-games.spec
1 Summary:        A collection of BSD (Berkeley Standard Distribution) games
2 Summary(de):    Diverse BSD-Games
3 Summary(es):    Paquete con varios juegos BSD
4 Summary(fr):    Paquetage de jeux BSD divers
5 Summary(pl):    Zestaw gier BSD (Berkeley Standard Distribution)
6 Summary(pt):    Pacote com vários jogos BSD
7 Summary(tr):    Metin ekranda oyunlar paketi
8 Name:           bsd-games
9 Version:        2.15
10 Release:        1
11 License:        distributable
12 Group:          Applications/Games
13 Source0:        ftp://ibiblio.org/pub/Linux/games/%{name}-%{version}.tar.gz
14 # Source0-md5:  3814794cb54c56ba3e82d07e93e41f00
15 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
16 # Source1-md5:  53f612734e8324dfc7d3658c33dee4cb
17 Patch0:         %{name}-hole.patch
18 Patch1:         %{name}-headers.patch
19 Patch2:         %{name}-ospeed.patch
20 Patch3:         %{name}-config.patch
21 Patch4:         %{name}-from.patch
22 BuildRequires:  bison
23 BuildRequires:  ncurses-devel >= 5.0
24 BuildRequires:  words
25 BuildRequires:  flex
26 Requires:       textutils
27 Requires:       words
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         gamesdir        %{_bindir}
31
32 %description
33 Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar,
34 bcd, caesar, canfield, cfscores, countmail, cribbage, dm, factor,
35 fish, gomoku, hunt, mille, monop, morse, number, phantasia, pig, pom,
36 ppt, primes, quiz, rain, random, robots, rot13, sail, snake, snscore,
37 teachgammon, tetris-bsd, trek, wargames, worm, worms and wump.
38
39 Note: countmail requires frm(1) command from elm package.
40
41 %description -l de
42 Dies ist eine Sammlung von Games. Zu den bekanntesten gehören
43 Backgammon, Cribbage, Monop, Primes, Trek und Battlestar.
44
45 %description -l es
46 Esto es un conjunto de juegos. Los destaques incluyen gammon, barajas,
47 ahorcado, monopolio y guerra en las estrellas.
48
49 %description -l fr
50 Lot de jeux. Contient backgammon, cribbage, le pendu, monop, primes,
51 trek et battlestar.
52
53 %description -l pl
54 W sk³ad gier BSD wchodz±: adventure, arithmetic, atc, backgammon,
55 battlestar, bcd, caesar, canfield, cfscores, countmail, cribbage, dm,
56 factor, fish, gomoku, hunt, mille, monop, morse, number, phantasia,
57 pig, pom, ppt, primes, quiz, rain, random, robots, rot13, sail, snake,
58 snscore, teachgammon, tetris-bsd, trek, wargames, worm, worms i wump.
59
60 Uwaga: countmail wymaga polecenia frm(1) z pakietu elm.
61
62 %description -l pt
63 Isto é um conjunto de jogos. Os destaques incluem gamão, jogo de
64 cartas, forca, monopólio e guerra nas estrelas.
65
66 %description -l tr
67 Tavla, cribbage, adam asmaca, monop, primes, trek ve battlestar gibi
68 oyunlar içeren bir paket.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73 %patch1 -p1
74 %patch2 -p1
75 %patch3 -p1
76 %patch4 -p1
77
78 # config patch creation: diff between unconfigured and following configuration:
79 # Install prefix: $INSTALL_PREFIX
80 # Games not to build: banner factor fortune hack
81 # Games directory: /usr/bin
82 # Daemon directory: /usr/sbin
83 # Set owners/groups on installed files [y]: n
84 # Gzip manpages [y]: n
85 # Ncurses includes []: -I/usr/include/ncurses
86 # (the rest is default)
87
88 # then change $RPM_BUILD_DIR path to "."
89
90 %build
91 %{__make} \
92         LDFLAGS="%{rpmldflags}" \
93         OPTIMIZE="%{rpmcflags}"
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 chmod +x install-man install-score
98
99 %{__make} install \
100         INSTALL_PREFIX=$RPM_BUILD_ROOT
101
102 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
103
104 # primes(6) man originally is just a symlink to factor(6)
105 # but we install only primes, not factor (which is in sh-utils)
106 rm -f $RPM_BUILD_ROOT%{_mandir}/man6/primes.6*
107 install factor/factor.6 $RPM_BUILD_ROOT%{_mandir}/man6/primes.6
108
109 # TODO: add Finish factor.6 to non-english-man-pages
110 #mv -f $RPM_BUILD_ROOT%{_mandir}/fi/man6/{factor,primes}.6
111
112 # resolve conflict with hunt package
113 mv -f $RPM_BUILD_ROOT%{_bindir}/hunt{,-game}
114 mv -f $RPM_BUILD_ROOT%{_mandir}/man6/hunt{,-game}.6
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %files
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/*
122 %{_datadir}/games/*
123 %{_datadir}/misc/acronyms
124 /var/games/atc_score
125 /var/games/battlestar.log
126 /var/games/cfscores
127 /var/games/criblog
128 /var/games/robots_roll
129 %attr(640,root,games) /var/games/phantasia/characs
130 /var/games/phantasia/gold
131 /var/games/phantasia/lastdead
132 /var/games/phantasia/mess
133 /var/games/phantasia/monsters
134 /var/games/phantasia/motd
135 /var/games/phantasia/scoreboard
136 /var/games/phantasia/void
137 %attr(750,root,games) /var/games/sail
138 /var/games/saillog
139 /var/games/snake.log
140 /var/games/snakerawscores
141 /var/games/tetris-bsd.scores
142 %{_mandir}/man*/*
143 %lang(fi) %{_mandir}/fi/man*/*
144 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.129374 seconds and 3 git commands to generate.