# Note: When the version changes, you also have to change
# * the LSM file
# * the RPM spec file
-V=2.4
-
-SOURCES = READ.ME Makefile blue.c blue.c.orig blue.6 blue.lsm *.spec
+V=2.5
+SOURCES = READ.ME Makefile blue.c blue.c.orig blue.sgml blue.lsm *.spec
CFLAGS=-O
blue: blue.c
cc $(CFLAGS) -DVERSION=\"$(V)\" blue.c -lncurses -o blue
+blue.6: blue.sgml
+ docbook2man blue.sgml
+
blue-$(V).tar.gz: $(SOURCES)
@ls $(SOURCES) | sed s:^:blue-$(V)/: >MANIFEST
@(cd ..; ln -s blue blue-$(V))
(cd ..; tar -czvf blue/blue-$(V).tar.gz `cat blue/MANIFEST`)
@(cd ..; rm blue-$(V))
-blue.shar: $(SOURCES)
- shar $(SOURCES) >blue.shar
-
clean:
- rm -f blue blue.tar blue*.gz blue*.rpm blue.shar *~
+ rm -f blue blue.6 blue.tar blue*.gz blue*.rpm blue.shar *~
+
+install: blue.6 uninstall
+ cp blue /usr/bin
+ cp blue.6 /usr/share/man/man6/blue.6
+
+uninstall:
+ rm -f /usr/bin/blue /usr/share/man/man6/blue.6
dist: blue-$(V).tar.gz
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<refentry id='blue.6'>
<refmeta>
-<refentrytitle>BLUE</refentrytitle>
+<refentrytitle>blue</refentrytitle>
<manvolnum>6</manvolnum>
<refmiscinfo class='date'>Nov 31 1994</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>blue</refname>
-<refpurpose>Blue Moon</refpurpose>
+<refpurpose>Blue Moon card solitaire</refpurpose>
</refnamediv>
<refsynopsisdiv id='synopsis'>
<para>Originally written by Tim Lister. Visual user interface and
color support by Eric S. Raymond <esr@snark.thyrsus.com>. The
ncurses version was written in November 1994. See <ulink
-url='http://www.ccil.org/'>http://www.ccil.org/~esr/</ulink>
-for updates, also other software and resources by ESR.</para>
+url='http://www.ccil.org/~esr/'>http://www.ccil.org/~esr/</ulink> for
+updates, also other software and resources by ESR.</para>
</refsect1>
</refentry>
Name: blue
Summary: Blue Moon solitaire (text mode)
-Version: 2.4
+Version: 2.5
Release: 1
-Source: locke.ccil.org:/pub/esr/blue-2.4.tar.gz
+Source: locke.ccil.org:/pub/esr/blue-2.5.tar.gz
Copyright: BSD-like
Group: Games
%description
make
%install
-rm -f /usr/bin/blue
-cp blue /usr/bin
-cp blue.6 /usr/man/man6/blue.6
+make install
%files
-/usr/man/man6/blue.6
+/usr/share/man/man6/blue.6
/usr/bin/blue