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