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