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