]> git.pld-linux.org Git - packages/bsd-games.git/blobdiff - bsd-games.spec
- release 3
[packages/bsd-games.git] / bsd-games.spec
index 6a048716e7747cf6e88d76c06a4e5746c99ee81d..66d4a9d0e554514226fbefc53804e8a7e0b89a07 100644 (file)
@@ -1,98 +1,82 @@
-Summary: A collection of BSD (Berkeley Standard Distribution) games.
-Name: bsd-games
-Version: 2.7
-Release: 3
-Copyright: distributable
-Group: Amusements/Games
-Source0: ftp://metalab.unc.edu/pub/Linux/games/bsd-games-2.7.tar.gz
-Patch0: bsd-games-2.7-config.patch
-Patch1: bsd-games-2.7-hole.patch
-Patch2: bsd-games.patch
-Patch3: bsd-games-from.patch
-Buildroot: /var/tmp/bsd-games
-Requires: textutils /usr/bin/frm
+Summary:       A collection of BSD (Berkeley Standard Distribution) games
+Summary(pl):   Zestaw gier BSD (Berkeley Standard Distribution)
+Name:          bsd-games
+Version:       2.11
+Release:       3
+Copyright:     distributable
+Group:         Games
+Group(pl):     Gry
+Source0:       ftp://metalab.unc.edu/pub/Linux/games/%{name}-%{version}.tar.gz
+Patch0:                %{name}-hole.patch
+Patch1:                %{name}-headers.patch
+Patch2:                %{name}-from.patch
+Patch3:                %{name}-ospeed.patch
+Patch4:                %{name}-config.patch
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: words
+Requires:      textutils 
+Requires:      words
+Requires:      /usr/bin/frm
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar,
 bcd, caesar, canfield, cfscores, countmail, cribbage, dm, factor,
-fish, gomoku, hangman, hunt, mille, monop, morse, number, phantasia,
+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.
+
+%description -l pl
+W sk³ad gier BSD wchodz±: 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.
+snscore, teachgammon, tetris-bsd, trek, wargames, worm, worms i wump
 
 %prep
 %setup -q
-%patch -p1 -b .config
-%patch1 -p1 -b .hole
-%patch2 -p1 -b .tim
-%patch3 -p1 -b .from
-chmod +x install-man
-chmod +x install-score
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 
+%{__make} LDFLAGS="-s" OPTIMIZE="$RPM_OPT_FLAGS"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make RPM_BUILD_ROOT="$RPM_BUILD_ROOT" install
+chmod +x install-man install-score
 
-find $RPM_BUILD_ROOT/usr/games -type f | sed "s|$RPM_BUILD_ROOT||g" |
-  sed "s|/usr/games/dm|%attr\(2755,root,games\) /usr/games/dm|" > files.list
+%{__make} INSTALL_PREFIX="$RPM_BUILD_ROOT" install
+
+rm $RPM_BUILD_ROOT%{_bindir}/factor
+rm $RPM_BUILD_ROOT%{_mandir}/man6/factor.6*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f files.list
-%defattr(-,root,root)
-/usr/lib/games/*
-/var/lib/games/*
-/usr/share/games/*
-/usr/man/man5/*
-/usr/man/man6/*
-/usr/man/man8/*
-/usr/sbin/*
-
-%changelog
-* Sat Aug 21 1999 Bill Nottingham <notting@redhat.com>
-- fix countmail (#3722). I must be bored.
-
-* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
-- make dm setgid games, not setuid root...
-
-* Fri Jul 9 1999 Tim Powers <timp@redhat.com>
-- updated source to 2.7
-- updated patches to fix bugs and the braindead configure script, 
-  dropped a few of the older patches that made it into this release
-- replaced -make install with make install-strip
-- built for 6.1
-
-* Wed May 12 1999 Bill Nottingham <notting@redhat.com>
-- pick up some more files
-
-* Thu Apr 01 1999 Michael Maher <mike@redhat.com>
-- only a fool would add a dependency to this package on a 
-  day like today.
-
-* Fri Mar 18 1999 Michael Maher <mike@redhat.com>
-- fixed bug 1550
-
-* Mon Feb 08 1999 Michael Maher <mike@redhat.com>
-- moved pacakge to PowerTools.
-
-* Thu Jun 18 1998 Alan Cox <alan@redhat.com>
-- Chris Evans pointed out a hole in sail I missed.
-
-* Wed Jun 17 1998 Alan Cox <alan@redhat.com>
-- Stopped people using cribbage to be able to cheat game score files.
-
-* Tue May 05 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
-- fixed the config patch so that it will build on non /usr/src/redhat build
-  trees
-
-* Tue Apr 07 1998 Erik Troan <ewt@redhat.com>
-- updated to bsd-games 2.1
-- started over on package
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/games/*
+%{_datadir}/misc/acronyms
+/var/games/atc_score
+/var/games/battlestar.log
+/var/games/cfscores
+/var/games/criblog
+/var/games/robots_roll
+%attr(640,root,root) /var/games/phantasia/characs
+/var/games/phantasia/gold
+/var/games/phantasia/lastdead
+/var/games/phantasia/mess
+/var/games/phantasia/monsters
+/var/games/phantasia/motd
+/var/games/phantasia/scoreboard
+/var/games/phantasia/void
+%attr(750,root,root) /var/games/sail/
+/var/games/saillog
+/var/games/snake.log
+/var/games/snakerawscores
+/var/games/tetris-bsd.scores
+%{_mandir}/man*/*
This page took 0.045487 seconds and 4 git commands to generate.