--- python-uniconvertor-1.1.4.orig/debian/control +++ python-uniconvertor-1.1.4/debian/control @@ -0,0 +1,54 @@ +Source: python-uniconvertor +Section: python +Priority: optional +Maintainer: Andreas Wenning +Uploaders: Andreas Wenning , Luis Uribe , Debian Python Modules Team +Homepage: http://sk1project.org/modules.php?name=Products&product=uniconvertor +Build-Depends: python-all-dev (>= 2.4), python-all-dbg (>= 2.4), debhelper (>= 5.0.51), quilt, python-support (>= 1.0), perl +XS-Python-Version: all +Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-uniconvertor/trunk +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-uniconvertor/trunk/ +Standards-Version: 3.8.2 + +Package: python-uniconvertor +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends}, python-imaging, python-reportlab +Provides: ${python:Provides} +Suggests: python-uniconvertor-dbg +XB-Python-Version: ${python:Versions} +Description: Universal vector graphics translator + UniConvertor is a multiplatform universal vector graphics translator. + It uses sK1 engine to convert one format to another. + . + Import filters: + * CorelDRAW ver.7-X3,X4 (CDR/CDT/CCX/CDRX/CMX) + * Adobe Illustrator up to 9 ver. (AI postscript based) + * Postscript (PS) + * Encapsulated Postscript (EPS) + * Computer Graphics Metafile (CGM) + * Windows Metafile (WMF) + * XFIG + * Scalable Vector Graphics (SVG) + * Skencil/Sketch/sK1 (SK and SK1) + * Acorn Draw (AFF) + . + Export filters: + * AI (Postscript based Adobe Illustrator 5.0 format) + * SVG (Scalable Vector Graphics) + * SK (Sketch/Skencil format) + * SK1 (sK1 format) + * CGM (Computer Graphics Metafile) + * WMF (Windows Metafile) + * PDF (Portable Document Format) + * PS (PostScript) + +Package: python-uniconvertor-dbg +Section: debug +Architecture: any +Priority: extra +Depends: python-dbg, ${shlibs:Depends}, python-imaging, python-uniconvertor (= ${binary:Version}) +Description: Universal vector graphics translator (debug extension) + UniConvertor is a multiplatform universal vector graphics translator. + It uses sK1 engine to convert one format to another. + . + This package contains the extension built for the Python debug interpreter. --- python-uniconvertor-1.1.4.orig/debian/README.Debian +++ python-uniconvertor-1.1.4/debian/README.Debian @@ -0,0 +1,11 @@ +--- Font support --- +UniConvertor doesn't have proper font support yet and should be used against +path-based files only. SVG (and possibly other files as well) can be converted +to path-based files in inkscape. + +Adding .sfd files and appropriate font-files to ~/.uniconvertor will let +uniconvertor load those fonts; but most tests have revealed that correct usage +of the fonts are not to be expected. + +See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504223 for a lengthy discussion of this. + --- python-uniconvertor-1.1.4.orig/debian/README.source +++ python-uniconvertor-1.1.4/debian/README.source @@ -0,0 +1,2 @@ +This package uses the patch management system quilt as documented in +/usr/share/doc/quilt/README.source. --- python-uniconvertor-1.1.4.orig/debian/copyright +++ python-uniconvertor-1.1.4/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Andreas Wenning on +Mon, 10 Mar 2008 22:42:50 +0100 + +It was downloaded from: +http://sk1project.org/modules.php?name=Products&product=uniconvertor + +Copyright (C) 2007-2008 by Igor E. Novikov, Valek Fillipov + +This program is free software; you can redistribute it and/or +modify it under the terms of GNU Library General Public +License and some files under terms of GNU General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU Library General Public License for more details. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL-2 file. + +The filters are released under GNU Library General Public +License, on Debian systems the complete text can be found in +/usr/share/common-licenses/LGPL-2 file. --- python-uniconvertor-1.1.4.orig/debian/pycompat +++ python-uniconvertor-1.1.4/debian/pycompat @@ -0,0 +1 @@ +2 \ No newline at end of file --- python-uniconvertor-1.1.4.orig/debian/python-uniconvertor.preinst +++ python-uniconvertor-1.1.4/debian/python-uniconvertor.preinst @@ -0,0 +1,5 @@ +#!/bin/sh -e +if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 1.1.4-1; then + pycentral pkgremove python-uniconvertor +fi +#DEBHELPER# --- python-uniconvertor-1.1.4.orig/debian/uniconvertor.pod +++ python-uniconvertor-1.1.4/debian/uniconvertor.pod @@ -0,0 +1,55 @@ +=head1 NAME + +UniConvertor -- command line tool to convert vector graphic files + +=head1 SYNOPSIS + +uniconvertor [input file] [output file] + +=head1 DESCRIPTION + +Converts one vector graphics format to another using sK1 engine. + +Allowed input formats: + AI - Adobe Illustrator files (postscript based) + CDR - CorelDRAW Graphics files (7-X3,X4 versions) + CDT - CorelDRAW templates files (7-X3 versions) + CCX - Corel Compressed Exchange files + CMX - Corel Presentation Exchange files (CMX1 format) + SVG - Scalable Vector Graphics files + FIG - XFig files + CGM - Computer Graphics Metafile files + AFF - Draw files + WMF - Windows Metafile files + SK - Sketch/Skencil files + SK1 - sK1 vector graphics files + PLT - HPGL for cutting plotter files + +Allowed output formats: + AI - Adobe Illustrator files (postscript based) + SVG - Scalable Vector Graphics files + CGM - Computer Graphics Metafile files + WMF - Windows Metafile files + SK - Sketch/Skencil files + SK1 - sK1 vector graphics files + PDF - Portable Document Format + PS - PostScript + PLT - HPGL for cutting plotter files + +=head1 EXAMPLES + +B drawing.cdr drawing.svg + +=head1 AUTHORS + +UniConvertor is written by sK1 Team (http://sk1project.org), copyright (C) 2007 by Igor E. Novikov, Valek Filippov. + +This manual page was written by Andreas Wenning , for the Debian project (but may be used by others). + +=head1 COPYRIGHT + +UniConvertor is released under GNU General Public License; on Debian systems the complete text can be found in /usr/share/common-licenses/GPL-2 file. + +The filters are released under GNU Library General Public License; on Debian systems the complete text can be found in /usr/share/common-licenses/LGPL-2 file. + +=cut --- python-uniconvertor-1.1.4.orig/debian/watch +++ python-uniconvertor-1.1.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=download http://sk1project.org/downloads/uniconvertor/v.*/uniconvertor-(.*)\.tar\.gz --- python-uniconvertor-1.1.4.orig/debian/compat +++ python-uniconvertor-1.1.4/debian/compat @@ -0,0 +1 @@ +5 --- python-uniconvertor-1.1.4.orig/debian/rules +++ python-uniconvertor-1.1.4/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f +include /usr/share/quilt/quilt.make + +p:=debian/python-uniconvertor +pd:=debian/python-uniconvertor-dbg + +PYVERS := $(shell pyversions -vs) +PYVER := $(shell pyversions -vd) + +build: clean patch build-stamp + pod2man --section=1 --release=$(VERSION) debian/uniconvertor.pod > uniconvertor.1 + mkdir -p $(p) + +build-stamp: $(PYVERS:%=build-python%) $(PYVERS:%=dbg-build-python%) + +build-python%: + python$* setup.py install --no-compile --install-layout=deb --root $(p) + +dbg-build-python%: + python$*-dbg setup.py install --no-compile --install-layout=deb --root $(pd) + +clean: unpatch + dh_testdir + dh_clean -i -a + python setup.py clean + rm -rf build + rm -f uniconvertor.1 + +install: build install-python dbg-install-python + +install-python: + mv $(p)/usr/bin/uniconv $(p)/usr/bin/uniconvertor + chmod 755 `find $(p) -wholename "*/uniconvertor/__init__.py"` + find $(p) -type f -name 'GNU_*GPL_v2' | xargs rm -f + find $(p) -type f -name 'COPYRIGHTS' | xargs rm -f + +dbg-install-python: + find $(pd) ! -type d ! -name '*_d.so' | xargs rm -f + find $(pd) -depth -empty -exec rmdir {} \; + dh_link -ppython-uniconvertor-dbg /usr/share/doc/python-uniconvertor /usr/share/doc/python-uniconvertor-dbg + +binary-indep: + # Nothing to do. + +binary-arch: install + dh_testdir + dh_testroot + dh_installman uniconvertor.1 + dh_installdocs + dh_installchangelogs + dh_strip -ppython-uniconvertor --dbg-package=python-uniconvertor-dbg + dh_compress -a -X.py + dh_fixperms -a + dh_pysupport -a + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a -- -Z bzip2 + +binary: binary-indep binary-arch + +.PHONY: build clean binary binary-indep binary-arch install --- python-uniconvertor-1.1.4.orig/debian/changelog +++ python-uniconvertor-1.1.4/debian/changelog @@ -0,0 +1,88 @@ +python-uniconvertor (1.1.4-1) unstable; urgency=low + + * New upstream release (LP: #393688) + - Drop patches 02_exec_uniconvertor.patch and 04_no_exit_on_import.patch; + ideas applied upstream. + - Manually update 01_rename_uniconv.patch + - debian/uniconvertor.pod: Update to reflect new supported file-types + * Switch to use python-support (LP: #371476) + - debian/rules: Change dh_pycentral to dh_pysupport + - debian/control: Change build-dep on python-central to python-support; + make it version-specific (>= 1.0) + - Add python-uniconvertor.preinst to remove left-over python-central bits + * Switch to use quilt as patch-system + - debian/rules: + + import /usr/share/quilt/quilt.make instead of dpatch-equivalent + + Change dependencies on patch-stamp to patch + - debian/control: Change build-dep on dpatch to quilt + - Rename patches from *.dpatch to *.patch and remove the + dpatch-introduction in all of them. + - Change the 00list-file to a series-file + - Modify README.source to point to quilt documentation + * debian/control: + - Bump standards-version to 3.8.2, no other changes needed + - python-uniconvertor-dbg moved to section 'debug' + * debian/rules: Add --install-layout=deb to setup.py lines + * debian/copyright: Update copyright years to reflect upstream + * debian/README.Debian: Update with more info on font support + * debian/watch: Update as download page has changed + * Add 02_fake_fallback_font.patch which adds a fake fall-back font; this + makes uniconvertor able to convert path-based files with embedded font + information. Thanks to Xavi Drudis Ferran. + * Update 03_fontwarning.patch to warn when using the fallback font. + + -- Andreas Wenning Wed, 29 Jul 2009 00:27:02 +0200 + +python-uniconvertor (1.1.3-4) unstable; urgency=low + + * Add 04_no_exit_on_import.dpatch to prevent uniconvertor from calling + sys.exit() on import exiting the python interpreter. (LP: #300141) + + -- Andreas Wenning Fri, 21 Nov 2008 14:32:49 +0100 + +python-uniconvertor (1.1.3-3) unstable; urgency=low + + [ Andreas Wenning ] + * Modified debian/control and debian/uniconvertor.pod to reflect new + output formats. + * Added 03_fontwarning.dpatch to display a better font warning; this now + points to README.Debian explaining the issue. (Closes: #504477) + + [ Sandro Tosi ] + * debian/control + - switch Vcs-Browser field to viewsvn + + -- Andreas Wenning Fri, 07 Nov 2008 09:36:42 +0100 + +python-uniconvertor (1.1.3-2) unstable; urgency=low + + [ Andreas Wenning ] + * Added missing Depends on python-reportlab + + [ Piotr Ożarowski ] + * Add Vsc-Browser and Vcs-Svn fields + + -- Andreas Wenning Sat, 25 Oct 2008 00:43:23 +0200 + +python-uniconvertor (1.1.3-1) unstable; urgency=low + + [ Andreas Wenning ] + * New upstream release + + [ Piotr Ożarowski ] + * Bump Standards-Version to 3.8.0 + + debian/README.source added + + -- Andreas Wenning Sun, 07 Sep 2008 22:14:52 +0200 + +python-uniconvertor (1.1.2-1) unstable; urgency=low + + * New upstream release + + -- Andreas Wenning Tue, 18 Mar 2008 01:37:28 +0100 + +python-uniconvertor (1.1.1-1) unstable; urgency=low + + * Initial release. (Closes: #457908) + + -- Andreas Wenning Thu, 13 Mar 2008 23:46:37 +0100 --- python-uniconvertor-1.1.4.orig/debian/patches/03_fontwarning.patch +++ python-uniconvertor-1.1.4/debian/patches/03_fontwarning.patch @@ -0,0 +1,15 @@ +# Adds a warning about missing font support, see README.Debian + +Index: b/src/app/Graphics/font.py +=================================================================== +--- a/src/app/Graphics/font.py 2009-07-28 00:50:37.000000000 +0200 ++++ b/src/app/Graphics/font.py 2009-07-28 00:50:37.000000000 +0200 +@@ -420,6 +420,8 @@ + "I'll use %(fallback)s instead"), + fontname = fontname, + fallback = config.preferences.fallback_font) ++ warn(USER, _("Fontsystem not yet implemented in UniConvertor. " ++ "See /usr/share/doc/python-uniconvertor/README.Debian for more info")) + _warned_about_font[fontname] = 1 + if fontname != config.preferences.fallback_font: + return GetFont(config.preferences.fallback_font) --- python-uniconvertor-1.1.4.orig/debian/patches/01_rename_uniconv.patch +++ python-uniconvertor-1.1.4/debian/patches/01_rename_uniconv.patch @@ -0,0 +1,24 @@ +# The main binary is renamed to uniconvertor. Patching the help text. + +Index: b/src/__init__.py +=================================================================== +--- a/src/__init__.py 2009-07-27 16:33:53.000000000 +0200 ++++ b/src/__init__.py 2009-07-28 00:50:37.000000000 +0200 +@@ -7,7 +7,7 @@ + # For more info see COPYRIGHTS file in root directory. + + ''' +-USAGE: uniconv [OPTIONS] [INPUT FILE] [OUTPUT FILE] ++USAGE: uniconvertor [OPTIONS] [INPUT FILE] [OUTPUT FILE] + + Converts one vector graphics format to another using sK1 engine. + sK1 Team (http://sk1project.org), copyright (C) 2007-2009 by Igor E. Novikov +@@ -38,7 +38,7 @@ + PS - PostScript + PLT - HPGL for cutting plotter files + +-Example: uniconv drawing.cdr drawing.svg\n ++Example: uniconvertor drawing.cdr drawing.svg\n + ''' + + import sys, os, string --- python-uniconvertor-1.1.4.orig/debian/patches/series +++ python-uniconvertor-1.1.4/debian/patches/series @@ -0,0 +1,3 @@ +01_rename_uniconv.patch +02_fake_fallback_font.patch +03_fontwarning.patch --- python-uniconvertor-1.1.4.orig/debian/patches/02_fake_fallback_font.patch +++ python-uniconvertor-1.1.4/debian/patches/02_fake_fallback_font.patch @@ -0,0 +1,40 @@ +# Initialize a fake font so conversion of path-based fonts will work when +# a font description exists. Thanks to Xavi Drudis Ferran. +# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504223#32 + +Index: b/src/app/Graphics/font.py +=================================================================== +--- a/src/app/Graphics/font.py 2009-07-27 16:33:52.000000000 +0200 ++++ b/src/app/Graphics/font.py 2009-07-28 00:50:54.000000000 +0200 +@@ -431,4 +431,31 @@ + # Initialisation on import + # + ++## workaround for a bug that stops uniconvertor from working with svg ++## files winth font properties in style attributes, even if they apply ++## to no text because all text is empty or transformed to paths ++## see http://svn.berlios.de/viewcvs/bulmages/branches/docsMonolitic/bulmages/installbulmages/openreports/ca/ ++ ++class FakeFont(Font): ++ def __init__(self, name): ++ self.name = name ++ self.family = name ++ self.font_attrs = 'Regular Italic' ++ self.xlfd_start = '-adobe-Nimbus Roman No9 L-regular-i-normal' ++ self.encoding_name = 'iso8859-1' ++ self.outlines = None ++ self.ref_count = 0 ++ font_cache[self.name] = self ++ ++def ensure_there_is_at_least_a_fake_fallback_font(): ++ fallback = 'Slim'; ++ if (not (config is None)) and (hasattr(config,'preferences')) and (hasattr(config.preferences,'fallback_font')): ++ fallback = config.preferences.fallback_font ++ if not font_cache.has_key(fallback): ++ return FakeFont(fallback) ++ return font_cache[fallback] ++ ++fallbackFont = ensure_there_is_at_least_a_fake_fallback_font() ++ + Subscribe(const.INITIALIZE, read_font_dirs) ++read_font_dirs()