SHA256
1
0
forked from pool/xfig

Accepting request 45281 from graphics

Copy from graphics/xfig based on submit request 45281 from user WernerFink

OBS-URL: https://build.opensuse.org/request/show/45281
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfig?expand=0&rev=19
This commit is contained in:
OBS User autobuild 2010-08-10 11:17:08 +00:00 committed by Git OBS Bridge
commit 19cf9a971a
3 changed files with 22 additions and 1 deletions

13
xfig.3.2.5b-preview.dif Normal file
View File

@ -0,0 +1,13 @@
--- f_readeps.c
+++ f_readeps.c 2010-08-10 10:50:57.699132894 +0000
@@ -318,8 +318,8 @@ bitmap_from_gs(file, filetype, pic, urx,
gscom[0] = '\0';
}
sprintf(&gscom[strlen(gscom)],
- "%s -r72x72 -dSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -q - > %s 2>&1",
- appres.ghostscript, driver, wid, ht, pixnam, errnam);
+ "%s -r72x72 -dNOSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -c '<</PermitFileReading[(%s)]>> setuserparams .locksafe' -q - > %s 2>&1",
+ appres.ghostscript, driver, wid, ht, pixnam, psnam, errnam);
if (appres.DEBUG)
fprintf(stderr,"calling: %s\n",gscom);
if ((gsfile = popen(gscom, "w")) == 0) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 10 13:00:25 CEST 2010 - werner@suse.de
- Make eps/ps import work again. This trouble was caused by the
security fix for ghostscript of bug bnc#608071
-------------------------------------------------------------------
Tue Apr 20 17:24:01 CEST 2010 - werner@suse.de

View File

@ -31,7 +31,7 @@ Provides: xfig.3.2.3d
Requires: transfig netpbm ghostscript-fonts-std
AutoReqProv: on
Version: 3.2.5b
Release: 3
Release: 8
Summary: Facility for Interactive Generation of Figures under the X Window System
Url: http://www.xfig.org/
Source: xfig.%{version}.tar.bz2
@ -48,6 +48,7 @@ Patch6: xfig.3.2.5b-locale.dif
Patch7: xfig.3.2.5b-fixes.dif
Patch8: xfig.3.2.5b-pspdftex.dif
Patch9: xfig.3.2.5b-libpng14.dif
Patch10: xfig.3.2.5b-preview.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"
@ -94,6 +95,7 @@ find -type f | xargs -r chmod a-x,go-w
%patch7 -p0 -b .fixes
%patch8 -p0 -b .pspdftex
%patch9 -p0 -b .libpng14
%patch10 -p0 -b .preview
cp %{S:1} .
%build