X-Git-Url: http://git.pld-linux.org/?p=packages%2Ftf.git;a=blobdiff_plain;f=tf.spec;h=decc3a362f72ce42abcebfbe16a56d4583b5921d;hp=97187e9e5373b25fb4ad6883fbf3d9f82977b08b;hb=246143fdf002c8ca9c5cfdf0b34612f17f6862c1;hpb=b550a5b6c1d13a03846b8d42a7fff174afd7dace diff --git a/tf.spec b/tf.spec index 97187e9..decc3a3 100644 --- a/tf.spec +++ b/tf.spec @@ -1,72 +1,89 @@ -Summary: tf - TinyFugue - MUD client +# Often html doc files aren't sync with tf releases. +# New tf releases contains mostly bug fixes, so +# older docs should be ok. +%define doc_ver 50b7 +Summary: tf - TinyFugue - text-mode MUD client Summary(pl): tf - TinyFugue - tekstowy klient do MUD-ów Name: tf -Version: 40s1 +Version: 50b7 Release: 1 License: GPL Group: Applications/Games -Vendor: Ken Keys (Hawkeye) +Source0: ftp://ftp.mud.de/pub/software/clients/unix/tinyfugue/%{name}-%{version}.tar.gz +# Source0-md5: 6652b7eda8a200d28e8184c1659137a2 +Source1: ftp://ftp.mud.de/pub/software/clients/unix/tinyfugue/%{name}-%{doc_ver}-help.tar.gz +# Source1-md5: e143640bfa7dd8cc1c96def5e8ec44f6 +Source2: http://www.ingwar.eu.org/downloads/tf.syntax.gz +# Source2-md5: 398aa4c28e83fb2ce688eade24c5fc88 URL: http://tf.tcp.com/~hawkeye/tf/ -Source0: ftp://tf.tcp.com/pub/tinyfugue/%{name}-%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: ncurses-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description TinyFugue is a MUD-Client (Multi User Dungeons) that allows the user to dive into one the most fascinating Multi-User-Non-Graphic-Fantasy-Role-Playing-Games. Just Enter "tf" and -enjoy your game. +enjoy your game. This client works in text mode, supports MCCP +compression and multiline statusbar. %description -l pl -Po prostu jeden z najlepszych, je¶li nie najlepszy klient do gry w -MUD-y. Oczywi¶cie dla trybu tekstowego :). +TinyFugue jest klientem MUD (Multi User Dungeons), który pozwala +u¿ytkownikowi zag³êbiæ siê w najbardziej fascynuj±cy ¶wiat +Multi-User-Non-Graphic-Fantasy-Role-Playing-Games. Jest to po prostu +jeden z najlepszych, je¶li nie najlepszy klient do gry w MUD-y. Dzia³a +w trybie tekstowym, obs³uguje protokó³ kompresji MCCP oraz posiada +obs³ugê wieloliniowego statusu. + +%package doc +Summary: tf - TinyFugue - text-mode MUD client - HTML help files +Summary(pl): tf - TinyFugue - tekstowy klient do MUD-ów - pliki pomocy w HTML +Group: Applications/Games + +%description doc +HTML help files. + +%description doc -l pl +Pliki pomocy w HTML. %prep %setup -q -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" -MANTYPE="nroff" -MANPAGE="/usr/man/man1/tf.1" -CCFLAGS="$RPM_OPT_FLAGS" -EOF -cat unix/Config.orig >> unix/Config - +tar xzPf %{SOURCE1} +cp %{SOURCE2} . %build -T_BIN="%{_bindir}" -T_SHARE="%{_datadir}" -export T_BIN T_SHARE -ans=y sh unixmake files +%{__autoconf} +%configure +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}-%{version}} -install src/tf $RPM_BUILD_ROOT%{_bindir}/%{name} -install tf-lib/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} +install -d $RPM_BUILD_ROOT%{_bindir} +install -d $RPM_BUILD_ROOT%{_libdir}/tf-lib +install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}/topics +install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}/commands -(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 -) -gzip -9nf CHANGES CREDITS README +install tf-lib/* $RPM_BUILD_ROOT%{_libdir}/tf-lib +install src/tf $RPM_BUILD_ROOT%{_bindir} + +install %{name}-%{doc_ver}-help/topics/* $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}/topics +install %{name}-%{doc_ver}-help/commands/* $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}/commands +install %{name}-%{doc_ver}-help/index.html $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}/index.html %clean rm -rf $RPM_BUILD_ROOT -sh unixmake clean + +%post +echo "%{name}-%{version} is _beta_ release!" +echo "Some of your scripts may not work or work not properly." +echo "You have been warned." %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/%{name} -%{_datadir}/%{name}-%{version} -%doc *.gz +%doc CHANGES CREDITS README stest.tf tf.syntax.gz +%attr(755,root,root) %{_bindir}/* +%{_libdir}/%{name}-lib + +%files doc +%defattr(644,root,root,755) +%{_docdir}/%{name}-doc-%{version}