hopefully this is the end of trouble with install script (some workaround)
[packages/tf.git] / tf.spec
CommitLineData
5dba9c2f 1Summary: tf - TinyFugue - MUD client
2Summary(pl): tf - TinyFugue - tekstowy klient do MUDow
3Name: tf
4Version: 40s1
5Release: 1
6License: GPL
7Group: Aplications/games
8Group(pl): Aplikacje/gry
9Vendor: Ken Keys (Hawkeye) <hawkeye@tf.tcp.com>
10URL: http://tf.tcp.com/~hawkeye/tf/
11Source0: ftp://tf.tcp.com/pub/tinyfugue/%{name}-%{version}.tar.gz
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%define _prefix /usr/bin
15
16%description
17TinyFugue is a MUD-Client (Multi User Dungeons) that allows the user to dive
18into one the most fascinating
19Multi-User-Non-Graphic-Fantasy-Role-Playing-Games.
20Just Enter "tf" and enjoy your game.
21%description -l pl
22Po prostu jeden z najlepszych , jesli nie najlepszy klient do gry w MUDy.
23Oczywiscie dla trybu tekstowego :) .
24%prep
25
26%setup -n %name-%version
27mv unix/Config unix/Config.orig
28cat << EOF >> unix/Config
29TF="\${T_BIN}/tf-\${TFVER}"
30LIBDIR="\${T_SHARE}/tf-\${TFVER}"
31SYMLINK="/$RPM_BUILD_ROOT/usr/bin/tf"
32MANTYPE="nroff"
33MANPAGE="/usr/man/man1/tf.1"
34CCFLAGS="$RPM_OPT_FLAGS"
35EOF
36cat unix/Config.orig >> unix/Config
37export T_BIN="/usr/bin"
38export T_SHARE="/usr/share"
39%build
40export T_BIN="/usr/bin"
41export T_SHARE="/usr/share"
42ans=y sh unixmake files
43
44%install
45if [ -d $RPM_BUILD_ROOT ]; then
46 rm -rf $RPM_BUILD_ROOT
47fi
48mkdir $RPM_BUILD_ROOT
49mkdir $RPM_BUILD_ROOT/usr
50mkdir $RPM_BUILD_ROOT/usr/bin
51mkdir $RPM_BUILD_ROOT/usr/share
87150394 52mkdir $RPM_BUILD_ROOT/usr/share/%name-%version
5dba9c2f 53export T_BIN="$RPM_BUILD_ROOT/usr/bin"
54export T_SHARE="$RPM_BUILD_ROOT/usr/share"
87150394 55cp $RPM_BUILD_DIR/%name-%version/src/tf $RPM_BUILD_ROOT/usr/bin/%name-%version
56cp $RPM_BUILD_DIR/%name-%version/tf-lib/* $RPM_BUILD_ROOT/usr/share/%name-%version/
5dba9c2f 57gzip -9nf CHANGES COPYING CREDITS README
87150394 58cd $RPM_BUILD_ROOT/usr/bin/
59ln -s %name-%version %name
60cd $RPM_BUILD_ROOT/usr/share/%name-%version
61ln -s kb-bash.tf bind-bash.tf
62ln -s kd-emacs.tf bind-emacs.tf
63ln -s complete.tf completion.tf
64ln -s factoral.tf factorial.tf
65ln -s filexfer.tf file-xfer.tf
66ln -s local.eg.tf local.tf.sample
67ln -s psh.tf pref-shell.tf
68ln -s spc-page.tf space_page.tf
69ln -s spedwalk.tf speedwalk.tf
70ln -s stack-q.tf stack-queue.tf
71ln -s world-q.tf worldqueue.tf
5dba9c2f 72%clean
73sh unixmake clean
74
5dba9c2f 75%files
76%defattr(644,root,root,755)
77%attr(755,root,root) /usr/bin/%name-%version
87150394 78%attr(755,root,root) /usr/bin/%name
5dba9c2f 79/usr/share/%name-%version
80%doc *.gz
5dba9c2f 81
82%changelog
83* %{date} PLD Team <pld-list@pld.org.pl>
84All persons listed below can be reached at <cvs_login>@pld.org.pl
85
86$Log: tf.spec,v $
87150394 87Revision 1.2 2001-10-17 07:30:46 qwark
88hopefully this is the end of trouble with install script (some workaround)
89
90Revision 1.2 2001/10/17 09:30:43 qwark
91
92Revision 1.1 2001/10/16 21:50:43 qwark
5dba9c2f 93it's itial relase after some troubles with tf install script
94 Added Files:
95 tf.spec
96
97Revision 1.0 2001/10/17 23:50:53 qwark
98- initial release
99Based on spec written for RH
This page took 0.051375 seconds and 4 git commands to generate.