diff --git a/.cvsignore b/.cvsignore index e69de29..a4e91e5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +halibut-20100504.tar.bz2 diff --git a/halibut.spec b/halibut.spec new file mode 100644 index 0000000..b869a9e --- /dev/null +++ b/halibut.spec @@ -0,0 +1,73 @@ +%define svndate 20100504 +%define svnver 8934 + +Name: halibut +Summary: TeX-like software manual tool +Version: 1.0 +Release: 2.%{svndate}svn%{svnver}%{?dist} +License: MIT +Group: Applications/Text +URL: http://www.chiark.greenend.org.uk/~sgtatham/halibut.html +#Source0: http://www.chiark.greenend.org.uk/~sgtatham/halibut/%{name}-%{version}.tar.gz +# The source for this package was pulled from upstream's vcs. Use the +# following commands to generate the tarball: +# svn export -r %{svnver} svn://svn.tartarus.org/sgt/halibut halibut-%{svndate} +# pushd halibut-%{svndate} +# svn export -r %{svnver} svn://svn.tartarus.org/sgt/charset +# popd +# tar -cjvf halibut-%{svndate}.tar.bz2 halibut-%{svndate} +Source0: %{name}-%{svndate}.tar.bz2 + +%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. + +%package -n vim-halibut +Summary: Syntax file for the halibut manual tool +Group: Applications/Editors +Requires: vim-common +BuildArch: noarch + +%description -n vim-halibut +This package provides vim syntax support for Halibut input files (*.but). + +%prep +%setup -q -n %{name}-%{svndate} + +%build +sed -i 's/CFLAGS += -g/CFLAGS += /g' Makefile +export CFLAGS="%{optflags}" +make %{?_smp_mflags} VERSION="%{version}" +make -C doc + +%install +rm -rf %{buildroot} +make install prefix="%{buildroot}%{_prefix}" mandir="%{buildroot}%{_mandir}" INSTALL="install -Dp" +install -d html +install -pm 0644 doc/*.html html +install -d %{buildroot}%{_datadir}/vim/vimfiles/syntax +install -pm 0644 misc/halibut.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc LICENCE html +%{_bindir}/halibut +%{_mandir}/man1/*.1* + +%files -n vim-halibut +%defattr(-,root,root,-) +%{_datadir}/vim/vimfiles/syntax/*.vim + +%changelog +* Mon May 10 2010 Chen Lei - 1.0-2.20100504svn8934 +- merge -doc subpackage to the main package + +* Tue May 04 2010 Chen Lei - 1.0-1.20100504svn8934 +- initial rpm build diff --git a/sources b/sources index e69de29..99d3c83 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f8705a25bfd137fe7a5c0bde3523befa halibut-20100504.tar.bz2