-Summary: A collection of BSD (Berkeley Standard Distribution) games.
-Summary(pl): Zestaw gier BSD (Berkeley Standard Distribution).
+Summary: A collection of BSD (Berkeley Standard Distribution) games
+Summary(pl): Zestaw gier BSD (Berkeley Standard Distribution)
Name: bsd-games
-Version: 2.10
-Release: 1
+Version: 2.11
+Release: 3
Copyright: distributable
Group: Games
Group(pl): Gry
Patch3: %{name}-ospeed.patch
Patch4: %{name}-config.patch
BuildRequires: ncurses-devel >= 5.0
-Requires: ncurses >= 5.0
+BuildRequires: words
Requires: textutils
+Requires: words
Requires: /usr/bin/frm
-Buildroot: /tmp/%{name}-%{version}-root
+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,
-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.
+Bsd-games includes 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.
%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 i wump
+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 i wump
%prep
%setup -q
%patch4 -p1
%build
-make LDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS"
+%{__make} LDFLAGS="-s" OPTIMIZE="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
chmod +x install-man install-score
-make INSTALL_PREFIX="$RPM_BUILD_ROOT" install
+
+%{__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
%defattr(644,root,root,755)
-%attr(755,root,root) /usr/games/*
-/usr/share/games/*
-/usr/share/misc/acronyms
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/games/*
+%{_datadir}/misc/acronyms
/var/games/atc_score
/var/games/battlestar.log
/var/games/cfscores