[packages/dblatex] - updated to 0.3.4 - added nodebian patch to allow build on non-Debian system - pl

qboosh qboosh at pld-linux.org
Thu Sep 27 18:37:06 CEST 2012


commit c0021429b7dc6d1311816cc3036c2b59fb3b9184
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 27 18:38:16 2012 +0200

    - updated to 0.3.4
    - added nodebian patch to allow build on non-Debian system
    - pl

 dblatex-nodebian.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 dblatex.spec           | 27 ++++++++++++++++++---------
 2 files changed, 58 insertions(+), 9 deletions(-)
---
diff --git a/dblatex.spec b/dblatex.spec
index 19616ad..67237d7 100644
--- a/dblatex.spec
+++ b/dblatex.spec
@@ -1,11 +1,13 @@
 Summary:	Convert DocBook to LaTeX, DVI, PostScript, and PDF
+Summary(pl.UTF-8):	Przekształcanie DocBooka do LaTeXa, DVI, PostScriptu i PDF
 Name:		dblatex
-Version:	0.3
-Release:	2
-License:	GPL
+Version:	0.3.4
+Release:	1
+License:	GPL v2+
 Group:		Applications/Publishing
-Source0:	http://dl.sourceforge.net/dblatex/%{name}-%{version}.tar.bz2
-# Source0-md5:	7de6bf72b8b2934169ce0ec911e966ed
+Source0:	http://downloads.sourceforge.net/dblatex/%{name}-%{version}.tar.bz2
+# Source0-md5:	a511a2eaa55757b341e4c46353c5c681
+Patch0:		%{name}-nodebian.patch
 URL:		http://dblatex.sourceforge.net/
 BuildRequires:	python-distribute
 BuildRequires:	rpm-pythonprov
@@ -29,10 +31,17 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 dblatex is a program that transforms your SGML/XML DocBook documents
 to DVI, PostScript or PDF by translating them into pure LaTeX
-as a first process.  MathML 2.0 markups are supported, too.
+as a first process. MathML 2.0 markups are supported, too.
+
+%description -l pl.UTF-8
+dblatex to program przekształcający dokumenty w formacie SGML/XML
+DocBook do formatów DVI, PostScript lub PDF poprzez tłumaczenie ich
+najpierw do czystego LaTeXa. Obsługiwane są także znaczniki MathML
+2.0.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # fix #!/usr/bin/env python -> #!/usr/bin/python:
 %{__sed} -i -e '1s,^#!.*python,#!%{__python},' scripts/%{name}
@@ -51,14 +60,14 @@ rm -rf $RPM_BUILD_ROOT
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_postclean
 
-rm -r $RPM_BUILD_ROOT%{_datadir}/doc
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc docs/*
+%doc COPYRIGHT docs/{manual,release-notes}.pdf
 %attr(755,root,root) %{_bindir}/dblatex
 %dir %{py_sitescriptdir}/dbtexmf
 %{py_sitescriptdir}/dbtexmf/*.py[co]
@@ -75,4 +84,4 @@ rm -rf $RPM_BUILD_ROOT
 %{py_sitescriptdir}/dbtexmf/xslt/*.py[co]
 %{py_sitescriptdir}/dblatex-*.egg-info
 %{_datadir}/%{name}
-%{_mandir}/man1/*.1*
+%{_mandir}/man1/dblatex.1*
diff --git a/dblatex-nodebian.patch b/dblatex-nodebian.patch
new file mode 100644
index 0000000..6c4580b
--- /dev/null
+++ b/dblatex-nodebian.patch
@@ -0,0 +1,40 @@
+--- dblatex-0.3.4/setup.py.orig	2012-06-03 01:43:42.000000000 +0200
++++ dblatex-0.3.4/setup.py	2012-09-27 18:26:56.603121631 +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
+@@ -365,12 +364,8 @@
+             raise OSError("not found: %s" % ", ".join(mis_stys))
+ 
+     def run(self):
+-        if self.install_layout == "deb":
+-            db = DebianInstaller(self)
+-        else:
+-            db = None
+ 
+-        if not(db) and not(self.nodeps):
++        if not(self.nodeps):
+             try:
+                 self.check_xslt_dependencies()
+                 self.check_util_dependencies()
+@@ -379,7 +374,6 @@
+                 print >>sys.stderr, "Error: %s" % e
+                 sys.exit(1)
+ 
+-        if db: db.adapt_paths()
+ 
+         # If no build is required, at least build the script
+         if self.skip_build:
+@@ -387,7 +381,6 @@
+ 
+         install.run(self)
+ 
+-        if db: db.finalize()
+ 
+ 
+ class InstallData(install_data):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dblatex.git/commitdiff/c0021429b7dc6d1311816cc3036c2b59fb3b9184



More information about the pld-cvs-commit mailing list