xmltex/xmltex.spec

90 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 20090226-2mamba
- migrated from %{_datadir}/texmf to %{_datadir}/texmf-dist
* Thu Feb 26 2009 gil <puntogil@libero.it> 20090226-1mamba
- package created by autospec