- STBR for Ra
[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:        3
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 # Source0-md5:  db6fa9a1aac0b7f199567d81c4b5c81d
11 Source1:        http://dooh.civ.pl/patches/%{name}-%{version}-mccp.patch.gz
12 # Source1-md5:  319599aba0f574344b14d291e18f57f8
13 Patch0:         %{name}-filenames.patch
14 Patch1:         %{name}-%{version}-mccp.patch.gz
15 URL:            http://tf.tcp.com/~hawkeye/tf/
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 TinyFugue is a MUD-Client (Multi User Dungeons) that allows the user
20 to dive into one the most fascinating
21 Multi-User-Non-Graphic-Fantasy-Role-Playing-Games. Just Enter "tf" and
22 enjoy your game.
23
24 %description -l pl
25 Po prostu jeden z najlepszych, je¶li nie najlepszy klient do gry w
26 MUD-y (wraz z obsluga protokolu kompresji MCCP). Oczywi¶cie dla trybu 
27 tekstowego :).
28
29 %prep
30 %setup -q
31 %patch0 -p1
32 %patch1 -p1
33 mv -f unix/Config unix/Config.orig
34 cat >> unix/Config << EOF
35 TF="\${T_BIN}/tf-\${TFVER}"
36 LIBDIR="\${T_SHARE}/tf"
37 #SYMLINK="$RPM_BUILD_ROOT%{_bindir}/tf"
38 MAILDIR="/var/mail"
39 MANPAGE="%{_mandir}/man1/tf.1"
40 MANTYPE="nroff"
41 CCFLAGS="%{rpmcflags}"
42 EOF
43 cat unix/Config.orig >> unix/Config
44
45 %build
46 T_BIN="%{_bindir}"
47 T_SHARE="%{_datadir}"
48 export T_BIN T_SHARE
49 ans=y sh unixmake files
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}}
54 install src/tf  $RPM_BUILD_ROOT%{_bindir}/%{name}
55 install tf-lib/*  $RPM_BUILD_ROOT%{_datadir}/%{name}
56 install src/tf.1.nroffman $RPM_BUILD_ROOT%{_mandir}/man1/tf.1
57
58 cd $RPM_BUILD_ROOT%{_datadir}/%{name}
59 mv kb-bash.tf bind-bash.tf
60 mv kb-emacs.tf bind-emacs.tf
61 mv complete.tf completion.tf
62 mv factoral.tf factorial.tf
63 mv filexfer.tf file-xfer.tf
64 mv local-eg.tf local.tf.sample
65 mv psh.tf pref-shell.tf
66 mv spc-page.tf space_page.tf
67 mv spedwalk.tf speedwalk.tf
68 mv stack-q.tf stack-queue.tf
69 mv world-q.tf worldqueue.tf
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc CHANGES CREDITS README
77 %attr(755,root,root) %{_bindir}/%{name}
78 %dir %{_datadir}/%{name}
79 %{_datadir}/%{name}/*tf
80 %{_datadir}/%{name}/tf-help*
81 %{_mandir}/man1/tf.1*
This page took 0.035458 seconds and 3 git commands to generate.