- Update to 0.3

- Cleanup spec: drop some unnecessary conditionals for old releases (<
    F-11)
This commit is contained in:
alexlan 2010-04-13 00:25:31 +00:00
parent cf83032be6
commit d49b5cba27
4 changed files with 8 additions and 120 deletions

View File

@ -1 +1 @@
dblatex-0.2.10.tar.bz2
dblatex-0.3.tar.bz2

View File

@ -1,100 +0,0 @@
Index: setup.py
===================================================================
RCS file: /usr/local/cvsroot/docbook/db2tex/dblatex/setup.py,v
retrieving revision 1.13
diff -u -r1.13 setup.py
--- setup.py 6 Nov 2007 22:28:57 -0000 1.13
+++ setup.py 4 Jun 2008 22:35:50 -0000
@@ -259,7 +259,7 @@
used_stys.sort()
# Dirty...
- for f in ("truncate", "elfonts", "CJKutf8", "pinyin"):
+ for f in ("truncate", "elfonts", "CJKutf8", "pinyin", "ifxetex"):
try:
used_stys.remove(f)
except:
Index: latex/style/dbk_fonts.sty
===================================================================
RCS file: /usr/local/cvsroot/docbook/db2tex/dblatex/latex/style/dbk_fonts.sty,v
retrieving revision 1.3
diff -u -r1.3 dbk_fonts.sty
--- latex/style/dbk_fonts.sty 18 Apr 2008 23:11:22 -0000 1.3
+++ latex/style/dbk_fonts.sty 4 Jun 2008 22:50:36 -0000
@@ -1,4 +1,4 @@
-\usepackage{ifxetex}
+
\ifxetex
% to have the \text macro
\usepackage{amstext}
Index: latex/style/docbook.sty
===================================================================
RCS file: /usr/local/cvsroot/docbook/db2tex/dblatex/latex/style/docbook.sty,v
retrieving revision 1.23
diff -u -r1.23 docbook.sty
--- latex/style/docbook.sty 3 Sep 2007 18:47:53 -0000 1.23
+++ latex/style/docbook.sty 31 May 2008 12:16:35 -0000
@@ -8,12 +8,6 @@
\DeclareOption{hyperlink}{ \def\DBKhyperlink{yes} }
\DeclareOption{nohyperlink}{ \def\DBKhyperlink{no} }
-\ifx\undefined\chapter
- \def\DBKisarticle{1}
-\else
- \def\DBKisarticle{0}
-\fi
-
% Default values
\ExecuteOptions{nohyperlink}
@@ -140,7 +134,7 @@
%% Inclusion of float package after hyperref to have its definitions!
\usepackage{float}
-\if1\DBKisarticle
+\@ifundefined{chapter}{
\floatstyle{ruled}
\newfloat{example}{htb}{loe}[section]
@@ -153,8 +147,7 @@
% Redefinition of tableofcontent, to have it in separate pages
\let\stdtoc=\tableofcontents
\def\tableofcontents{ \newpage \stdtoc{} \newpage}
-
-\else
+}{
\floatstyle{ruled}
\newfloat{example}{htb}{loe}[chapter]
@@ -163,8 +156,8 @@
\floatstyle{plain}
\newfloat{dbequation}{htb}{loe}[chapter]
\floatname{dbequation}{{\scshape Equation }}
+}
-\fi
% Sidebar is a boxed minipage that can contain verbatim
\newenvironment{sidebar}[1][0.95\textwidth]{
\hspace{0mm}\newline%
Index: xsl/lang.xsl
===================================================================
RCS file: /usr/local/cvsroot/docbook/db2tex/dblatex/xsl/lang.xsl,v
retrieving revision 1.6
diff -u -r1.6 lang.xsl
--- xsl/lang.xsl 18 Apr 2008 23:11:31 -0000 1.6
+++ xsl/lang.xsl 4 Jun 2008 22:55:24 -0000
@@ -192,7 +192,13 @@
</xsl:variable>
<!-- XeTeX preamble to handle fonts -->
- <xsl:text>\usepackage{ifxetex}&#10;</xsl:text>
+ <xsl:text>\IfFileExists{ifxetex.sty}{%
+ \usepackage{ifxetex}%
+ }{%
+ \newif\ifxetex
+ \xetexfalse
+ }
+ </xsl:text>
<xsl:text>\ifxetex&#10;</xsl:text>
<xsl:text>\usepackage{fontspec}&#10;</xsl:text>
<xsl:text>\usepackage{xltxtra}&#10;</xsl:text>

View File

@ -1,8 +1,8 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: dblatex
Version: 0.2.10
Release: 3%{?dist}
Version: 0.3
Release: 1%{?dist}
Summary: DocBook to LaTeX/ConTeXt Publishing
BuildArch: noarch
Group: Applications/Publishing
@ -18,25 +18,11 @@ BuildRequires: python-devel
BuildRequires: python-which
BuildRequires: libxslt
BuildRequires: ImageMagick
%if 0%{?fedora} < 9
BuildRequires: tetex-latex
%else
BuildRequires: tex(latex)
%endif
%if 0%{?fedora} < 10
BuildRequires: texlive-xetex
Requires: texlive-xetex
%else
BuildRequires: tex(xetex)
Requires: tex(xetex)
%endif
Requires: libxslt docbook-dtds passivetex ImageMagick transfig
%if 0%{?fedora} < 8
Conflicts: tetex-tex4ht
%endif
%description
dblatex is a program that transforms your SGML/XMLDocBook
documents to DVI, PostScript or PDF by translating them
@ -97,9 +83,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/dblatex.1*
%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml
%{python_sitelib}/dbtexmf/
%if 0%{?fedora} >= 9
%{python_sitelib}/dblatex-*.egg-info
%endif
%{_bindir}/dblatex
%{_datadir}/dblatex/
%{_datadir}/texmf/tex/latex/dblatex/
@ -110,6 +94,10 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /usr/bin/texhash
%changelog
* 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

View File

@ -1 +1 @@
a8603517b93fe172aca3742d1d26a350 dblatex-0.2.10.tar.bz2
7de6bf72b8b2934169ce0ec911e966ed dblatex-0.3.tar.bz2