- added MCCP patch
[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. Oczywi¶cie dla trybu tekstowego :).
27
28 %prep
29 %setup -q
30 %patch0 -p1
31 %patch1 -p1
32 mv -f unix/Config unix/Config.orig
33 cat << EOF >> unix/Config
34 TF="\${T_BIN}/tf-\${TFVER}"
35 LIBDIR="\${T_SHARE}/tf"
36 #SYMLINK="$RPM_BUILD_ROOT%{_bindir}/tf"
37 MAILDIR="/var/mail"
38 MANPAGE="%{_mandir}/man1/tf.1"
39 MANTYPE="nroff"
40 CCFLAGS="%{rpmcflags}"
41 EOF
42 cat unix/Config.orig >> unix/Config
43
44 %build
45 T_BIN="%{_bindir}"
46 T_SHARE="%{_datadir}"
47 export T_BIN T_SHARE
48 ans=y sh unixmake files
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}}
53 install src/tf  $RPM_BUILD_ROOT%{_bindir}/%{name}
54 install tf-lib/*  $RPM_BUILD_ROOT%{_datadir}/%{name}
55 install src/tf.1.nroffman $RPM_BUILD_ROOT%{_mandir}/man1/tf.1
56
57 cd $RPM_BUILD_ROOT%{_datadir}/%{name}
58 mv kb-bash.tf bind-bash.tf
59 mv kb-emacs.tf bind-emacs.tf
60 mv complete.tf completion.tf
61 mv factoral.tf factorial.tf
62 mv filexfer.tf file-xfer.tf
63 mv local-eg.tf local.tf.sample
64 mv psh.tf pref-shell.tf
65 mv spc-page.tf space_page.tf
66 mv spedwalk.tf speedwalk.tf
67 mv stack-q.tf stack-queue.tf
68 mv world-q.tf worldqueue.tf
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc CHANGES CREDITS README
76 %attr(755,root,root) %{_bindir}/%{name}
77 %dir %{_datadir}/%{name}
78 %{_datadir}/%{name}/*tf
79 %{_datadir}/%{name}/tf-help*
80 %{_mandir}/man1/tf.1*
This page took 0.076184 seconds and 3 git commands to generate.