21b8ba0a09b91fd8725d045ec580c388889c0de6
[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 TinyFugue jest klientem MUD (Multi User Dungeons), który pozwala 
26 u¿ytkownikowi zag³êbiæ siê w najbardziej fascynuj±cy ¶wiat
27 Multi-User-Non-Graphic-Fantasy-Role-Playing-Games.
28 Po prostu jeden z najlepszych, je¶li nie najlepszy klient do gry w
29 MUD-y (wraz z obsluga protokolu kompresji MCCP). Oczywi¶cie dla trybu 
30 tekstowego :).
31
32 %prep
33 %setup -q
34 %patch0 -p1
35 %patch1 -p1
36 mv -f unix/Config unix/Config.orig
37 cat >> unix/Config << EOF
38 TF="\${T_BIN}/tf-\${TFVER}"
39 LIBDIR="\${T_SHARE}/tf"
40 #SYMLINK="$RPM_BUILD_ROOT%{_bindir}/tf"
41 MAILDIR="/var/mail"
42 MANPAGE="%{_mandir}/man1/tf.1"
43 MANTYPE="nroff"
44 CCFLAGS="%{rpmcflags}"
45 EOF
46 cat unix/Config.orig >> unix/Config
47
48 %build
49 T_BIN="%{_bindir}"
50 T_SHARE="%{_datadir}"
51 export T_BIN T_SHARE
52 ans=y sh unixmake files
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}}
57 install src/tf  $RPM_BUILD_ROOT%{_bindir}/%{name}
58 install tf-lib/*  $RPM_BUILD_ROOT%{_datadir}/%{name}
59 install src/tf.1.nroffman $RPM_BUILD_ROOT%{_mandir}/man1/tf.1
60
61 cd $RPM_BUILD_ROOT%{_datadir}/%{name}
62 mv kb-bash.tf bind-bash.tf
63 mv kb-emacs.tf bind-emacs.tf
64 mv complete.tf completion.tf
65 mv factoral.tf factorial.tf
66 mv filexfer.tf file-xfer.tf
67 mv local-eg.tf local.tf.sample
68 mv psh.tf pref-shell.tf
69 mv spc-page.tf space_page.tf
70 mv spedwalk.tf speedwalk.tf
71 mv stack-q.tf stack-queue.tf
72 mv world-q.tf worldqueue.tf
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc CHANGES CREDITS README
80 %attr(755,root,root) %{_bindir}/%{name}
81 %dir %{_datadir}/%{name}
82 %{_datadir}/%{name}/*tf
83 %{_datadir}/%{name}/tf-help*
84 %{_mandir}/man1/tf.1*
This page took 0.035561 seconds and 2 git commands to generate.