Blame SPECS/dblatex.spec

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