migrate files from %{_datadir}/texmf to %{_datadir}/texmf-dist [release 0.3.4-3mamba;Tue Aug 20 2013]
This commit is contained in:
parent
199126c87e
commit
f614bece6c
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-2008 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>
|
@ -1,2 +1,4 @@
|
||||
# dblatex
|
||||
|
||||
DocBook to LaTeX Publishing transforms your SGML/XML DocBook documents to DVI, PostScript or PDF by translating them in pure LaTeX as a first process. MathML 2.0 markups are supported too. It started as a clone of DB2LaTeX.
|
||||
|
||||
|
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:
|
11
dblatex-0.3.4-disable-DebianInstaller.patch
Normal file
11
dblatex-0.3.4-disable-DebianInstaller.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -Nru dblatex-0.3.4.orig/setup.py dblatex-0.3.4/setup.py
|
||||
--- dblatex-0.3.4.orig/setup.py 2013-05-22 10:54:55.057181137 +0200
|
||||
+++ dblatex-0.3.4/setup.py 2013-05-22 10:55:04.111112089 +0200
|
||||
@@ -23,7 +23,6 @@
|
||||
from distutils import log
|
||||
from subprocess import Popen, PIPE
|
||||
sys.path.append("lib")
|
||||
-from contrib.debian.installer import DebianInstaller
|
||||
|
||||
#
|
||||
# Build the command line script
|
15
dblatex-0.3.4-install_layout.patch
Normal file
15
dblatex-0.3.4-install_layout.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff -urN dblatex-0.3.4.orig/setup.py dblatex-0.3.4/setup.py
|
||||
--- dblatex-0.3.4.orig/setup.py 2012-06-03 02:43:42.000000000 +0300
|
||||
+++ dblatex-0.3.4/setup.py 2012-12-08 21:29:45.276764482 +0200
|
||||
@@ -365,10 +365,7 @@
|
||||
raise OSError("not found: %s" % ", ".join(mis_stys))
|
||||
|
||||
def run(self):
|
||||
- if self.install_layout == "deb":
|
||||
- db = DebianInstaller(self)
|
||||
- else:
|
||||
- db = None
|
||||
+ db = None
|
||||
|
||||
if not(db) and not(self.nodeps):
|
||||
try:
|
167
dblatex.spec
Normal file
167
dblatex.spec
Normal file
@ -0,0 +1,167 @@
|
||||
Name: dblatex
|
||||
Version: 0.3.4
|
||||
Release: 3mamba
|
||||
Summary: DocBook to LaTeX/ConTeXt Publishing
|
||||
Group: Applications/Publishing
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://dblatex.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/project/dblatex/dblatex/dblatex-%{version}/dblatex-%{version}.tar.bz2
|
||||
Source1: COPYING-docbook-xsl
|
||||
Patch0: dblatex-0.2.7-external-which.patch
|
||||
Patch1: dblatex-0.3.4-disable-DebianInstaller.patch
|
||||
Patch2: dblatex-0.3.4-install_layout.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: docbook-dtds
|
||||
BuildRequires: python-which
|
||||
BuildRequires: libxslt
|
||||
%if "%{stage1}" != "1"
|
||||
BuildRequires: ImageMagick
|
||||
%endif
|
||||
BuildRequires: passivetex
|
||||
BuildRequires: transfig
|
||||
BuildRequires: tetex-latex
|
||||
BuildRequires: xmltex
|
||||
Requires: docbook-dtds
|
||||
Requires: libxslt
|
||||
%if "%{stage1}" != "1"
|
||||
Requires: ImageMagick
|
||||
%endif
|
||||
Requires: passivetex
|
||||
Requires: transfig
|
||||
#BibTex(TexModule)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
DocBook to LaTeX Publishing transforms your SGML/XML DocBook documents to DVI, PostScript or PDF by translating them in pure LaTeX as a first process. MathML 2.0 markups are supported too. It started as a clone of DB2LaTeX.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
rm -rf lib/contrib
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%{__python} setup.py install --root %{buildroot}
|
||||
|
||||
# these are already in tetex-latex:
|
||||
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
|
||||
rm -rf %{buildroot}%{_datadir}/dblatex/latex/misc/$file
|
||||
done
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/texmf-dist/tex/latex/dblatex
|
||||
for file in ` find %{buildroot}%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
|
||||
mv $file %{buildroot}%{_datadir}/texmf-dist/tex/latex/dblatex/`basename $file`;
|
||||
done
|
||||
|
||||
for file in ` find %{buildroot}%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
|
||||
mv $file %{buildroot}%{_datadir}/texmf-dist/tex/latex/dblatex/`basename $file`;
|
||||
done
|
||||
|
||||
rm -rf %{buildroot}%{_datadir}/dblatex/latex/{misc,contrib/example,style}
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/dblatex
|
||||
|
||||
rm -rf %{buildroot}%{_datadir}/doc/
|
||||
sed -e 's/\r//' xsl/mathml2/README > README-xsltml
|
||||
touch -r xsl/mathml2/README README-xsltml
|
||||
cp -p %{SOURCE1} COPYING-docbook-xsl
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post -p /usr/bin/texhash
|
||||
|
||||
%postun -p /usr/bin/texhash
|
||||
|
||||
%posttrans
|
||||
texhash &>/dev/null || true
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/dblatex-%{version}-py%{python_version}.egg-info
|
||||
%dir %{_sysconfdir}/dblatex
|
||||
%{_bindir}/dblatex
|
||||
%dir %{python_sitearch}/dbtexmf
|
||||
%{python_sitearch}/dbtexmf/*.py
|
||||
%{python_sitearch}/dbtexmf/*.pyc
|
||||
%dir %{python_sitearch}/dbtexmf/core
|
||||
%{python_sitearch}/dbtexmf/core/*.py
|
||||
%{python_sitearch}/dbtexmf/core/*.pyc
|
||||
%{python_sitearch}/dbtexmf/core/*.txt
|
||||
%dir %{python_sitearch}/dbtexmf/dblatex
|
||||
%{python_sitearch}/dbtexmf/dblatex/*.py
|
||||
%{python_sitearch}/dbtexmf/dblatex/*.pyc
|
||||
%dir %{python_sitearch}/dbtexmf/dblatex/grubber
|
||||
%{python_sitearch}/dbtexmf/dblatex/grubber/*.py
|
||||
%{python_sitearch}/dbtexmf/dblatex/grubber/*.pyc
|
||||
%dir %{python_sitearch}/dbtexmf/dblatex/xetex
|
||||
%{python_sitearch}/dbtexmf/dblatex/xetex/*.py
|
||||
%{python_sitearch}/dbtexmf/dblatex/xetex/*.pyc
|
||||
%dir %{python_sitearch}/dbtexmf/xslt
|
||||
%{python_sitearch}/dbtexmf/xslt/*.py
|
||||
%{python_sitearch}/dbtexmf/xslt/*.pyc
|
||||
%dir %{_datadir}/dblatex
|
||||
%dir %{_datadir}/dblatex/latex
|
||||
%dir %{_datadir}/dblatex/latex/contrib
|
||||
%dir %{_datadir}/dblatex/latex/contrib/db2latex
|
||||
%{_datadir}/dblatex/latex/contrib/db2latex/*.xsl
|
||||
%dir %{_datadir}/dblatex/latex/contrib/db2latex/graphics
|
||||
%{_datadir}/dblatex/latex/contrib/db2latex/graphics/*.eps
|
||||
%{_datadir}/dblatex/latex/contrib/db2latex/graphics/*.pdf
|
||||
%dir %{_datadir}/dblatex/latex/graphics
|
||||
%{_datadir}/dblatex/latex/graphics/*.eps
|
||||
%{_datadir}/dblatex/latex/graphics/*.png
|
||||
%{_datadir}/dblatex/latex/graphics/*.fig
|
||||
%{_datadir}/dblatex/latex/graphics/*.pdf
|
||||
%dir %{_datadir}/dblatex/latex/scripts
|
||||
%{_datadir}/dblatex/latex/scripts/*.ist
|
||||
%dir %{_datadir}/dblatex/latex/specs
|
||||
%{_datadir}/dblatex/latex/specs/*.specs
|
||||
%dir %{_datadir}/dblatex/xsl
|
||||
%{_datadir}/dblatex/xsl/*.xsl
|
||||
%{_datadir}/dblatex/xsl/*.xml
|
||||
%{_datadir}/dblatex/xsl/*.dtd
|
||||
%dir %{_datadir}/dblatex/xsl/common
|
||||
%{_datadir}/dblatex/xsl/common/*.xml
|
||||
%{_datadir}/dblatex/xsl/common/*.xsl
|
||||
%{_datadir}/dblatex/xsl/common/*.dtd
|
||||
%dir %{_datadir}/dblatex/xsl/mathml2
|
||||
%{_datadir}/dblatex/xsl/mathml2/README
|
||||
%{_datadir}/dblatex/xsl/mathml2/*.xsl
|
||||
%{_datadir}/dblatex/xsl/mathml2/*.xml
|
||||
%dir %{_datadir}/texmf-dist/tex/latex/dblatex
|
||||
%{_datadir}/texmf-dist/tex/latex/dblatex/*.sty
|
||||
%{_mandir}/man1/dblatex.1.gz
|
||||
%doc COPYRIGHT
|
||||
#docs/manual.pdf COPYING-docbook-xsl README-xsltml
|
||||
|
||||
%changelog
|
||||
* Tue Aug 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.4-3mamba
|
||||
- migrate files from %{_datadir}/texmf to %{_datadir}/texmf-dist
|
||||
|
||||
* Wed Jun 05 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.4-2mamba
|
||||
- run texhash in posttrans script
|
||||
|
||||
* Thu May 23 2013 Automatic Build System <autodist@mambasoft.it> 0.3.4-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Fri Aug 20 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-1mamba
|
||||
- update to 0.3
|
||||
|
||||
* Sat Jan 02 2010 gil <puntogil@libero.it> 0.2.12-1mamba
|
||||
- update to 0.2.12
|
||||
|
||||
* Sat Jan 02 2010 gil <puntogil@libero.it> 0.2.10-1mamba
|
||||
- package created by autospec
|
Loading…
Reference in New Issue
Block a user