- applied patch correcting libs filenames
[packages/tf.git] / tf.spec
diff --git a/tf.spec b/tf.spec
index f0a59ccacee2ca073910ecc189577f62ac995860..8c60d7a2afd8b9d7f6f1bee9c116d94359093a63 100644 (file)
--- a/tf.spec
+++ b/tf.spec
@@ -7,6 +7,7 @@ License:        GPL
 Group:         Applications/Games
 Vendor:                Ken Keys (Hawkeye) <hawkeye@tf.tcp.com>
 Source0:       ftp://tf.tcp.com/pub/tinyfugue/%{name}-%{version}.tar.gz
+Patch0:                %{name}-filenames.patch
 URL:           http://tf.tcp.com/~hawkeye/tf/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -22,13 +23,15 @@ MUD-y. Oczywi
 
 %prep
 %setup -q
+%patch0 -p1
 mv -f unix/Config unix/Config.orig
 cat << EOF >> unix/Config
 TF="\${T_BIN}/tf-\${TFVER}"
-LIBDIR="\${T_SHARE}/tf-\${TFVER}"
-SYMLINK="/$RPM_BUILD_ROOT/usr/bin/tf"
+LIBDIR="\${T_SHARE}/tf"
+SYMLINK="$RPM_BUILD_ROOT/usr/bin/tf"
+MAILDIR="/var/mail"
+MANPAGE="/usr/share/man/man1/tf.1"
 MANTYPE="nroff"
-MANPAGE="/usr/man/man1/tf.1"
 CCFLAGS="$RPM_OPT_FLAGS"
 EOF
 cat unix/Config.orig >> unix/Config
@@ -41,23 +44,23 @@ ans=y sh unixmake files
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}-%{version}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}}
 install src/tf  $RPM_BUILD_ROOT%{_bindir}/%{name}
-install tf-lib/*  $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+install tf-lib/*  $RPM_BUILD_ROOT%{_datadir}/%{name}
+install src/tf.1.nroffman $RPM_BUILD_ROOT%{_mandir}/man1/tf.1
 
-(cd $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
-ln -sf kb-bash.tf bind-bash.tf
-ln -sf kb-emacs.tf bind-emacs.tf
-ln -sf complete.tf completion.tf
-ln -sf factoral.tf factorial.tf
-ln -sf filexfer.tf file-xfer.tf
-ln -sf local-eg.tf local.tf.sample
-ln -sf psh.tf pref-shell.tf
-ln -sf spc-page.tf space_page.tf
-ln -sf spedwalk.tf speedwalk.tf
-ln -sf stack-q.tf stack-queue.tf
-ln -sf world-q.tf worldqueue.tf
-)
+cd $RPM_BUILD_ROOT%{_datadir}/%{name}
+mv kb-bash.tf bind-bash.tf
+mv kb-emacs.tf bind-emacs.tf
+mv complete.tf completion.tf
+mv factoral.tf factorial.tf
+mv filexfer.tf file-xfer.tf
+mv local-eg.tf local.tf.sample
+mv psh.tf pref-shell.tf
+mv spc-page.tf space_page.tf
+mv spedwalk.tf speedwalk.tf
+mv stack-q.tf stack-queue.tf
+mv world-q.tf worldqueue.tf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -66,4 +69,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc CHANGES CREDITS README
 %attr(755,root,root) %{_bindir}/%{name}
-%{_datadir}/%{name}-%{version}
+%{_datadir}/%{name}
+%{_mandir}/man1/tf.1*
This page took 0.051958 seconds and 4 git commands to generate.