]> git.pld-linux.org Git - packages/bsd-games.git/blob - bsd-games.spec
- missing /var/games/phantasia dir; rel 3
[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.16
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:  95bb83ebda02ff1fc8f4bf22a31d1ef0
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 Patch7:         %{name}-types.patch
25 BuildRequires:  bison
26 BuildRequires:  flex
27 BuildRequires:  groff
28 BuildRequires:  ncurses-devel >= 5.0
29 BuildRequires:  words
30 Requires:       textutils
31 Requires:       words
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         gamesdir        %{_bindir}
35
36 %description
37 Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar,
38 bcd, caesar, canfield, cfscores, countmail, cribbage, dm, factor,
39 fish, gomoku, hunt, mille, monop, morse, number, phantasia, pig, pom,
40 ppt, primes, quiz, rain, random, robots, rot13, sail, snake, snscore,
41 teachgammon, tetris-bsd, trek, wargames, worm, worms and wump.
42
43 Note: countmail requires frm(1) command from elm package.
44
45 %description -l de
46 Dies ist eine Sammlung von Games. Zu den bekanntesten gehören
47 Backgammon, Cribbage, Monop, Primes, Trek und Battlestar.
48
49 %description -l es
50 Bsd-games incluye juegos: adventure, arithmetic, atc, backgammon,
51 battlestar, bcd, caesar, canfield, cfscores, countmail, cribbage, dm,
52 factor, fish, gomoku, hunt, mille, monop, morse, number, phantasia,
53 pig, pom, ppt, primes, quiz, rain, random, robots, rot13, sail, snake,
54 snscore, teachgammon, tetris-bsd, trek, wargames, worm, worms and wump.
55
56 Aviso: countmail requiere comando frm(1) del paquete elm.
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 # config patch creation: diff between unconfigured and following configuration:
85 # Install prefix: $INSTALL_PREFIX
86 # Games not to build: banner factor fortune hack
87 # Games directory: /usr/bin
88 # Daemon directory: /usr/sbin
89 # Directory for miscellaneous documentation [/usr/share/doc/bsd-games]: /usr/share/doc/bsd-games-%{version}
90 # Set owners/groups on installed files [y]: n
91 # Gzip manpages [y]: n
92 # Ncurses includes []: -I/usr/include/ncurses
93 # (the rest is default)
94
95 # then change $RPM_BUILD_DIR path to "."
96 %patch3 -p1
97 # these files come from patch
98 chmod +x install-man install-score
99 %patch4 -p1
100 %patch5 -p1
101 %patch6 -p1
102 %patch7 -p1
103
104 %build
105 %{__make} \
106         CC="%{__cc}" \
107         CXX="%{__cxx}" \
108         LDFLAGS="%{rpmldflags}" \
109         OPTIMIZE="%{rpmcflags}"
110
111 mkdir -p doc/trek
112 nroff trek/DOC/read_me.nr > doc/trek/read_me.txt
113 nroff trek/DOC/trekmanual.nr > doc/trek/trekmanual.txt
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117
118 %{__make} install \
119         INSTALL_PREFIX=$RPM_BUILD_ROOT
120
121 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
122
123 # primes(6) man originally is just a symlink to factor(6)
124 # but we install only primes, not factor (which is in sh-utils)
125 rm -f $RPM_BUILD_ROOT%{_mandir}/man6/primes.6*
126 install factor/factor.6 $RPM_BUILD_ROOT%{_mandir}/man6/primes.6
127
128 # TODO: add Finish factor.6 to non-english-man-pages
129 #mv -f $RPM_BUILD_ROOT%{_mandir}/fi/man6/{factor,primes}.6
130
131 # resolve conflict with hunt package
132 mv -f $RPM_BUILD_ROOT%{_bindir}/hunt{,-game}
133 mv -f $RPM_BUILD_ROOT%{_mandir}/man6/hunt{,-game}.6
134
135 %clean
136 rm -rf $RPM_BUILD_ROOT
137
138 %files
139 %defattr(644,root,root,755)
140 %doc doc/trek trek/USD.doc/trek.me
141 %attr(755,root,root) %{_bindir}/*
142 %attr(755,root,root) %{_sbindir}/huntd
143 %{_datadir}/games/*
144 %{_datadir}/misc/acronyms
145 %{_datadir}/misc/acronyms.comp
146 /var/games/atc_score
147 /var/games/battlestar.log
148 /var/games/cfscores
149 /var/games/criblog
150 /var/games/robots_roll
151 %dir /var/games/phantasia
152 %attr(640,root,games) /var/games/phantasia/characs
153 /var/games/phantasia/gold
154 /var/games/phantasia/lastdead
155 /var/games/phantasia/mess
156 /var/games/phantasia/monsters
157 /var/games/phantasia/motd
158 /var/games/phantasia/scoreboard
159 /var/games/phantasia/void
160 %attr(750,root,games) /var/games/sail
161 /var/games/saillog
162 /var/games/snake.log
163 /var/games/snakerawscores
164 /var/games/tetris-bsd.scores
165 %{_mandir}/man*/*
166 %lang(fi) %{_mandir}/fi/man*/*
167 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.10454 seconds and 3 git commands to generate.