|
|
f521c8 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
f521c8 |
|
|
|
f521c8 |
Name: dblatex
|
|
|
f521c8 |
Version: 0.3.4
|
|
|
f521c8 |
Release: 11%{?dist}
|
|
|
f521c8 |
Summary: DocBook to LaTeX/ConTeXt Publishing
|
|
|
f521c8 |
BuildArch: noarch
|
|
|
f521c8 |
# Most of package is GPLv2+, except:
|
|
|
f521c8 |
# xsl/ directory is DMIT
|
|
|
f521c8 |
# lib/dbtexmf/core/sgmlent.txt is Public Domain
|
|
|
f521c8 |
# latex/misc/enumitem.sty, multirow2.sry and ragged2e.sty are LPPL
|
|
|
f521c8 |
# latex/misc/lastpage.sty is GPLv2 (no +)
|
|
|
f521c8 |
# latex/misc/passivetex is MIT (not included in binary RPM so not listed)
|
|
|
f521c8 |
License: GPLv2+ and GPLv2 and LPPL and DMIT and Public Domain
|
|
|
f521c8 |
URL: http://dblatex.sourceforge.net/
|
|
|
f521c8 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
f521c8 |
Patch0: dblatex-0.2.7-external-which.patch
|
|
|
f521c8 |
Patch1: dblatex-disable-debian.patch
|
|
|
f521c8 |
Patch2: 0001-Make-pdf-generation-work-in-FIPS-mode.patch
|
|
|
f521c8 |
|
|
|
f521c8 |
BuildRequires: python-devel
|
|
|
f521c8 |
BuildRequires: python-which
|
|
|
f521c8 |
BuildRequires: libxslt
|
|
|
f521c8 |
BuildRequires: ImageMagick
|
|
|
f521c8 |
BuildRequires: texlive-base
|
|
|
f521c8 |
BuildRequires: texlive-collection-latex
|
|
|
f521c8 |
BuildRequires: texlive-collection-xetex
|
|
|
f521c8 |
BuildRequires: texlive-collection-htmlxml
|
|
|
f521c8 |
BuildRequires: transfig
|
|
|
f521c8 |
BuildRequires: texlive-epstopdf-bin
|
|
|
f521c8 |
BuildRequires: texlive-xmltex-bin
|
|
|
f521c8 |
BuildRequires: texlive-anysize
|
|
|
f521c8 |
BuildRequires: texlive-appendix
|
|
|
f521c8 |
BuildRequires: texlive-changebar
|
|
|
f521c8 |
BuildRequires: texlive-jknapltx
|
|
|
f521c8 |
BuildRequires: texlive-multirow
|
|
|
f521c8 |
BuildRequires: texlive-overpic
|
|
|
f521c8 |
BuildRequires: texlive-pdfpages
|
|
|
f521c8 |
BuildRequires: texlive-subfigure
|
|
|
f521c8 |
BuildRequires: texlive-stmaryrd
|
|
|
f521c8 |
Requires: texlive-base
|
|
|
f521c8 |
Requires: texlive-collection-latex
|
|
|
f521c8 |
Requires: texlive-collection-xetex
|
|
|
f521c8 |
Requires: texlive-collection-htmlxml
|
|
|
f521c8 |
Requires: texlive-collection-fontsrecommended
|
|
|
f521c8 |
Requires: texlive-epstopdf-bin
|
|
|
f521c8 |
Requires: texlive-passivetex
|
|
|
f521c8 |
Requires: texlive-xmltex texlive-xmltex-bin
|
|
|
f521c8 |
Requires: texlive-anysize
|
|
|
f521c8 |
Requires: texlive-appendix
|
|
|
f521c8 |
Requires: texlive-bibtopic
|
|
|
f521c8 |
Requires: texlive-changebar
|
|
|
f521c8 |
Requires: texlive-ec
|
|
|
f521c8 |
Requires: texlive-jknapltx
|
|
|
f521c8 |
Requires: texlive-multirow
|
|
|
f521c8 |
Requires: texlive-overpic
|
|
|
f521c8 |
Requires: texlive-passivetex
|
|
|
f521c8 |
Requires: texlive-pdfpages
|
|
|
f521c8 |
Requires: texlive-subfigure
|
|
|
f521c8 |
Requires: texlive-stmaryrd
|
|
|
f521c8 |
Requires: texlive-xmltex-bin
|
|
|
f521c8 |
Requires: libxslt docbook-dtds
|
|
|
f521c8 |
Requires: transfig
|
|
|
f521c8 |
Requires: ImageMagick
|
|
|
f521c8 |
|
|
|
f521c8 |
%description
|
|
|
f521c8 |
dblatex is a program that transforms your SGML/XMLDocBook
|
|
|
f521c8 |
documents to DVI, PostScript or PDF by translating them
|
|
|
f521c8 |
into pure LaTeX as a first process. MathML 2.0 markups
|
|
|
f521c8 |
are supported, too. It started as a clone of DB2LaTeX.
|
|
|
f521c8 |
|
|
|
f521c8 |
Authors:
|
|
|
f521c8 |
--------
|
|
|
f521c8 |
BenoƮt Guillon <marsgui at users dot sourceforge dot net>
|
|
|
f521c8 |
Andreas Hoenen <andreas dot hoenen at arcor dot de>
|
|
|
f521c8 |
|
|
|
f521c8 |
|
|
|
f521c8 |
%prep
|
|
|
f521c8 |
%setup -q
|
|
|
f521c8 |
%patch0 -p1 -b .external-which
|
|
|
f521c8 |
%patch1 -p1 -b .disable-debian
|
|
|
f521c8 |
%patch2 -p1 -b .fips-mode
|
|
|
f521c8 |
rm -rf lib/contrib
|
|
|
f521c8 |
|
|
|
f521c8 |
# make sure we use correct python version
|
|
|
f521c8 |
sed -i '1s: /usr/bin/env python:/usr/bin/python:' scripts/dblatex
|
|
|
f521c8 |
|
|
|
f521c8 |
%build
|
|
|
f521c8 |
%{__python} setup.py build
|
|
|
f521c8 |
|
|
|
f521c8 |
|
|
|
f521c8 |
%install
|
|
|
f521c8 |
#%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
f521c8 |
%{__python} setup.py install --root $RPM_BUILD_ROOT
|
|
|
f521c8 |
# these are already in tetex-latex:
|
|
|
f521c8 |
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
|
|
|
f521c8 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
|
|
|
f521c8 |
done
|
|
|
f521c8 |
|
|
|
f521c8 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex
|
|
|
f521c8 |
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
|
|
|
f521c8 |
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
|
|
|
f521c8 |
done
|
|
|
f521c8 |
|
|
|
f521c8 |
## also move .xetex files
|
|
|
f521c8 |
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
|
|
|
f521c8 |
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
|
|
|
f521c8 |
done
|
|
|
f521c8 |
|
|
|
f521c8 |
rmdir $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
|
|
|
f521c8 |
|
|
|
f521c8 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
|
|
|
f521c8 |
# shipped in %%docs
|
|
|
f521c8 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
|
|
|
f521c8 |
|
|
|
f521c8 |
sed -e 's/\r//' xsl/mathml2/README > README-xsltml
|
|
|
f521c8 |
touch -r xsl/mathml2/README README-xsltml
|
|
|
f521c8 |
|
|
|
f521c8 |
|
|
|
f521c8 |
%files
|
|
|
f521c8 |
%{_mandir}/man1/dblatex.1*
|
|
|
f521c8 |
%doc COPYRIGHT docs/manual.pdf README-xsltml
|
|
|
f521c8 |
%{python_sitelib}/dbtexmf/
|
|
|
f521c8 |
%{python_sitelib}/dblatex-*.egg-info
|
|
|
f521c8 |
%{_bindir}/dblatex
|
|
|
f521c8 |
%{_datadir}/dblatex/
|
|
|
f521c8 |
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/
|
|
|
f521c8 |
%dir %{_sysconfdir}/dblatex
|
|
|
f521c8 |
|
|
|
f521c8 |
%post -p /usr/bin/texhash
|
|
|
f521c8 |
|
|
|
f521c8 |
%postun -p /usr/bin/texhash
|
|
|
f521c8 |
|
|
|
f521c8 |
%changelog
|
|
|
f521c8 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.4-11
|
|
|
f521c8 |
- Mass rebuild 2013-12-27
|
|
|
f521c8 |
|
|
|
f521c8 |
* Tue Sep 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-10
|
|
|
f521c8 |
- Replace /usr/bin/env usage in dblatex script
|
|
|
f521c8 |
- Remove separate docbook license file
|
|
|
f521c8 |
- Resolves: rhbz#987014
|
|
|
f521c8 |
- Resolves: rhbz#878039
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-9
|
|
|
f521c8 |
- Add FIPS mode patch
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-8
|
|
|
f521c8 |
- Add Public Domain license and licensing comment
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-7
|
|
|
f521c8 |
- Add DMIT, GPLv2 and LPPL licenses
|
|
|
f521c8 |
- Fix space and tab mixing
|
|
|
f521c8 |
- Cleanup old spec file parts
|
|
|
f521c8 |
|
|
|
f521c8 |
* Wed May 29 2013 Michael J Gruber <mjg@fedoraproject.org> - 0.3.4-6
|
|
|
f521c8 |
- Add mising R texlive-multirow.
|
|
|
f521c8 |
|
|
|
f521c8 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-5
|
|
|
f521c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f521c8 |
|
|
|
f521c8 |
* Wed Jan 02 2013 Benjamin De Kosnik <bkoz@redhat.com> - 0.3.4-1
|
|
|
f521c8 |
- Update to 0.3.4.
|
|
|
f521c8 |
- Adjust for texlive rebase.
|
|
|
f521c8 |
|
|
|
f521c8 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-5
|
|
|
f521c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f521c8 |
|
|
|
f521c8 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
|
|
|
f521c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f521c8 |
|
|
|
f521c8 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
|
|
|
f521c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
f521c8 |
|
|
|
f521c8 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-2
|
|
|
f521c8 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Apr 12 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.3-1
|
|
|
f521c8 |
- Update to 0.3
|
|
|
f521c8 |
- Cleanup spec: drop some unnecessary conditionals for old releases (< F-11)
|
|
|
f521c8 |
|
|
|
f521c8 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-3
|
|
|
f521c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-2
|
|
|
f521c8 |
- remove dblatex-0.2.9-xetex.patch
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-1
|
|
|
f521c8 |
- Update to 0.2.10
|
|
|
f521c8 |
|
|
|
f521c8 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
|
|
|
f521c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.9-3
|
|
|
f521c8 |
- Rebuild for Python 2.6
|
|
|
f521c8 |
|
|
|
f521c8 |
* Fri Jul 4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-2
|
|
|
f521c8 |
- BR: texlive-xetex -> tex(xetex) for F-10 and later
|
|
|
f521c8 |
|
|
|
f521c8 |
* Thu Jun 12 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-1
|
|
|
f521c8 |
- Update to latest upstream (0.2.9) (#448953)
|
|
|
f521c8 |
- Remove some redundant Requires and BuildRequires (passivetex pulls
|
|
|
f521c8 |
in the tetex/tex requires, python dep added automatically)
|
|
|
f521c8 |
- For F-9+ BR on tex(latex) and texlive-xetex, fix the installation
|
|
|
f521c8 |
scripts to install extra new files.
|
|
|
f521c8 |
- Add patch from dblatex mailing list for better handling of a missing
|
|
|
f521c8 |
xetex.
|
|
|
f521c8 |
- Conditionally add .egg-info file only if F9+ to allow for unified
|
|
|
f521c8 |
spec file
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sun Dec 16 2007 Patrice Dumas <pertusus@free.fr> - 0.2.8-2.1
|
|
|
f521c8 |
- don't install in docbook directory, it is a link to a versioned
|
|
|
f521c8 |
directory and may break upon docbook update (#425251,#389231)
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sun Nov 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.8-1
|
|
|
f521c8 |
- Update to 0.2.8
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-16
|
|
|
f521c8 |
- convert spec to utf8
|
|
|
f521c8 |
- change to gplv2+
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-15
|
|
|
f521c8 |
- Add copyright info
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Nov 5 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-14
|
|
|
f521c8 |
- Req tetex-fonts for texhash
|
|
|
f521c8 |
- Fix post, postun
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sun Nov 4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-13
|
|
|
f521c8 |
- Add texhash
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sun Nov 4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
|
|
|
f521c8 |
- Fix xsl link
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sat Nov 3 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
|
|
|
f521c8 |
- Various fixes from pertusus@free.fr:
|
|
|
f521c8 |
- rm iconv stuff
|
|
|
f521c8 |
- simplify docs installation
|
|
|
f521c8 |
|
|
|
f521c8 |
* Fri Nov 2 2007 <ndbecker2@gmail.com> - 0.2.7-11
|
|
|
f521c8 |
- Various minor fixes
|
|
|
f521c8 |
|
|
|
f521c8 |
* Thu Nov 1 2007 <ndbecker2@gmail.com> - 0.2.7-10
|
|
|
f521c8 |
- Add some reqs and brs
|
|
|
f521c8 |
- rmdir /usr/share/dblatex/latex/{misc,contrib/example,style}
|
|
|
f521c8 |
|
|
|
f521c8 |
* Sat Oct 27 2007 <ndbecker2@gmail.com> - 0.2.7-9
|
|
|
f521c8 |
- link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex
|
|
|
f521c8 |
- rmdir /usr/share/dblatex/latex/{misc,specs,style}
|
|
|
f521c8 |
- own /etc/dblatex
|
|
|
f521c8 |
- change $(...) -> `...`
|
|
|
f521c8 |
- Preserve timestamps on iconv
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-9
|
|
|
f521c8 |
- mv all .sty files to datadir/texmf/tex/latex/dblatex
|
|
|
f521c8 |
- Add Conflicts tetex-tex4ht
|
|
|
f521c8 |
- mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/
|
|
|
f521c8 |
|
|
|
f521c8 |
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
|
|
|
f521c8 |
- rm redundant latex files
|
|
|
f521c8 |
|
|
|
f521c8 |
* Tue Sep 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
|
|
|
f521c8 |
- Fixed encodings in docs directory
|
|
|
f521c8 |
- Install docs at correct location
|
|
|
f521c8 |
|
|
|
f521c8 |
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-7
|
|
|
f521c8 |
- Revert back to GPLv2
|
|
|
f521c8 |
- untabify
|
|
|
f521c8 |
|
|
|
f521c8 |
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-6
|
|
|
f521c8 |
- Fix source URL
|
|
|
f521c8 |
- Install all docs
|
|
|
f521c8 |
- Tabify
|
|
|
f521c8 |
|
|
|
f521c8 |
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-5
|
|
|
f521c8 |
- Add BR tetex-latex
|
|
|
f521c8 |
|
|
|
f521c8 |
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-4
|
|
|
f521c8 |
- Add BR tetex, ImageMagick
|
|
|
f521c8 |
|
|
|
f521c8 |
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-3
|
|
|
f521c8 |
- Add BR libxslt
|
|
|
f521c8 |
|
|
|
f521c8 |
* Wed Sep 19 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-2
|
|
|
f521c8 |
- Add BR python-devel
|
|
|
f521c8 |
|
|
|
f521c8 |
* Fri Sep 7 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-1
|
|
|
f521c8 |
- Initial
|