]> git.pld-linux.org Git - packages/bsd-games.git/blobdiff - bsd-games.spec
- missing /var/games/phantasia dir; rel 3
[packages/bsd-games.git] / bsd-games.spec
index b76079a3bdc4f85bb5557c979fc4b86c56d696bf..6eea5a5cdbcfc8c4f4ad13df4889c40e3f3b4a13 100644 (file)
@@ -6,18 +6,25 @@ Summary(pl):  Zestaw gier BSD (Berkeley Standard Distribution)
 Summary(pt):   Pacote com vĂ¡rios jogos BSD
 Summary(tr):   Metin ekranda oyunlar paketi
 Name:          bsd-games
-Version:       2.13
-Release:       1
+Version:       2.16
+Release:       3
 License:       distributable
 Group:         Applications/Games
 Source0:       ftp://ibiblio.org/pub/Linux/games/%{name}-%{version}.tar.gz
+# Source0-md5: 95bb83ebda02ff1fc8f4bf22a31d1ef0
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 5ed0ae6b7c5d5a2edddc636240314e34
 Patch0:                %{name}-hole.patch
 Patch1:                %{name}-headers.patch
 Patch2:                %{name}-ospeed.patch
 Patch3:                %{name}-config.patch
 Patch4:                %{name}-from.patch
-Patch5:                %{name}-destdir.patch
+Patch5:                %{name}-monop_rename.patch
+Patch6:                %{name}-man.patch
+Patch7:                %{name}-types.patch
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: groff
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: words
 Requires:      textutils
@@ -40,8 +47,13 @@ Dies ist eine Sammlung von Games. Zu den bekanntesten geh
 Backgammon, Cribbage, Monop, Primes, Trek und Battlestar.
 
 %description -l es
-Esto es un conjunto de juegos. Los destaques incluyen gammon, barajas,
-ahorcado, monopolio y guerra en las estrellas.
+Bsd-games incluye juegos: adventure, arithmetic, atc, backgammon,
+battlestar, bcd, caesar, canfield, cfscores, countmail, cribbage, dm,
+factor, fish, gomoku, hunt, mille, monop, morse, number, phantasia,
+pig, pom, ppt, primes, quiz, rain, random, robots, rot13, sail, snake,
+snscore, teachgammon, tetris-bsd, trek, wargames, worm, worms and wump.
+
+Aviso: countmail requiere comando frm(1) del paquete elm.
 
 %description -l fr
 Lot de jeux. Contient backgammon, cribbage, le pendu, monop, primes,
@@ -69,23 +81,46 @@ oyunlar i
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+# config patch creation: diff between unconfigured and following configuration:
+# Install prefix: $INSTALL_PREFIX
+# Games not to build: banner factor fortune hack
+# Games directory: /usr/bin
+# Daemon directory: /usr/sbin
+# Directory for miscellaneous documentation [/usr/share/doc/bsd-games]: /usr/share/doc/bsd-games-%{version}
+# Set owners/groups on installed files [y]: n
+# Gzip manpages [y]: n
+# Ncurses includes []: -I/usr/include/ncurses
+# (the rest is default)
+
+# then change $RPM_BUILD_DIR path to "."
 %patch3 -p1
+# these files come from patch
+chmod +x install-man install-score
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
+%patch7 -p1
 
 %build
-%{__make} LDFLAGS="%{rpmldflags}" \
+%{__make} \
+       CC="%{__cc}" \
+       CXX="%{__cxx}" \
+       LDFLAGS="%{rpmldflags}" \
        OPTIMIZE="%{rpmcflags}"
 
+mkdir -p doc/trek
+nroff trek/DOC/read_me.nr > doc/trek/read_me.txt
+nroff trek/DOC/trekmanual.nr > doc/trek/trekmanual.txt
+
 %install
 rm -rf $RPM_BUILD_ROOT
-chmod +x install-man install-score
 
-%{__make} INSTALL_PREFIX="$RPM_BUILD_ROOT" install
+%{__make} install \
+       INSTALL_PREFIX=$RPM_BUILD_ROOT
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
-# primes(6) man oryginally is just a symlink to factor(6)
+# primes(6) man originally is just a symlink to factor(6)
 # but we install only primes, not factor (which is in sh-utils)
 rm -f $RPM_BUILD_ROOT%{_mandir}/man6/primes.6*
 install factor/factor.6 $RPM_BUILD_ROOT%{_mandir}/man6/primes.6
@@ -102,14 +137,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc doc/trek trek/USD.doc/trek.me
 %attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/huntd
 %{_datadir}/games/*
 %{_datadir}/misc/acronyms
+%{_datadir}/misc/acronyms.comp
 /var/games/atc_score
 /var/games/battlestar.log
 /var/games/cfscores
 /var/games/criblog
 /var/games/robots_roll
+%dir /var/games/phantasia
 %attr(640,root,games) /var/games/phantasia/characs
 /var/games/phantasia/gold
 /var/games/phantasia/lastdead
This page took 0.110771 seconds and 4 git commands to generate.