rpms/bsd-games/devel bsd-games-2.17-tetris-rename.patch, NONE, 1.1 bsd-games.spec, 1.11, 1.12 config.params, 1.4, 1.5

Michael Thomas (wart) fedora-extras-commits at redhat.com
Tue May 1 06:04:43 UTC 2007


Author: wart

Update of /cvs/extras/rpms/bsd-games/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9308

Modified Files:
	bsd-games.spec config.params 
Added Files:
	bsd-games-2.17-tetris-rename.patch 
Log Message:
Rename a game to avoid trademark issues.  It's now called 'bsd-fbg'.



bsd-games-2.17-tetris-rename.patch:

--- NEW FILE bsd-games-2.17-tetris-rename.patch ---
--- tetris/tetris.6.in.orig	2007-04-30 22:07:33.000000000 -0700
+++ tetris/tetris.6.in	2007-04-30 22:12:40.000000000 -0700
@@ -33,11 +33,11 @@
 .\"	@(#)tetris.6	8.1 (Berkeley) 5/31/93
 .\"
 .Dd May 31, 1993
-.Dt TETRIS 6
+.Dt BSD-FBG 6
 .Os
 .Sh NAME
-.Nm tetris
-.Nd the game of tetris
+.Nm bsd-fbg
+.Nd a falling block game
 .Sh SYNOPSIS
 .Nm
 .Op Fl ps
@@ -46,7 +46,7 @@
 .Sh DESCRIPTION
 The
 .Nm
-command runs display-based game which must be played on a CRT terminal.
+command runs a display-based game which must be played on a CRT terminal.
 The object is to fit the shapes together forming complete rows,
 which then vanish.
 When the shapes fill up to the top, the game ends.
@@ -83,7 +83,7 @@
 space or tab characters from the shell.
 For example:
 .sp
-.Dl "tetris -l 2 -k 'jkl pq'"
+.Dl "bsd-fbg -l 2 -k 'jkl pq'"
 .sp
 will play the default games, i.e. level 2 and with the default
 control keys.
--- tetris/scores.c.orig	2007-04-30 22:15:16.000000000 -0700
+++ tetris/scores.c	2007-04-30 22:15:23.000000000 -0700
@@ -367,7 +367,7 @@
 
 	if (!gotscores)
 		getscores(NULL);
-	(void)printf("\n\t\t\t    Tetris High Scores\n");
+	(void)printf("\n\t\t\t    High Scores\n");
 
 	/*
 	 * If level == 0, the person has not played a game but just asked for
--- tetris/tetris.c.orig	2007-04-30 22:16:20.000000000 -0700
+++ tetris/tetris.c	2007-04-30 22:16:37.000000000 -0700
@@ -337,6 +337,6 @@
 void
 usage()
 {
-	(void)fprintf(stderr, "usage: tetris-bsd [-ps] [-k keys] [-l level]\n");
+	(void)fprintf(stderr, "usage: bsd-fbg [-ps] [-k keys] [-l level]\n");
 	exit(1);
 }


Index: bsd-games.spec
===================================================================
RCS file: /cvs/extras/rpms/bsd-games/devel/bsd-games.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- bsd-games.spec	6 Mar 2007 22:23:02 -0000	1.11
+++ bsd-games.spec	1 May 2007 06:04:08 -0000	1.12
@@ -1,7 +1,7 @@
 Summary: Collection of text-based games
 Name: bsd-games
 Version: 2.17
-Release: 18%{?dist}
+Release: 19%{?dist}
 License: BSD
 Group: Amusements/Games
 URL: ftp://metalab.unc.edu/pub/Linux/games/
@@ -23,6 +23,7 @@
 Patch9: bsd-games-2.17-banner-rename.patch
 Patch10: bsd-games-2.17-stdio-c++.patch
 Patch11: bsd-games-2.17-nolibtermcap.patch
+Patch12: bsd-games-2.17-tetris-rename.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: ncurses-devel words flex bison
 Requires(Pre): /usr/sbin/groupadd
@@ -32,7 +33,7 @@
 bcd, caesar, canfield, cfscores, cribbage, go-fish, gomoku,
 hunt, mille, mpoly, morse, number, phantasia, pig, pom, ppt, primes,
 quiz, rain, random, robots, rot13, sail, snake, snscore, teachgammon,
-tetris-bsd, trek, worm, worms and wump.
+bsd-fbg, trek, worm, worms and wump.
 
 %prep
 %setup -q
@@ -49,6 +50,7 @@
 %patch9 -p0 -b .banner.rename
 %patch10 -p0 -b .cplusplus
 %patch11 -p0 -b .nolibtermcap
+%patch12 -p0 -b .tetris.rename
 
 %build
 # We include a templatized configuration settings file to set
@@ -87,6 +89,10 @@
 mv $RPM_BUILD_ROOT/%{_bindir}/banner $RPM_BUILD_ROOT/%{_bindir}/vert-banner
 mv $RPM_BUILD_ROOT/%{_mandir}/man6/banner.6.gz $RPM_BUILD_ROOT/%{_mandir}/man6/vert-banner.6.gz
 
+# Change the binary name for tetris to prevent a conflict with the mono-devel
+# package
+mv $RPM_BUILD_ROOT/%{_bindir}/tetris-bsd $RPM_BUILD_ROOT/%{_bindir}/bsd-fbg
+
 # Remove this doc file.  We're copying it to a different location for Fedora.
 rm -f $RPM_BUILD_ROOT/%{_docdir}/trek.me
 
@@ -135,7 +141,7 @@
 %attr(2755,root,gamesail) %{_bindir}/sail
 %attr(2755,root,games) %{_bindir}/snake
 %{_bindir}/snscore
-%attr(2755,root,games) %{_bindir}/tetris-bsd
+%attr(2755,root,games) %{_bindir}/bsd-fbg
 %{_bindir}/trek
 %{_bindir}/vert-banner
 %{_bindir}/worm
@@ -160,10 +166,13 @@
 %config %attr(664,root,gamesail) %{_var}/games/saillog
 %config %attr(664,root,games) %{_var}/games/snake.log
 %config %attr(664,root,games) %{_var}/games/snakerawscores
-%config %attr(664,root,games) %{_var}/games/tetris-bsd.scores
+%config %attr(664,root,games) %{_var}/games/bsd-fbg.scores
 %doc AUTHORS COPYING ChangeLog ChangeLog.0 THANKS YEAR2000 README.hunt trek/USD.doc/trek.me
 
 %changelog
+* Mon Apr 30 2007 Wart <wart at kobold.org> 2.17-19
+- Rename tetris to avoid legal quandries
+
 * Tue Mar 6 2007 Wart <wart at kobold.org> 2.17-18
 - Remove BR: libtermcap-devel
 - Change includes of <termcap.h> to <ncurses/termcap.h>


Index: config.params
===================================================================
RCS file: /cvs/extras/rpms/bsd-games/devel/config.params,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- config.params	22 Nov 2006 19:11:18 -0000	1.4
+++ config.params	1 May 2007 06:04:08 -0000	1.5
@@ -17,6 +17,7 @@
 bsd_games_cfg_docdir=@docdir@
 bsd_games_cfg_sharedir=@datadir@/bsd-games/
 bsd_games_cfg_varlibdir=@var@/games/
+bsd_games_cfg_tetris_scorefile=@var@/games/bsd-fbg.scores
 # Don't try to chown the files.  This will fail for non-root users and
 # will instead be handled in the rpm packaging.
 bsd_games_cfg_do_chown=n




More information about the fedora-extras-commits mailing list