commit transfig for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package transfig for openSUSE:Factory checked in at 2013-02-11 14:55:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/transfig (Old)
and /work/SRC/openSUSE:Factory/.transfig.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "transfig", Maintainer is "werner@suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/transfig/transfig.changes 2012-10-24 10:24:09.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.transfig.new/transfig.changes 2013-02-11 14:55:15.000000000 +0100
@@ -1,0 +2,11 @@
+Fri Feb 8 11:14:39 UTC 2013 - werner@suse.de
+
+- User original patches from Debian
+
+-------------------------------------------------------------------
+Thu Feb 7 16:34:21 UTC 2013 - werner@suse.de
+
+- Add xfig.3.2.5b-mediaboxrealnb.dif to fix regarding pdf import,
+ reported by Loic Le Guyader compare with Debian bug #530898
+
+-------------------------------------------------------------------
New:
----
transfig.3.2.5d-mediaboxrealnb.dif
transfig.3.2.5d-patches.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ transfig.spec ++++++
--- /var/tmp/diff_new_pack.VV15nm/_old 2013-02-11 14:55:17.000000000 +0100
+++ /var/tmp/diff_new_pack.VV15nm/_new 2013-02-11 14:55:17.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package transfig
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,14 +29,14 @@
BuildRequires: texlive-times
BuildRequires: tex(times.sty)
%endif
-BuildRequires: xorg-x11
-BuildRequires: xorg-x11-devel
%if 0%{?suse_version} > 1120
BuildRequires: libpng12-compat-devel
BuildRequires: libpng12-devel
%else
BuildRequires: libpng-devel
%endif
+BuildRequires: xorg-x11
+BuildRequires: xorg-x11-devel
Url: http://www.xfig.org/
Provides: transfig.3.2.3d
Requires: ghostscript-fonts-std
@@ -48,8 +48,10 @@
License: MIT
Group: Productivity/Graphics/Convertors
Source: transfig.%{version}.tar.bz2
+Source1: transfig.%{version}-patches.tar.bz2
Patch0: transfig.3.2.5d.dif
Patch2: transfig.3.2.5-binderman.dif
+Patch3: transfig.3.2.5d-mediaboxrealnb.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
%if "%_exec_prefix" == "/usr/X11R6"
@@ -85,8 +87,11 @@
%prep
%setup -q -n transfig.%{version}
-%patch0 -b .0
-%patch2 -b .bm
+find -type f | xargs -r chmod a-x,go-w
+tar Oxfj %{S:1} | patch -p1 -s
+%patch0 -p0 -b .0
+%patch2 -p0 -b .bm
+%patch3 -p0 -b .mbox
xmkmf -a -D_DATA='%{_data}'
%build
++++++ transfig.3.2.5d-mediaboxrealnb.dif ++++++
--- fig2dev/dev/readeps.c
+++ fig2dev/dev/readeps.c 2013-02-08 11:21:58.593945615 +0000
@@ -77,16 +77,22 @@ read_eps_pdf(file, filetype, pic, llx, l
while (fgets(buf, 512, file) != NULL) {
/* look for /MediaBox for pdf file */
if (pdf_flag) {
+ char *s;
+ for(s=buf; (s=strchr(s,'/')); s++) {
if (!strncmp(buf, "/MediaBox", 8)) { /* look for the MediaBox spec */
- c = strchr(buf,'[')+1;
- if (c && sscanf(c,"%d %d %d %d",llx,lly,&urx,&ury) < 4) {
+ c = strchr(s,'[');
+ if (c && sscanf(c+1,"%d %d %d %d",llx,lly,&urx,&ury) < 4) {
*llx = *lly = 0;
urx = paperdef[0].width*72;
ury = paperdef[0].height*72;
put_msg("Bad MediaBox in imported PDF file %s, assuming %s size",
pic->file, metric? "A4" : "Letter" );
}
+ pic->bit_size.x = (urx-(*llx));
+ pic->bit_size.y = (ury-(*lly));
+ break;
}
+ }
/* look for bounding box for EPS file */
} else if (!nested && !strncmp(buf, "%%BoundingBox:", 14)) {
c=buf+14;
++++++ transfig.3.2.5d.dif ++++++
--- /var/tmp/diff_new_pack.VV15nm/_old 2013-02-11 14:55:17.000000000 +0100
+++ /var/tmp/diff_new_pack.VV15nm/_new 2013-02-11 14:55:17.000000000 +0100
@@ -177,8 +177,16 @@
if (strstr(str, "CompositeRoman")) enable_composite_font = True;
fputs(str, tfp);
--- fig2dev/dev/genpstex.c
-+++ fig2dev/dev/genpstex.c 2008-04-25 14:01:42.000000000 +0000
-@@ -64,10 +64,13 @@ extern void
++++ fig2dev/dev/genpstex.c 2013-02-08 12:45:41.649945157 +0000
+@@ -37,6 +37,7 @@
+ * Jose Alberto.
+ */
+
++#include
participants (1)
-
root@hilbert.suse.de