]> git.pld-linux.org Git - packages/tf.git/blob - tf.spec
- added using more macrocs,
[packages/tf.git] / tf.spec
1 Summary:        tf - TinyFugue - MUD client
2 Summary(pl):    tf - TinyFugue - tekstowy klient do MUD-ów
3 Name:           tf
4 Version:        40s1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Games
8 Vendor:         Ken Keys (Hawkeye) <hawkeye@tf.tcp.com>
9 Source0:        ftp://tf.tcp.com/pub/tinyfugue/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-filenames.patch
11 URL:            http://tf.tcp.com/~hawkeye/tf/
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 TinyFugue is a MUD-Client (Multi User Dungeons) that allows the user
16 to dive into one the most fascinating
17 Multi-User-Non-Graphic-Fantasy-Role-Playing-Games. Just Enter "tf" and
18 enjoy your game.
19
20 %description -l pl
21 Po prostu jeden z najlepszych, je¶li nie najlepszy klient do gry w
22 MUD-y. Oczywi¶cie dla trybu tekstowego :).
23
24 %prep
25 %setup -q
26 %patch0 -p1
27 mv -f unix/Config unix/Config.orig
28 cat << EOF >> unix/Config
29 TF="\${T_BIN}/tf-\${TFVER}"
30 LIBDIR="\${T_SHARE}/tf"
31 SYMLINK="$RPM_BUILD_ROOT%{_bindir}/tf"
32 MAILDIR="/var/mail"
33 MANPAGE="%{_mandir}/man1/tf.1"
34 MANTYPE="nroff"
35 CCFLAGS="$RPM_OPT_FLAGS"
36 EOF
37 cat unix/Config.orig >> unix/Config
38
39 %build
40 T_BIN="%{_bindir}"
41 T_SHARE="%{_datadir}"
42 export T_BIN T_SHARE
43 ans=y sh unixmake files
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}}
48 install src/tf  $RPM_BUILD_ROOT%{_bindir}/%{name}
49 install tf-lib/*  $RPM_BUILD_ROOT%{_datadir}/%{name}
50 install src/tf.1.nroffman $RPM_BUILD_ROOT%{_mandir}/man1/tf.1
51
52 cd $RPM_BUILD_ROOT%{_datadir}/%{name}
53 mv kb-bash.tf bind-bash.tf
54 mv kb-emacs.tf bind-emacs.tf
55 mv complete.tf completion.tf
56 mv factoral.tf factorial.tf
57 mv filexfer.tf file-xfer.tf
58 mv local-eg.tf local.tf.sample
59 mv psh.tf pref-shell.tf
60 mv spc-page.tf space_page.tf
61 mv spedwalk.tf speedwalk.tf
62 mv stack-q.tf stack-queue.tf
63 mv world-q.tf worldqueue.tf
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc CHANGES CREDITS README
71 %attr(755,root,root) %{_bindir}/%{name}
72 %dir %{_datadir}/%{name}
73 %{_datadir}/%{name}/*tf
74 %{_mandir}/man1/tf.1*
This page took 0.063719 seconds and 4 git commands to generate.