# - this will create a high score file in /usr/tmp, so doing it again
# later on will erase high scores for the machine.
-VERS=$(shell sed <tetrix.spec -n -e '/Version: \(.*\)/s//\1/p')
+VERS=2.3
+# Withoiut the last option, modern GCC throws a 'stack smashing detected'
+# error on startup that seems to be spurious
CFLAGS=-O -DIBM -fno-stack-protector
LFLAGS = -s
OBJS= MoveR.o MoveL.o DrawP.o AdvanceP.o Rotate.o Colors.o tet.o
rm -f tetrix *.o tetrix tetrix.6 tetrix-*.rpm tetrix-*.tar.gz *~
rm -f tetrix.html MANIFEST
-SOURCES = README COPYING tetrix.xml Makefile tet.h $(OBJS:.o=.c) tetrix.spec
+SOURCES = README COPYING NEWS control tetrix.xml Makefile tet.h $(OBJS:.o=.c)
tetrix-$(VERS).tar.gz: $(SOURCES) tetrix.6
@ls $(SOURCES) tetrix.6 | sed s:^:tetrix-$(VERS)/: >MANIFEST
--- /dev/null
+ tetrix project news
+
+Repository head:
+ License changed to BSD.
+
+2.3: 2010-Oct-22
+ Polish code for modern C.
+ Choose a reasonable default for the intermove pause.
+
+2.2: 2003-Dec-29
+ RPMS can now be built by non-root users.
+
+2.1: 2002-08-01
+ Make the cursor invisible.
with XML documentation and modern packaging.
Good bye again! Eric S. Raymond
+
+April 2015: Now pretty much solely of historical interest, but
+even museum artifacts deserve polishing now and then. See NEWS
+for a more detailed timeline.
+
+ Enjoy the history! Eric S. Raymond
--- /dev/null
+# This is not a real Debian control file, though the syntax is compatible.
+# It's project metadata for the shipper tool
+
+Package: tetrix
+
+Description: A UNIX-hosted, curses-based clone of Tetris.
+ Probably obsolete unless you can't use X for some reason, but of some
+ historical interest.
+
+#XBS-Destinations: freecode
+
+Homepage: http://www.catb.org/~esr/tetrix
+
+XBS-HTML-Target: index.html
+
+XBS-Repository-URL: http://thyrsus.com/gitweb/?p=tetrix.git
+
+XBS-Developer-Clone: git@thyrsus.com:tetrix
+
+XBS-Anonymous-Clone: git://thyrsus.com/repositories/tetrix.git
+
+XBS-VC-Tag-Template: %(version)s
+
+++ /dev/null
-Name: tetrix
-Version: 2.3
-Release: 1
-URL: http://www.catb.org/~esr/tetrix/
-Source0: %{name}-%{version}.tar.gz
-License: BSD
-Group: Games
-Summary: Tetrix (screen mode)
-BuildRoot: %{_tmppath}/%{name}-root
-#Destinations: freshmeat
-
-%description
-A UNIX-hosted, curses-based clone of Tetris. Probably obsolete
-unless you can't use X for some reason.
-
-%prep
-%setup -q
-
-%build
-make %{?_smp_mflags} tetrix tetrix.6
-
-%install
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
-mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man6/
-cp tetrix "$RPM_BUILD_ROOT"%{_bindir}
-cp tetrix.6 "$RPM_BUILD_ROOT"%{_mandir}/man6/
-
-%clean
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-
-%files
-%doc README COPYING
-%defattr(-,root,root,-)
-%{_mandir}/man6/tetrix.6*
-%{_bindir}/tetrix
-
-%changelog
-* Fri Oct 22 2010 Eric S. Raymond <esr@snark.thyrsus.com> 2.3-1
-- Polish code for modern C.
-- Choose a reasonable default for the intermove pause.
-
-* Mon Dec 29 2003 Eric S. Raymond <esr@snark.thyrsus.com> 2.2-1
-- RPMS can now be built by non-root users.
-