package init
This commit is contained in:
commit
bb84ae3d49
47
COPYING-docbook-xsl
Normal file
47
COPYING-docbook-xsl
Normal file
@ -0,0 +1,47 @@
|
||||
Copyright
|
||||
---------
|
||||
Copyright (C) 1999-2007 Norman Walsh
|
||||
Copyright (C) 2003 Jiří Kosek
|
||||
Copyright (C) 2004-2007 Steve Ball
|
||||
Copyright (C) 2005-2007 The DocBook Project
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the ``Software''), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
Except as contained in this notice, the names of individuals
|
||||
credited with contribution to this software shall not be used in
|
||||
advertising or otherwise to promote the sale, use or other
|
||||
dealings in this Software without prior written authorization
|
||||
from the individuals in question.
|
||||
|
||||
Any stylesheet derived from this Software that is publically
|
||||
distributed will be identified with a different name and the
|
||||
version strings in any derived Software will be changed so that
|
||||
no possibility of confusion between the derived package and this
|
||||
Software will exist.
|
||||
|
||||
Warranty
|
||||
--------
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER
|
||||
CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Contacting the Author
|
||||
---------------------
|
||||
The DocBook XSL stylesheets are maintained by Norman Walsh,
|
||||
<ndw@nwalsh.com>, and members of the DocBook Project,
|
||||
<docbook-developers@sf.net>
|
||||
12
dblatex-0.2.7-external-which.patch
Normal file
12
dblatex-0.2.7-external-which.patch
Normal file
@ -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:
|
||||
BIN
dblatex-0.3.10.tar.bz2
Normal file
BIN
dblatex-0.3.10.tar.bz2
Normal file
Binary file not shown.
26
dblatex-disable-debian.patch
Normal file
26
dblatex-disable-debian.patch
Normal file
@ -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:
|
||||
89
dblatex.spec
Normal file
89
dblatex.spec
Normal file
@ -0,0 +1,89 @@
|
||||
Name: dblatex
|
||||
Version: 0.3.10
|
||||
Release: 8
|
||||
Summary: DocBook to LaTeX/ConTeXt Publishing
|
||||
BuildArch: noarch
|
||||
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
|
||||
Source1: COPYING-docbook-xsl
|
||||
Patch0000: dblatex-0.2.7-external-which.patch
|
||||
Patch0001: dblatex-disable-debian.patch
|
||||
|
||||
BuildRequires: python2-devel python2-which libxslt texlive-base texlive-collection-latex texlive-collection-xetex
|
||||
BuildRequires: texlive-collection-htmlxml texlive-xmltex-bin texlive-anysize texlive-appendix texlive-changebar
|
||||
BuildRequires: texlive-fancybox texlive-jknapltx texlive-multirow texlive-overpic texlive-pdfpages texlive-subfigure
|
||||
BuildRequires: texlive-stmaryrd texlive-wasysym
|
||||
|
||||
Requires: texlive-base texlive-collection-latex texlive-collection-xetex texlive-collection-htmlxml
|
||||
Requires: texlive-passivetex texlive-xmltex texlive-xmltex-bin texlive-anysize texlive-appendix texlive-bibtopic
|
||||
Requires: texlive-changebar texlive-ec texlive-fancybox texlive-jknapltx texlive-multirow texlive-overpic
|
||||
Requires: texlive-pdfpages texlive-subfigure texlive-stmaryrd texlive-wasysym texlive-xmltex-bin libxslt
|
||||
Requires: texlive-collection-fontsrecommended docbook-dtds
|
||||
|
||||
Recommends: ImageMagick texlive-epstopdf-bin transfig inkscape
|
||||
|
||||
%description
|
||||
dblatex can 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.
|
||||
|
||||
%package help
|
||||
Summary: Introduce how to use dblatex
|
||||
|
||||
%description help
|
||||
Introduce how to use dblatex
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
rm -rf lib/contrib
|
||||
|
||||
%build
|
||||
%{__python2} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --root $RPM_BUILD_ROOT
|
||||
|
||||
install -d $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
|
||||
|
||||
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
|
||||
|
||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
|
||||
|
||||
awk '{sub("\r$","",$0);print $0}' xsl/mathml2/README > README-xsltml
|
||||
touch -r xsl/mathml2/README README-xsltml
|
||||
cp -p %{SOURCE1} COPYING-docbook-xsl
|
||||
|
||||
%post -p /usr/bin/texhash
|
||||
|
||||
%postun -p /usr/bin/texhash
|
||||
|
||||
%files
|
||||
%doc COPYRIGHT COPYING-docbook-xsl
|
||||
%{python2_sitelib}/dbtexmf/
|
||||
%{python2_sitelib}/dblatex-*.egg-info
|
||||
%{_bindir}/dblatex
|
||||
%{_datadir}/dblatex/
|
||||
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/
|
||||
%dir %{_sysconfdir}/dblatex
|
||||
%exclude %{_datadir}/doc/
|
||||
%exclude %{_datadir}/dblatex/latex/{misc,contrib/example,style}
|
||||
%exclude %{_datadir}/dblatex/latex/misc/bibtopic.sty
|
||||
%exclude %{_datadir}/dblatex/latex/misc/enumitem.sty
|
||||
%exclude %{_datadir}/dblatex/latex/misc/ragged2e.sty
|
||||
%exclude %{_datadir}/dblatex/latex/misc/passivetex/
|
||||
%exclude %{_datadir}/dblatex/latex/misc/xelatex/
|
||||
|
||||
%files help
|
||||
%doc docs/manual.pdf README-xsltml
|
||||
%{_mandir}/man1/dblatex.1*
|
||||
|
||||
%changelog
|
||||
* Fri Nov 22 2019 yangjian<yangjian79@huawei.com> - 0.3.10-8
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user