Blame SPECS/dblatex.spec

7965bd
%{!?python3_sitelib: %define python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7965bd
7965bd
Name:       dblatex
7965bd
Version:    0.3.10
7965bd
Release:    8%{?dist}
7965bd
Summary:    DocBook to LaTeX/ConTeXt Publishing
7965bd
BuildArch:  noarch
7965bd
# Most of package is GPLv2+, except:
7965bd
# xsl/ directory is DMIT
7965bd
# lib/dbtexmf/core/sgmlent.txt is Public Domain
7965bd
# latex/misc/enumitem.sty, multirow2.sry and ragged2e.sty are LPPL
7965bd
# latex/misc/lastpage.sty is GPLv2 (no +)
7965bd
# latex/misc/passivetex is MIT (not included in binary RPM so not listed)
7965bd
License:    GPLv2+ and GPLv2 and LPPL and DMIT and Public Domain
7965bd
URL:        http://dblatex.sourceforge.net/
7965bd
Source0:    http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
7965bd
# Source1 is from http://docbook.sourceforge.net/release/xsl/current/COPYING
7965bd
Source1:    COPYING-docbook-xsl
7965bd
Patch0:     dblatex-0.3.10-enable-python3.patch
7965bd
Patch1:     dblatex-0.3.10-disable-debian.patch
7965bd
Patch2:     dblatex-0.3.10-use-shutil-which.patch
7965bd
Patch3:     dblatex-0.3.10-fix-shebangs.patch
7965bd
7965bd
BuildRequires:  python3-devel
7965bd
BuildRequires:  libxslt
7965bd
BuildRequires:  texlive-base
7965bd
BuildRequires:  texlive-collection-latex
7965bd
BuildRequires:  texlive-collection-xetex
7965bd
BuildRequires:  texlive-collection-htmlxml
7965bd
BuildRequires:  texlive-xmltex-bin
7965bd
BuildRequires:  texlive-anysize
7965bd
BuildRequires:  texlive-appendix
7965bd
BuildRequires:  texlive-changebar
7965bd
BuildRequires:  texlive-fancybox
7965bd
BuildRequires:  texlive-jknapltx
7965bd
BuildRequires:  texlive-multirow
7965bd
BuildRequires:  texlive-overpic
7965bd
BuildRequires:  texlive-pdfpages
7965bd
BuildRequires:  texlive-subfigure
7965bd
BuildRequires:  texlive-stmaryrd
7965bd
BuildRequires:  texlive-wasysym
7965bd
Requires:       texlive-base
7965bd
Requires:       texlive-collection-latex
7965bd
Requires:       texlive-collection-xetex
7965bd
Requires:       texlive-collection-htmlxml
7965bd
Requires:       texlive-collection-fontsrecommended
7965bd
Requires:       texlive-passivetex
7965bd
Requires:       texlive-xmltex texlive-xmltex-bin
7965bd
Requires:       texlive-anysize
7965bd
Requires:       texlive-appendix
7965bd
Requires:       texlive-bibtopic
7965bd
Requires:       texlive-changebar
7965bd
Requires:       texlive-ec
7965bd
Requires:       texlive-fancybox
7965bd
Requires:       texlive-jknapltx
7965bd
Requires:       texlive-multirow
7965bd
Requires:       texlive-overpic
7965bd
Requires:       texlive-passivetex
7965bd
Requires:       texlive-pdfpages
7965bd
Requires:       texlive-subfigure
7965bd
Requires:       texlive-stmaryrd
7965bd
Requires:       texlive-wasysym
7965bd
Requires:       texlive-xmltex-bin
7965bd
Requires:       libxslt docbook-dtds
7965bd
Recommends:     texlive-epstopdf-bin
7965bd
Recommends:     transfig
7965bd
Recommends:     inkscape
7965bd
7965bd
%description
7965bd
dblatex is a program that transforms your SGML/XMLDocBook
7965bd
documents to DVI, PostScript or PDF by translating them
7965bd
into pure LaTeX as a first process.  MathML 2.0 markups
7965bd
are supported, too. It started as a clone of DB2LaTeX.
7965bd
7965bd
Authors:
7965bd
--------
7965bd
   BenoƮt Guillon <marsgui at users dot sourceforge dot net>
7965bd
   Andreas Hoenen <andreas dot hoenen at arcor dot de>
7965bd
7965bd
7965bd
%prep
7965bd
%setup -q
7965bd
%patch0 -p1 -b .enable-python3
7965bd
%patch1 -p1 -b .disable-debian
7965bd
%patch2 -p1 -b .use-shutil-which
7965bd
%patch3 -p1 -b .fix-shebangs
7965bd
7965bd
rm -rf lib/contrib
7965bd
7965bd
%build
7965bd
%{__python3} setup.py build
7965bd
7965bd
%install
7965bd
%{__python3} setup.py install --root $RPM_BUILD_ROOT
7965bd
# these are already in tetex-latex:
7965bd
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
7965bd
  rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
7965bd
done
7965bd
7965bd
mkdir -p $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex
7965bd
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
7965bd
  mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
7965bd
done
7965bd
7965bd
## also move .xetex files
7965bd
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
7965bd
  mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
7965bd
done
7965bd
7965bd
rmdir $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
7965bd
7965bd
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
7965bd
# shipped in %%docs
7965bd
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
7965bd
7965bd
sed -e 's/\r//' xsl/mathml2/README > README-xsltml
7965bd
touch -r xsl/mathml2/README README-xsltml
7965bd
cp -p %{SOURCE1} COPYING-docbook-xsl
7965bd
7965bd
7965bd
%files
7965bd
%{_mandir}/man1/dblatex.1*
7965bd
%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml
7965bd
%{python3_sitelib}/dbtexmf/
7965bd
%{python3_sitelib}/dblatex-*.egg-info
7965bd
%{_bindir}/dblatex
7965bd
%{_datadir}/dblatex/
7965bd
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/
7965bd
%dir %{_sysconfdir}/dblatex
7965bd
7965bd
%post -p /usr/bin/texhash
7965bd
7965bd
%postun -p /usr/bin/texhash
7965bd
7965bd
%changelog
7965bd
* Wed Jun 13 2018 Nikola ForrĆ³ <nforro@redhat.com> - 0.3.10-8
7965bd
- switch to Python 3 (#1590857)
7965bd
7965bd
* Wed May 16 2018 Than Ngo <than@redhat.com> - 0.3.10-7
7965bd
- fixed bz#1545772 - FTBFS
7965bd
7965bd
* Wed Apr 18 2018 Nikola ForrĆ³ <nforro@redhat.com> - 0.3.10-6
7965bd
- remove ImageMagick dependency (#1564991)
7965bd
7965bd
* Wed Apr 11 2018 Nikola ForrĆ³ <nforro@redhat.com> - 0.3.10-5
7965bd
- make non-critical graphic tools weak dependencies
7965bd
- recommend inkscape, which can be used to convert SVG images
7965bd
7965bd
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.10-4
7965bd
- Update Python 2 dependency declarations to new packaging standards
7965bd
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
7965bd
7965bd
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-3
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7965bd
7965bd
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-2
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7965bd
7965bd
* Wed Apr 05 2017 Michael J Gruber <mjg@fedoraproject.org> - 0.3.10-1
7965bd
- rebase with upstream
7965bd
7965bd
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-2
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7965bd
7965bd
* Mon Oct 17 2016 Michael J Gruber <mjg@fedoraproject.org> - 0.3.9-1
7965bd
- bugfix and feature release
7965bd
7965bd
* Mon Aug 01 2016 Michael J Gruber <mjg@fedoraproject.org> - 0.3.8-1
7965bd
- bugfix and feature release
7965bd
7965bd
* Mon Aug 01 2016 Michael J Gruber <mjg@fedoraproject.org> - 0.3.7-1
7965bd
- bugfix release
7965bd
7965bd
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-4
7965bd
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7965bd
7965bd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-3
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7965bd
7965bd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7965bd
7965bd
* Mon May 18 2015 jchaloup <jchaloup@redhat.com> - 0.3.6-1
7965bd
- Update to 0.3.6
7965bd
  resolves: #1222169
7965bd
7965bd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7965bd
7965bd
* Mon May 26 2014 jchaloup <jchaloup@redhat.com> - 0.3.5-1
7965bd
- Update to 0.3.5.
7965bd
7965bd
* Thu Aug 08 2013 Michael J Gruber <mjg@fedoraproject.org> - 0.3.4-8
7965bd
- Merge in licensing changes from  Stanislav Ochotnicky <sochotnicky@redhat.com>:
7965bd
-* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-8
7965bd
-- Add Public Domain license and licensing comment
7965bd
-* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-7
7965bd
-- Add DMIT, GPLv2 and LPPL licenses
7965bd
-- Fix space and tab mixing
7965bd
-- Cleanup old spec file parts
7965bd
7965bd
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-7
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7965bd
7965bd
* Wed May 29 2013 Michael J Gruber <mjg@fedoraproject.org> - 0.3.4-6
7965bd
- Add mising R texlive-multirow.
7965bd
7965bd
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-5
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7965bd
7965bd
* Wed Jan 02 2013 Benjamin De Kosnik  <bkoz@redhat.com> - 0.3.4-1
7965bd
- Update to 0.3.4.
7965bd
- Adjust for texlive rebase.
7965bd
7965bd
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-5
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7965bd
7965bd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7965bd
7965bd
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7965bd
7965bd
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-2
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
7965bd
7965bd
* Mon Apr 12 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.3-1
7965bd
- Update to 0.3
7965bd
- Cleanup spec: drop some unnecessary conditionals for old releases (< F-11)
7965bd
7965bd
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-3
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7965bd
7965bd
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-2
7965bd
- remove dblatex-0.2.9-xetex.patch
7965bd
7965bd
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-1
7965bd
- Update to 0.2.10
7965bd
7965bd
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
7965bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7965bd
7965bd
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.9-3
7965bd
- Rebuild for Python 2.6
7965bd
7965bd
* Fri Jul  4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-2
7965bd
- BR: texlive-xetex -> tex(xetex) for F-10 and later
7965bd
7965bd
* Thu Jun 12 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-1
7965bd
- Update to latest upstream (0.2.9) (#448953)
7965bd
- Remove some redundant Requires and BuildRequires (passivetex pulls
7965bd
  in the tetex/tex requires, python dep added automatically)
7965bd
- For F-9+ BR on tex(latex) and texlive-xetex, fix the installation
7965bd
  scripts to install extra new files.
7965bd
- Add patch from dblatex mailing list for better handling of a missing
7965bd
  xetex.
7965bd
- Conditionally add .egg-info file only if F9+ to allow for unified
7965bd
  spec file
7965bd
7965bd
* Sun Dec 16 2007 Patrice Dumas <pertusus@free.fr> - 0.2.8-2.1
7965bd
- don't install in docbook directory, it is a link to a versioned
7965bd
  directory and may break upon docbook update (#425251,#389231)
7965bd
7965bd
* Sun Nov 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.8-1
7965bd
- Update to 0.2.8
7965bd
7965bd
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-16
7965bd
- convert spec to utf8
7965bd
- change to gplv2+
7965bd
7965bd
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-15
7965bd
- Add copyright info
7965bd
7965bd
* Mon Nov  5 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-14
7965bd
- Req tetex-fonts for texhash
7965bd
- Fix post, postun
7965bd
7965bd
* Sun Nov  4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-13
7965bd
- Add texhash
7965bd
7965bd
* Sun Nov  4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
7965bd
- Fix xsl link
7965bd
7965bd
* Sat Nov  3 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
7965bd
- Various fixes from pertusus@free.fr:
7965bd
- rm iconv stuff
7965bd
- simplify docs installation
7965bd
7965bd
* Fri Nov  2 2007  <ndbecker2@gmail.com> - 0.2.7-11
7965bd
- Various minor fixes
7965bd
7965bd
* Thu Nov  1 2007  <ndbecker2@gmail.com> - 0.2.7-10
7965bd
- Add some reqs and brs
7965bd
- rmdir /usr/share/dblatex/latex/{misc,contrib/example,style}
7965bd
7965bd
* Sat Oct 27 2007  <ndbecker2@gmail.com> - 0.2.7-9
7965bd
- link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex
7965bd
- rmdir /usr/share/dblatex/latex/{misc,specs,style}
7965bd
- own /etc/dblatex
7965bd
- change $(...) -> `...`
7965bd
- Preserve timestamps on iconv
7965bd
7965bd
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-9
7965bd
- mv all .sty files to datadir/texmf/tex/latex/dblatex
7965bd
- Add Conflicts tetex-tex4ht
7965bd
- mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/
7965bd
7965bd
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
7965bd
- rm redundant latex files
7965bd
7965bd
* Tue Sep 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
7965bd
- Fixed encodings in docs directory
7965bd
- Install docs at correct location
7965bd
7965bd
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-7
7965bd
- Revert back to GPLv2
7965bd
- untabify
7965bd
7965bd
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-6
7965bd
- Fix source URL
7965bd
- Install all docs
7965bd
- Tabify
7965bd
7965bd
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-5
7965bd
- Add BR tetex-latex
7965bd
7965bd
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-4
7965bd
- Add  BR tetex, ImageMagick
7965bd
7965bd
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-3
7965bd
- Add BR libxslt
7965bd
7965bd
* Wed Sep 19 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-2
7965bd
- Add BR python-devel
7965bd
7965bd
* Fri Sep  7 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-1
7965bd
- Initial