From: simon Date: Thu, 18 Nov 2004 09:47:02 +0000 (+0000) Subject: David Leonard has contributed an RPM spec file for building RedHat X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/d21bd39fefad0a2515b661c6cf6a76825cb73491 David Leonard has contributed an RPM spec file for building RedHat packages of Halibut. I can't conveniently test it, but it's here if anyone needs it. git-svn-id: svn://svn.tartarus.org/sgt/halibut@4812 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/misc/halibut.spec b/misc/halibut.spec new file mode 100644 index 0000000..484fb5c --- /dev/null +++ b/misc/halibut.spec @@ -0,0 +1,58 @@ +# David Leonard , 2004. +# This file given to Simon Tatham to be released under the MIT licence +# of the Halibut distribution. +# +# SGT: I have no RedHat machine on which to test this file, so I +# cannot guarantee that it won't become out of date as the main +# Halibut code develops. It was submitted to me on 2004-11-17. + +Name: halibut +Version: 0.9 +Release: 1 +Source: http://www.chiark.greenend.org.uk/~sgtatham/halibut/%{name}-%{version}.tar.gz +Group: Applications/Text +Summary: TeX-like software manual tool +License: MIT +URL: http://www.chiark.greenend.org.uk/~sgtatham/halibut.html +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot + +%package vim +Group: Applications/Editors +Summary: Syntax file for the halibut manual tool +PreReq: vim + +%description +Halibut is yet another text formatting system, intended primarily for +writing software documentation. It accepts a single source format and +outputs a variety of formats, planned to include text, HTML, Texinfo, +Windows Help, Windows HTMLHelp, PostScript and PDF. It has comprehensive +indexing and cross-referencing support, and generates hyperlinks within +output documents wherever possible. + +%description vim +This package provides vim syntax support for Halibut input files (*.but). + +%prep +%setup + +%build +gmake VERSION="%{version}" +(cd doc && gmake) + +%install +mkdir -p %{buildroot}%{_bindir} +install -m 555 build/halibut %{buildroot}%{_bindir}/halibut +mkdir -p %{buildroot}%{_mandir}/man1 +install -m 444 doc/halibut.1 %{buildroot}%{_mandir}/man1/halibut.1 + +VIMSYNTAX=%{_prefix}/share/vim/current/syntax +mkdir -p $RPM_BUILD_ROOT/$VIMSYNTAX +install -m 444 misc/halibut.vim %{buildroot}$VIMSYNTAX/halibut.vim + +%files +%{_bindir}/halibut +%{_mandir}/man1/halibut.1* +%doc doc/halibut.txt doc/*.but doc/*.html LICENCE + +%files vim +%{_prefix}/share/vim/current/syntax/halibut.vim