X-Git-Url: http://git.pld-linux.org/?p=packages%2Ftf.git;a=blobdiff_plain;f=tf.spec;h=34c339387cff4d269c3eac41813f402ad3ff6e2f;hp=0cb8f397292521f3f66bae7ce2c3f024ca94f7ef;hb=140b4b0;hpb=5dba9c2ff66d4ea9d17887c3e3e193b54db4dc62 diff --git a/tf.spec b/tf.spec index 0cb8f39..34c3393 100644 --- a/tf.spec +++ b/tf.spec @@ -1,88 +1,89 @@ -Summary: tf - TinyFugue - MUD client -Summary(pl): tf - TinyFugue - tekstowy klient do MUDow +# 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 50b8 +Summary: tf - TinyFugue - text-mode MUD client +Summary(pl.UTF-8): tf - TinyFugue - tekstowy klient do MUD-ów Name: tf -Version: 40s1 +Version: 50b8 Release: 1 License: GPL -Group: Aplications/games -Group(pl): Aplikacje/gry -Vendor: Ken Keys (Hawkeye) -URL: http://tf.tcp.com/~hawkeye/tf/ -Source0: ftp://tf.tcp.com/pub/tinyfugue/%{name}-%{version}.tar.gz +Group: Applications/Games +Source0: http://dl.sourceforge.net/tinyfugue/%{name}-%{version}.tar.gz +# Source0: +Source1: http://dl.sourceforge.net/tinyfugue/%{name}-%{doc_ver}-help.tar.gz +# Source1: +Source2: http://www.ingwar.eu.org/downloads/%{name}.syntax.gz +# Source2: +URL: http://sourceforge.net/projects/tinyfugue/ +BuildRequires: autoconf +BuildRequires: ncurses-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/bin - %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. -%description -l pl -Po prostu jeden z najlepszych , jesli nie najlepszy klient do gry w MUDy. -Oczywiscie dla trybu tekstowego :) . -%prep +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. This client works in text mode, supports MCCP +compression and multiline statusbar. + +%description -l pl.UTF-8 +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.UTF-8): tf - TinyFugue - tekstowy klient do MUD-ów - pliki pomocy w HTML +Group: Applications/Games -%setup -n %name-%version -mv 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 -export T_BIN="/usr/bin" -export T_SHARE="/usr/share" +%description doc +HTML help files. + +%description doc -l pl.UTF-8 +Pliki pomocy w HTML. + +%prep +%setup -q +tar xzPf %{SOURCE1} +cp %{SOURCE2} . %build -export T_BIN="/usr/bin" -export T_SHARE="/usr/share" -ans=y sh unixmake files +%{__autoconf} +%configure +%{__make} %install -if [ -d $RPM_BUILD_ROOT ]; then - rm -rf $RPM_BUILD_ROOT -fi -mkdir $RPM_BUILD_ROOT -mkdir $RPM_BUILD_ROOT/usr -mkdir $RPM_BUILD_ROOT/usr/bin -mkdir $RPM_BUILD_ROOT/usr/share -export T_BIN="$RPM_BUILD_ROOT/usr/bin" -export T_SHARE="$RPM_BUILD_ROOT/usr/share" -ans=y sh unixmake reconfigure -sh unixmake install -#cd /$RPM_BUILD_ROOT/usr/share/doc/tf-${TFVER} -gzip -9nf CHANGES COPYING CREDITS README -#cd $RPM_BUILD_ROOT/usr/bin/ +rm -rf $RPM_BUILD_ROOT +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 + + +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 -sh unixmake clean +rm -rf $RPM_BUILD_ROOT %post -cd /usr/bin -ln -s ./%name-%version ./tf - -%postun -rm /usr/bin/tf +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) /usr/bin/%name-%version -/usr/share/%name-%version -%doc *.gz -#%doc CHANGES COPYING CREDITS README +%doc CHANGES CREDITS README tf.syntax.gz +%attr(755,root,root) %{_bindir}/* +%{_libdir}/%{name}-lib -%changelog -* %{date} PLD Team -All persons listed below can be reached at @pld.org.pl - -$Log: tf.spec,v $ -Revision 1.1 2001-10-16 21:50:43 qwark -it's itial relase after some troubles with tf install script - Added Files: - tf.spec - -Revision 1.0 2001/10/17 23:50:53 qwark -- initial release -Based on spec written for RH +%files doc +%defattr(644,root,root,755) +%{_docdir}/%{name}-doc-%{version}