From c5127f94e8aa0c8c8d60a7ba19906fbc44322226 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:46:05 +0100 Subject: [PATCH] migrated from %{_datadir}/texmf to %{_datadir}/texmf-dist [release 20090226-2mamba;Tue Aug 20 2013] --- README.md | 3 ++ xmltex.spec | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 xmltex.spec diff --git a/README.md b/README.md index 9b161a3..76584aa 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # xmltex +This package provides an implementation of a parser for documents matching the XML 1.0 and XML Namespace Recommendations. In addition to parsing commands are provided to attatch TeX typesetting instructions to the various markup elemenets as they are encounted. Sample files for typesetting a subset of TEI, MathML, are included. Element and Attribute names, as well as character data, may use any characters allowed in XML, using UTF-8 or a suitable 8-bit encoding. +The author is David Carlisle. + diff --git a/xmltex.spec b/xmltex.spec new file mode 100644 index 0000000..2b045f1 --- /dev/null +++ b/xmltex.spec @@ -0,0 +1,89 @@ +Name: xmltex +Version: 20090226 +Release: 2mamba +Summary: A non validating (and not 100% conforming) namespace aware XML parser implemented in TeX +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.ctan.org/tex-archive/help/Catalogue/entries/xmltex.html +Source0: ftp://ftp.tex.ac.uk/tex-archive/macros/xmltex/base.zip +Source1: ftp://ftp.tex.ac.uk/tex-archive/macros/xmltex/contrib/passivetex.zip +License: LaTeX Project Public License +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: tetex-latex +Requires: tetex-latex +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This package provides an implementation of a parser for documents matching the XML 1.0 and XML Namespace Recommendations. In addition to parsing commands are provided to attatch TeX typesetting instructions to the various markup elemenets as they are encounted. Sample files for typesetting a subset of TEI, MathML, are included. Element and Attribute names, as well as character data, may use any characters allowed in XML, using UTF-8 or a suitable 8-bit encoding. +The author is David Carlisle. + +%package -n passivetex +Group: Applications/Publishing +Summary: Macros to process XSL formatting objects +License: LaTeX Project Public License +URL: http://www.tei-c.org.uk/Software/passivetex/ +Requires: xmltex +Requires: tetex-latex +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description -n passivetex +PassiveTeX is a library of TeX macros which can be used to process an XML document which results from an XSL transformation to formatting objects. +PassiveTeX provides a rapid development environment for experimenting with XSL FO, using a reliable pre-existing formatter. +Running PassiveTeX with the pdfTeX variant of TeX generates high-quality PDF files in a single operation. +PassiveTeX shows how TeX can remain the formatter of choice for XML, while hiding the details of its operation from the user. + +%prep +%setup -q -n base +unzip %{S:1} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_datadir}/texmf-dist/tex/xmltex/passivetex + +# xmltex + +mkdir -p %{buildroot}%{_bindir} + +install -p *.xmt %{name}.cfg *.ini *.tex %{buildroot}%{_datadir}/texmf-dist/tex/xmltex +ln -s pdftex %{buildroot}%{_bindir}/pdf%{name} +ln -s latex %{buildroot}%{_bindir}/%{name} + +gzip -9nf readme.txt + +# passivetex + +install -p passivetex/*.{sty,xmt} %{buildroot}%{_datadir}/texmf-dist/tex/xmltex/passivetex + + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(644,root,root) +%attr(755,root,root) %{_bindir}/pdfxmltex +%attr(755,root,root) %{_bindir}/xmltex +%dir %{_datadir}/texmf-dist/tex/xmltex +%{_datadir}/texmf-dist/tex/xmltex/*.tex +%{_datadir}/texmf-dist/tex/xmltex/*.xmt +%{_datadir}/texmf-dist/tex/xmltex/*.cfg +%{_datadir}/texmf-dist/tex/xmltex/*.ini +%doc readme.txt.gz manual.html + +%files -n passivetex +%defattr(644,root,root) +%dir %{_datadir}/texmf-dist/tex/xmltex/passivetex +%{_datadir}/texmf-dist/tex/xmltex/passivetex/*.sty +%{_datadir}/texmf-dist/tex/xmltex/passivetex/*.xmt + +%changelog +* Tue Aug 20 2013 Silvan Calarco 20090226-2mamba +- migrated from %{_datadir}/texmf to %{_datadir}/texmf-dist + +* Thu Feb 26 2009 gil 20090226-1mamba +- package created by autospec