basebuilder_pel7ppc64bebuilder0
7 years ago
4 changed files with 396 additions and 0 deletions
@ -0,0 +1,71 @@
@@ -0,0 +1,71 @@
|
||||
From 42fc41280f42674cefba1b272e2714210ad56478 Mon Sep 17 00:00:00 2001 |
||||
From: Stanislav Ochotnicky <sochotnicky@redhat.com> |
||||
Date: Mon, 29 Jul 2013 15:22:37 +0200 |
||||
Subject: [PATCH] Make pdf generation work in FIPS mode |
||||
|
||||
--- |
||||
lib/dbtexmf/dblatex/grubber/index.py | 4 ++-- |
||||
lib/dbtexmf/dblatex/grubber/util.py | 8 ++++---- |
||||
2 files changed, 6 insertions(+), 6 deletions(-) |
||||
|
||||
diff --git a/lib/dbtexmf/dblatex/grubber/index.py b/lib/dbtexmf/dblatex/grubber/index.py |
||||
index 6ee7c68..36becd5 100644 |
||||
--- a/lib/dbtexmf/dblatex/grubber/index.py |
||||
+++ b/lib/dbtexmf/dblatex/grubber/index.py |
||||
@@ -70,7 +70,7 @@ class Index(TexModule): |
||||
self.transcript = os.path.basename(self.transcript) |
||||
|
||||
if os.path.exists(self.source): |
||||
- self.md5 = md5_file(self.source) |
||||
+ self.md5 = md5_file(self.source, False) |
||||
else: |
||||
self.md5 = None |
||||
|
||||
@@ -193,7 +193,7 @@ class Index(TexModule): |
||||
if os.path.getsize(self.source) == 0: |
||||
msg.log(_("the index file %s is empty") % self.source, pkg="index") |
||||
return 0 |
||||
- new = md5_file(self.source) |
||||
+ new = md5_file(self.source, False) |
||||
if not os.path.exists(self.target): |
||||
self.md5 = new |
||||
return 1 |
||||
diff --git a/lib/dbtexmf/dblatex/grubber/util.py b/lib/dbtexmf/dblatex/grubber/util.py |
||||
index fa3bda6..d664caa 100644 |
||||
--- a/lib/dbtexmf/dblatex/grubber/util.py |
||||
+++ b/lib/dbtexmf/dblatex/grubber/util.py |
||||
@@ -14,11 +14,11 @@ import os |
||||
from msg import _, msg |
||||
|
||||
|
||||
-def md5_file(fname): |
||||
+def md5_file(fname, usedforsecurity=True): |
||||
""" |
||||
Compute the MD5 sum of a given file. |
||||
""" |
||||
- m = hashlib.md5() |
||||
+ m = hashlib.md5(usedforsecurity=usedforsecurity) |
||||
file = open(fname) |
||||
for line in file.readlines(): |
||||
m.update(line) |
||||
@@ -35,7 +35,7 @@ class Watcher: |
||||
|
||||
def watch(self, file): |
||||
if os.path.exists(file): |
||||
- self.files[file] = md5_file(file) |
||||
+ self.files[file] = md5_file(file, False) |
||||
else: |
||||
self.files[file] = None |
||||
|
||||
@@ -47,7 +47,7 @@ class Watcher: |
||||
changed = [] |
||||
for file in self.files.keys(): |
||||
if os.path.exists(file): |
||||
- new = md5_file(file) |
||||
+ new = md5_file(file, False) |
||||
if self.files[file] != new: |
||||
msg.debug(_("%s MD5 checksum changed") % \ |
||||
os.path.basename(file)) |
||||
-- |
||||
1.8.1.4 |
||||
|
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
diff -up dblatex-0.2.7/setup.py.external_which dblatex-0.2.7/setup.py |
||||
--- dblatex-0.2.7/setup.py.external_which 2007-04-26 21:08:56.000000000 +0200 |
||||
+++ dblatex-0.2.7/setup.py 2007-07-22 19:35:05.000000000 +0200 |
||||
@@ -147,7 +147,7 @@ os.environ["SGML_CATALOG_FILES"] = cat |
||||
|
||||
def find_programs(utils): |
||||
sys.path.append("lib") |
||||
- from contrib.which import which |
||||
+ import which |
||||
util_paths = {} |
||||
missed = [] |
||||
for util in utils: |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
--- dblatex-0.3.4/setup.py 2012-06-02 16:43:42.000000000 -0700 |
||||
+++ dblatex-0.3.4/setup.py_disable_debian 2012-12-03 21:30:30.843851029 -0800 |
||||
@@ -23,7 +23,7 @@ from distutils.command.sdist import sdis |
||||
from distutils import log |
||||
from subprocess import Popen, PIPE |
||||
sys.path.append("lib") |
||||
-from contrib.debian.installer import DebianInstaller |
||||
+#from contrib.debian.installer import DebianInstaller |
||||
|
||||
# |
||||
# Build the command line script |
||||
@@ -365,10 +365,10 @@ class Install(install): |
||||
raise OSError("not found: %s" % ", ".join(mis_stys)) |
||||
|
||||
def run(self): |
||||
- if self.install_layout == "deb": |
||||
- db = DebianInstaller(self) |
||||
- else: |
||||
- db = None |
||||
+# if self.install_layout == "deb": |
||||
+# db = DebianInstaller(self) |
||||
+# else: |
||||
+ db = None |
||||
|
||||
if not(db) and not(self.nodeps): |
||||
try: |
@ -0,0 +1,287 @@
@@ -0,0 +1,287 @@
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
||||
|
||||
Name: dblatex |
||||
Version: 0.3.4 |
||||
Release: 11%{?dist} |
||||
Summary: DocBook to LaTeX/ConTeXt Publishing |
||||
BuildArch: noarch |
||||
# Most of package is GPLv2+, except: |
||||
# xsl/ directory is DMIT |
||||
# lib/dbtexmf/core/sgmlent.txt is Public Domain |
||||
# latex/misc/enumitem.sty, multirow2.sry and ragged2e.sty are LPPL |
||||
# latex/misc/lastpage.sty is GPLv2 (no +) |
||||
# latex/misc/passivetex is MIT (not included in binary RPM so not listed) |
||||
License: GPLv2+ and GPLv2 and LPPL and DMIT and Public Domain |
||||
URL: http://dblatex.sourceforge.net/ |
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 |
||||
Patch0: dblatex-0.2.7-external-which.patch |
||||
Patch1: dblatex-disable-debian.patch |
||||
Patch2: 0001-Make-pdf-generation-work-in-FIPS-mode.patch |
||||
|
||||
BuildRequires: python-devel |
||||
BuildRequires: python-which |
||||
BuildRequires: libxslt |
||||
BuildRequires: ImageMagick |
||||
BuildRequires: texlive-base |
||||
BuildRequires: texlive-collection-latex |
||||
BuildRequires: texlive-collection-xetex |
||||
BuildRequires: texlive-collection-htmlxml |
||||
BuildRequires: transfig |
||||
BuildRequires: texlive-epstopdf-bin |
||||
BuildRequires: texlive-xmltex-bin |
||||
BuildRequires: texlive-anysize |
||||
BuildRequires: texlive-appendix |
||||
BuildRequires: texlive-changebar |
||||
BuildRequires: texlive-jknapltx |
||||
BuildRequires: texlive-multirow |
||||
BuildRequires: texlive-overpic |
||||
BuildRequires: texlive-pdfpages |
||||
BuildRequires: texlive-subfigure |
||||
BuildRequires: texlive-stmaryrd |
||||
Requires: texlive-base |
||||
Requires: texlive-collection-latex |
||||
Requires: texlive-collection-xetex |
||||
Requires: texlive-collection-htmlxml |
||||
Requires: texlive-collection-fontsrecommended |
||||
Requires: texlive-epstopdf-bin |
||||
Requires: texlive-passivetex |
||||
Requires: texlive-xmltex texlive-xmltex-bin |
||||
Requires: texlive-anysize |
||||
Requires: texlive-appendix |
||||
Requires: texlive-bibtopic |
||||
Requires: texlive-changebar |
||||
Requires: texlive-ec |
||||
Requires: texlive-jknapltx |
||||
Requires: texlive-multirow |
||||
Requires: texlive-overpic |
||||
Requires: texlive-passivetex |
||||
Requires: texlive-pdfpages |
||||
Requires: texlive-subfigure |
||||
Requires: texlive-stmaryrd |
||||
Requires: texlive-xmltex-bin |
||||
Requires: libxslt docbook-dtds |
||||
Requires: transfig |
||||
Requires: ImageMagick |
||||
|
||||
%description |
||||
dblatex is a program that transforms your SGML/XMLDocBook |
||||
documents to DVI, PostScript or PDF by translating them |
||||
into pure LaTeX as a first process. MathML 2.0 markups |
||||
are supported, too. It started as a clone of DB2LaTeX. |
||||
|
||||
Authors: |
||||
-------- |
||||
Benoît Guillon <marsgui at users dot sourceforge dot net> |
||||
Andreas Hoenen <andreas dot hoenen at arcor dot de> |
||||
|
||||
|
||||
%prep |
||||
%setup -q |
||||
%patch0 -p1 -b .external-which |
||||
%patch1 -p1 -b .disable-debian |
||||
%patch2 -p1 -b .fips-mode |
||||
rm -rf lib/contrib |
||||
|
||||
# make sure we use correct python version |
||||
sed -i '1s: /usr/bin/env python:/usr/bin/python:' scripts/dblatex |
||||
|
||||
%build |
||||
%{__python} setup.py build |
||||
|
||||
|
||||
%install |
||||
#%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT |
||||
%{__python} setup.py install --root $RPM_BUILD_ROOT |
||||
# these are already in tetex-latex: |
||||
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do |
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file |
||||
done |
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex |
||||
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do |
||||
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`; |
||||
done |
||||
|
||||
## also move .xetex files |
||||
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do |
||||
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`; |
||||
done |
||||
|
||||
rmdir $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style} |
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex |
||||
# shipped in %%docs |
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/ |
||||
|
||||
sed -e 's/\r//' xsl/mathml2/README > README-xsltml |
||||
touch -r xsl/mathml2/README README-xsltml |
||||
|
||||
|
||||
%files |
||||
%{_mandir}/man1/dblatex.1* |
||||
%doc COPYRIGHT docs/manual.pdf README-xsltml |
||||
%{python_sitelib}/dbtexmf/ |
||||
%{python_sitelib}/dblatex-*.egg-info |
||||
%{_bindir}/dblatex |
||||
%{_datadir}/dblatex/ |
||||
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/ |
||||
%dir %{_sysconfdir}/dblatex |
||||
|
||||
%post -p /usr/bin/texhash |
||||
|
||||
%postun -p /usr/bin/texhash |
||||
|
||||
%changelog |
||||
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.4-11 |
||||
- Mass rebuild 2013-12-27 |
||||
|
||||
* Tue Sep 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-10 |
||||
- Replace /usr/bin/env usage in dblatex script |
||||
- Remove separate docbook license file |
||||
- Resolves: rhbz#987014 |
||||
- Resolves: rhbz#878039 |
||||
|
||||
* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-9 |
||||
- Add FIPS mode patch |
||||
|
||||
* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-8 |
||||
- Add Public Domain license and licensing comment |
||||
|
||||
* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-7 |
||||
- Add DMIT, GPLv2 and LPPL licenses |
||||
- Fix space and tab mixing |
||||
- Cleanup old spec file parts |
||||
|
||||
* Wed May 29 2013 Michael J Gruber <mjg@fedoraproject.org> - 0.3.4-6 |
||||
- Add mising R texlive-multirow. |
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-5 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
||||
|
||||
* Wed Jan 02 2013 Benjamin De Kosnik <bkoz@redhat.com> - 0.3.4-1 |
||||
- Update to 0.3.4. |
||||
- Adjust for texlive rebase. |
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-5 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-2 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
||||
|
||||
* Mon Apr 12 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.3-1 |
||||
- Update to 0.3 |
||||
- Cleanup spec: drop some unnecessary conditionals for old releases (< F-11) |
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
||||
|
||||
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-2 |
||||
- remove dblatex-0.2.9-xetex.patch |
||||
|
||||
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-1 |
||||
- Update to 0.2.10 |
||||
|
||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
||||
|
||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.9-3 |
||||
- Rebuild for Python 2.6 |
||||
|
||||
* Fri Jul 4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-2 |
||||
- BR: texlive-xetex -> tex(xetex) for F-10 and later |
||||
|
||||
* Thu Jun 12 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-1 |
||||
- Update to latest upstream (0.2.9) (#448953) |
||||
- Remove some redundant Requires and BuildRequires (passivetex pulls |
||||
in the tetex/tex requires, python dep added automatically) |
||||
- For F-9+ BR on tex(latex) and texlive-xetex, fix the installation |
||||
scripts to install extra new files. |
||||
- Add patch from dblatex mailing list for better handling of a missing |
||||
xetex. |
||||
- Conditionally add .egg-info file only if F9+ to allow for unified |
||||
spec file |
||||
|
||||
* Sun Dec 16 2007 Patrice Dumas <pertusus@free.fr> - 0.2.8-2.1 |
||||
- don't install in docbook directory, it is a link to a versioned |
||||
directory and may break upon docbook update (#425251,#389231) |
||||
|
||||
* Sun Nov 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.8-1 |
||||
- Update to 0.2.8 |
||||
|
||||
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-16 |
||||
- convert spec to utf8 |
||||
- change to gplv2+ |
||||
|
||||
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-15 |
||||
- Add copyright info |
||||
|
||||
* Mon Nov 5 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-14 |
||||
- Req tetex-fonts for texhash |
||||
- Fix post, postun |
||||
|
||||
* Sun Nov 4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-13 |
||||
- Add texhash |
||||
|
||||
* Sun Nov 4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12 |
||||
- Fix xsl link |
||||
|
||||
* Sat Nov 3 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12 |
||||
- Various fixes from pertusus@free.fr: |
||||
- rm iconv stuff |
||||
- simplify docs installation |
||||
|
||||
* Fri Nov 2 2007 <ndbecker2@gmail.com> - 0.2.7-11 |
||||
- Various minor fixes |
||||
|
||||
* Thu Nov 1 2007 <ndbecker2@gmail.com> - 0.2.7-10 |
||||
- Add some reqs and brs |
||||
- rmdir /usr/share/dblatex/latex/{misc,contrib/example,style} |
||||
|
||||
* Sat Oct 27 2007 <ndbecker2@gmail.com> - 0.2.7-9 |
||||
- link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex |
||||
- rmdir /usr/share/dblatex/latex/{misc,specs,style} |
||||
- own /etc/dblatex |
||||
- change $(...) -> `...` |
||||
- Preserve timestamps on iconv |
||||
|
||||
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-9 |
||||
- mv all .sty files to datadir/texmf/tex/latex/dblatex |
||||
- Add Conflicts tetex-tex4ht |
||||
- mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/ |
||||
|
||||
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8 |
||||
- rm redundant latex files |
||||
|
||||
* Tue Sep 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8 |
||||
- Fixed encodings in docs directory |
||||
- Install docs at correct location |
||||
|
||||
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-7 |
||||
- Revert back to GPLv2 |
||||
- untabify |
||||
|
||||
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-6 |
||||
- Fix source URL |
||||
- Install all docs |
||||
- Tabify |
||||
|
||||
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-5 |
||||
- Add BR tetex-latex |
||||
|
||||
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-4 |
||||
- Add BR tetex, ImageMagick |
||||
|
||||
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-3 |
||||
- Add BR libxslt |
||||
|
||||
* Wed Sep 19 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-2 |
||||
- Add BR python-devel |
||||
|
||||
* Fri Sep 7 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-1 |
||||
- Initial |
Loading…
Reference in new issue