diff --git a/.cvsignore b/.cvsignore index e69de29..97938cf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +linuxdoc-tools_0.9.16.tar.gz diff --git a/linuxdoc-tools-0.9.13-letter.patch b/linuxdoc-tools-0.9.13-letter.patch new file mode 100644 index 0000000..ed6e0e8 --- /dev/null +++ b/linuxdoc-tools-0.9.13-letter.patch @@ -0,0 +1,24 @@ +--- linuxdoc-tools-0.9.13/lib/LinuxDocTools.pm.letter Mon Nov 26 16:09:37 2001 ++++ linuxdoc-tools-0.9.13/lib/LinuxDocTools.pm Mon Nov 26 16:09:49 2001 +@@ -108,7 +108,7 @@ + { option => "pass", type => "s", short => "P" } + ]; + $global->{backend} = "linuxdoc"; +- $global->{papersize} = "a4"; ++ $global->{papersize} = "letter"; + $global->{language} = "en"; + $global->{charset} = "ascii"; + $global->{style} = ""; +--- linuxdoc-tools-0.9.13/man/linuxdoc.1.letter Mon Nov 26 16:10:04 2001 ++++ linuxdoc-tools-0.9.13/man/linuxdoc.1 Mon Nov 26 16:10:42 2001 +@@ -46,8 +46,8 @@ + format, but just output the usage of this suites. + Available formats are: html, info, latex, lyx, rtf, tex, check. + .IP "--papersize=\fIsize\fR, -p +-Set the paper size. Default is ``a4'' (European 297x210mm paper). +-You may also specify ``letter'' size. ++Set the paper size. Default is ``letter''. ++You may also specify ``a4'' size (European 297x210mm paper). + .IP "--language=\fIlang\fR, -l" + Specify the language of the document (this may change which style + files are used for formatting by a back end). The default language is diff --git a/linuxdoc-tools.spec b/linuxdoc-tools.spec new file mode 100644 index 0000000..e9e7eaf --- /dev/null +++ b/linuxdoc-tools.spec @@ -0,0 +1,174 @@ +Summary: A text formatting package based on SGML. +Name: linuxdoc-tools +Obsoletes: sgml-tools +Obsoletes: linuxdoc-sgml +Version: 0.9.16 +Release: 3 +License: Freely distributable +Group: Applications/Publishing +Source: http://people.debian.org/~sano/linuxdoc-tools/archives/%{name}_%{version}.tar.gz +Patch0: linuxdoc-tools-0.9.13-letter.patch +Requires: jade +Url: http://people.debian.org/~sano/linuxdoc-tools/ +BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: flex sgml-common +Requires: tetex-latex gawk groff + +%description +Linuxdoc-tools is a text formatting suite based on SGML (Standard +Generalized Markup Language), using the LinuxDoc document type. +Linuxdoc-tools allows you to produce LaTeX, HTML, GNU info, LyX, RTF, +plain text (via groff), and other format outputs from a single SGML +source. Linuxdoc-tools is intended for writing technical software +documentation. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure --with-installed-nsgmls --with-installed-iso-entities +# Packaging brain-damage +( cd entity-map + autoconf + %configure +) +make OPTIMIZE="-g" # OPTIMIZE="$RPM_OPT_FLAGS" +perl -pi -e 's,\$main::prefix/share/sgml/iso-entities-8879.1986/iso-entities.cat,/usr/share/sgml/sgml-iso-entities-8879.1986/catalog,' \ + lib/LinuxDocTools.pm + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall +mv %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/%{name}-%{version} +perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \ + %{buildroot}%{_datadir}/%{name}/LinuxDocTools.pm + +# Some files need moving around. +rm -f %{buildroot}%{_datadir}/%{name}/epsf.* +rm -f %{buildroot}%{_datadir}/%{name}/url.sty +install -d %{buildroot}%{_datadir}/texmf/tex/latex/misc +mv %{buildroot}%{_datadir}/%{name}/*.sty \ + %{buildroot}%{_datadir}/texmf/tex/latex/misc + +cat > doc/COPYRIGHT < /dev/null 2>&1 +exit 0 + +%postun +[ -x %{_bindir}/texhash ] && /usr/bin/env - %{_bindir}/texhash > /dev/null 2>&1 +exit 0 + +%files +%defattr (-,root,root) +%doc %{_docdir}/%{name}-%{version} +%{_bindir}/* +%{_datadir}/%{name} +%{_datadir}/entity-map +%{_datadir}/texmf/tex/latex/misc/*.sty +%dir %{_libdir}/perl5/Text +%{_libdir}/perl5/Text/EntityMap.pm +%{_mandir}/*/* + +%changelog +* Tue Feb 26 2002 Tim Waugh 0.9.16-3 +- Rebuild in new environment. + +* Wed Jan 30 2002 Tim Waugh 0.9.16-2 +- Rebuild to fix bug #59055. + +* Mon Jan 28 2002 Tim Waugh 0.9.16-1 +- 0.9.16. +- No longer need the libdir patch. + +* Wed Jan 09 2002 Tim Powers 0.9.15-2 +- automated rebuild + +* Mon Dec 3 2001 Tim Waugh 0.9.15-1 +- 0.9.15; incorporates most of the libdir patch. +- The fixsgml2latex patch is no longer required. +- Installed documentation now works. +- Don't ship backup files. +- Put the LaTeX style files in the texmf directory tree. +- Requires: gawk, groff. + +* Mon Nov 26 2001 Tim Waugh 0.9.13-1 +- Dump sgml-tools in favour of linuxdoc-tools (bug #56710). + +* Mon Jun 18 2001 Tim Waugh 1.0.9-12 +- Use %%{_tmppath}. +- Build requres flex. + +* Wed May 30 2001 Tim Waugh 1.0.9-11 +- Don't ship backup files. + +* Wed May 30 2001 Tim Waugh 1.0.9-10 +- Sync description with specspo. + +* Thu Mar 8 2001 Tim Waugh 1.0.9-9 +- Create temporary files safely (patch from Debian package). + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Sat Jun 10 2000 Bill Nottingham +- fix man page for sgml2txt (#10722) + +* Sat Jun 3 2000 Bill Nottingham +- apparently this can't deal with FHS + +* Thu Jun 1 2000 Bill Nottingham +- hey, it's self-hosting now! + +* Fri Feb 11 2000 Preston Brown +- add copyright file (#8621) +- fix sgml2latex processing (#4114) +- fix configure tests (#6480) + +* Wed Feb 9 2000 Bernhard Rosenkränzer +- get rid of "CC=egcs" +- require jade - sgml2html calls nsgmls. + +* Fri Jan 28 2000 Bill Nottingham +- resurrect package in a non-conflicting manner + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 2) + +* Wed Mar 17 1999 Preston Brown +- we aren't going to 2.0.x for 6.0, using 1.0.9 instead (more stable) + +* Thu Aug 20 1998 Bill Nottingham +- updated to 1.0.7 + +* Tue May 05 1998 Donnie Barnes +- changed default papersize to letter (from a4...sorry Europeans :-) + use --papersize=a4 on any sgml2* command to change it or remove the + patch from this spec file and rebuild. + +* Thu Apr 30 1998 Cristian Gafton +- updated to 1.0.6 + +* Fri Apr 24 1998 Prospector System +- translations modified for de, fr, tr + +* Mon Jan 12 1998 Donnie Barnes +- updated from 0.99 to 1.0.3 +- added BuildRoot + +* Sat Nov 01 1997 Donnie Barnes +- fixed man pages + +* Mon Oct 20 1997 Donnie Barnes +- new release - Obsoletes linuxdoc-sgml + diff --git a/sources b/sources index e69de29..28643d2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +04ebf28160052108547e49257195c832 linuxdoc-tools_0.9.16.tar.gz