]> git.pld-linux.org Git - packages/bsd-games.git/blob - bsd-games.spec
- spanish desc/summary fixes; many just thrown
[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:        3
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:  5ed0ae6b7c5d5a2edddc636240314e34
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 Patch5:         %{name}-monop_rename.patch
23 Patch6:         %{name}-man.patch
24 BuildRequires:  bison
25 BuildRequires:  flex
26 BuildRequires:  groff
27 BuildRequires:  ncurses-devel >= 5.0
28 BuildRequires:  words
29 Requires:       textutils
30 Requires:       words
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         gamesdir        %{_bindir}
34
35 %description
36 Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar,
37 bcd, caesar, canfield, cfscores, countmail, cribbage, dm, factor,
38 fish, gomoku, hunt, mille, monop, morse, number, phantasia, pig, pom,
39 ppt, primes, quiz, rain, random, robots, rot13, sail, snake, snscore,
40 teachgammon, tetris-bsd, trek, wargames, worm, worms and wump.
41
42 Note: countmail requires frm(1) command from elm package.
43
44 %description -l de
45 Dies ist eine Sammlung von Games. Zu den bekanntesten gehören
46 Backgammon, Cribbage, Monop, Primes, Trek und Battlestar.
47
48 %description -l es
49 Bsd-games incluye juegos: adventure, arithmetic, atc, backgammon,
50 battlestar, bcd, caesar, canfield, cfscores, countmail, cribbage, dm,
51 factor, fish, gomoku, hunt, mille, monop, morse, number, phantasia,
52 pig, pom, ppt, primes, quiz, rain, random, robots, rot13, sail, snake,
53 snscore, teachgammon, tetris-bsd, trek, wargames, worm, worms and wump.
54
55 Aviso: countmail requiere comando frm(1) del paquete elm.
56
57
58 %description -l fr
59 Lot de jeux. Contient backgammon, cribbage, le pendu, monop, primes,
60 trek et battlestar.
61
62 %description -l pl
63 W sk³ad gier BSD wchodz±: adventure, arithmetic, atc, backgammon,
64 battlestar, bcd, caesar, canfield, cfscores, countmail, cribbage, dm,
65 factor, fish, gomoku, hunt, mille, monop, morse, number, phantasia,
66 pig, pom, ppt, primes, quiz, rain, random, robots, rot13, sail, snake,
67 snscore, teachgammon, tetris-bsd, trek, wargames, worm, worms i wump.
68
69 Uwaga: countmail wymaga polecenia frm(1) z pakietu elm.
70
71 %description -l pt
72 Isto é um conjunto de jogos. Os destaques incluem gamão, jogo de
73 cartas, forca, monopólio e guerra nas estrelas.
74
75 %description -l tr
76 Tavla, cribbage, adam asmaca, monop, primes, trek ve battlestar gibi
77 oyunlar içeren bir paket.
78
79 %prep
80 %setup -q
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84 %patch3 -p1
85
86 # config patch creation: diff between unconfigured and following configuration:
87 # Install prefix: $INSTALL_PREFIX
88 # Games not to build: banner factor fortune hack
89 # Games directory: /usr/bin
90 # Daemon directory: /usr/sbin
91 # Set owners/groups on installed files [y]: n
92 # Gzip manpages [y]: n
93 # Ncurses includes []: -I/usr/include/ncurses
94 # (the rest is default)
95
96 # then change $RPM_BUILD_DIR path to "."
97
98 %patch4 -p1
99 %patch5 -p1
100 %patch6 -p1
101
102 %build
103 %{__make} \
104         LDFLAGS="%{rpmldflags}" \
105         OPTIMIZE="%{rpmcflags}"
106
107 mkdir -p doc/trek
108 nroff trek/DOC/read_me.nr > doc/trek/read_me.txt
109 nroff trek/DOC/trekmanual.nr > doc/trek/trekmanual.txt
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113 chmod +x install-man install-score
114
115 %{__make} install \
116         INSTALL_PREFIX=$RPM_BUILD_ROOT
117
118 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
119
120 # primes(6) man originally is just a symlink to factor(6)
121 # but we install only primes, not factor (which is in sh-utils)
122 rm -f $RPM_BUILD_ROOT%{_mandir}/man6/primes.6*
123 install factor/factor.6 $RPM_BUILD_ROOT%{_mandir}/man6/primes.6
124
125 # TODO: add Finish factor.6 to non-english-man-pages
126 #mv -f $RPM_BUILD_ROOT%{_mandir}/fi/man6/{factor,primes}.6
127
128 # resolve conflict with hunt package
129 mv -f $RPM_BUILD_ROOT%{_bindir}/hunt{,-game}
130 mv -f $RPM_BUILD_ROOT%{_mandir}/man6/hunt{,-game}.6
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %files
136 %defattr(644,root,root,755)
137 %doc doc/trek
138 %attr(755,root,root) %{_bindir}/*
139 %attr(755,root,root) %{_sbindir}/huntd
140 %{_datadir}/games/*
141 %{_datadir}/misc/acronyms
142 /var/games/atc_score
143 /var/games/battlestar.log
144 /var/games/cfscores
145 /var/games/criblog
146 /var/games/robots_roll
147 %attr(640,root,games) /var/games/phantasia/characs
148 /var/games/phantasia/gold
149 /var/games/phantasia/lastdead
150 /var/games/phantasia/mess
151 /var/games/phantasia/monsters
152 /var/games/phantasia/motd
153 /var/games/phantasia/scoreboard
154 /var/games/phantasia/void
155 %attr(750,root,games) /var/games/sail
156 /var/games/saillog
157 /var/games/snake.log
158 /var/games/snakerawscores
159 /var/games/tetris-bsd.scores
160 %{_mandir}/man*/*
161 %lang(fi) %{_mandir}/fi/man*/*
162 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.079496 seconds and 3 git commands to generate.