Hello community,
here is the log from the commit of package gl2ps for openSUSE:Factory checked in at 2015-12-24 12:15:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gl2ps (Old)
and /work/SRC/openSUSE:Factory/.gl2ps.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gl2ps"
Changes:
--------
--- /work/SRC/openSUSE:Factory/gl2ps/gl2ps.changes 2015-09-08 17:46:47.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gl2ps.new/gl2ps.changes 2015-12-24 12:15:49.000000000 +0100
@@ -1,0 +2,7 @@
+Fri Dec 4 10:25:20 UTC 2015 - mpluskal@suse.com
+
+- Update to 1.3.9
+ * Improved GL_POLYGON_OFFSET_FILL; fixed scaling of images in
+ SVG output.
+
+-------------------------------------------------------------------
Old:
----
gl2ps-1.3.8.tgz
New:
----
gl2ps-1.3.9.tgz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gl2ps.spec ++++++
--- /var/tmp/diff_new_pack.FrFa5i/_old 2015-12-24 12:15:50.000000000 +0100
+++ /var/tmp/diff_new_pack.FrFa5i/_new 2015-12-24 12:15:50.000000000 +0100
@@ -18,7 +18,7 @@
%define so_ver 1
Name: gl2ps
-Version: 1.3.8
+Version: 1.3.9
Release: 0
Summary: OpenGL to PostScript Printing Library
License: LGPL-2.0+ or SUSE-GL2PS-2.0
@@ -93,7 +93,7 @@
%build
%cmake
-make
+make %{?_smp_mflags}
%install
%cmake_install
@@ -108,7 +108,7 @@
%files devel
%defattr(-,root,root,-)
-%doc COPYING.GL2PS COPYING.LGPL README.txt TODO.txt gl2ps.pdf gl2psTest*.c
+%doc COPYING.GL2PS COPYING.LGPL README.txt gl2ps.pdf gl2psTest*.c
%{_includedir}/gl2ps.h
%{_libdir}/libgl2ps.so
++++++ gl2ps-1.3.8.tgz -> gl2ps-1.3.9.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gl2ps-1.3.8-source/CMakeLists.txt new/gl2ps-1.3.9-source/CMakeLists.txt
--- old/gl2ps-1.3.8-source/CMakeLists.txt 2012-11-27 20:41:06.000000000 +0100
+++ new/gl2ps-1.3.9-source/CMakeLists.txt 2015-10-17 19:56:38.000000000 +0200
@@ -1,5 +1,5 @@
# GL2PS, an OpenGL to PostScript Printing Library
-# Copyright (C) 1999-2012 C. Geuzaine
+# Copyright (C) 1999-2015 C. Geuzaine
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of either:
@@ -49,7 +49,7 @@
set(GL2PS_MAJOR_VERSION 1)
set(GL2PS_MINOR_VERSION 3)
-set(GL2PS_PATCH_VERSION 8)
+set(GL2PS_PATCH_VERSION 9)
set(GL2PS_EXTRA_VERSION "" CACHE STRING "GL2PS extra version string")
set(GL2PS_VERSION "${GL2PS_MAJOR_VERSION}.${GL2PS_MINOR_VERSION}")
@@ -106,6 +106,11 @@
endif(PNG_FOUND)
endif(ENABLE_PNG)
+find_library(MATH_LIBRARY m)
+if(MATH_LIBRARY)
+ list(APPEND EXTERNAL_LIBRARIES ${MATH_LIBRARY})
+endif(MATH_LIBRARY)
+
include_directories(${EXTERNAL_INCLUDES})
if(OPENGL_FOUND)
@@ -116,8 +121,8 @@
target_link_libraries(shared ${EXTERNAL_LIBRARIES})
set_target_properties(shared PROPERTIES OUTPUT_NAME gl2ps)
set_target_properties(shared PROPERTIES
- VERSION ${GL2PS_MAJOR_VERSION}.${GL2PS_MINOR_VERSION}.${GL2PS_PATCH_VERSION}
- SOVERSION ${GL2PS_MAJOR_VERSION})
+ VERSION ${GL2PS_MAJOR_VERSION}.${GL2PS_MINOR_VERSION}.${GL2PS_PATCH_VERSION}
+ SOVERSION ${GL2PS_MAJOR_VERSION})
if(MSVC)
set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
endif(MSVC)
@@ -180,8 +185,8 @@
set(CPACK_STRIP_FILES TRUE)
set(CPACK_SOURCE_PACKAGE_FILE_NAME gl2ps-${GL2PS_VERSION}-source)
set(CPACK_SOURCE_GENERATOR TGZ)
-set(CPACK_SOURCE_IGNORE_FILES "${CMAKE_BINARY_DIR}" "/CVS/" "/.svn" "~$"
- "DS_Store$" "/tmp/" "/bin/" "/lib/")
+set(CPACK_SOURCE_IGNORE_FILES "TODO.txt" "${CMAKE_BINARY_DIR}" "/CVS/"
+ "/.svn" "~$" "DS_Store$" "/tmp/" "/bin/" "/lib/")
if(WIN32)
set(CPACK_GENERATOR ZIP)
else(WIN32)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gl2ps-1.3.8-source/COPYING.GL2PS new/gl2ps-1.3.9-source/COPYING.GL2PS
--- old/gl2ps-1.3.8-source/COPYING.GL2PS 2012-11-27 20:41:06.000000000 +0100
+++ new/gl2ps-1.3.9-source/COPYING.GL2PS 2015-10-17 19:51:51.000000000 +0200
@@ -2,8 +2,6 @@
GL2PS LICENSE
Version 2, November 2003
- Copyright (C) 2003, Christophe Geuzaine
-
Permission to use, copy, and distribute this software and its
documentation for any purpose with or without fee is hereby granted,
provided that the copyright notice appear in all copies and that both
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gl2ps-1.3.8-source/TODO.txt new/gl2ps-1.3.9-source/TODO.txt
--- old/gl2ps-1.3.8-source/TODO.txt 2012-11-27 20:41:06.000000000 +0100
+++ new/gl2ps-1.3.9-source/TODO.txt 1970-01-01 01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-* Add an option to limit the recursion level depth in BSP tree
-
-* Add an simple option to subdivide long, stretched triangles so that
- SIMPLE_SORT can still be used for simple, non-intersecting geometries
- (cf. Olivier Couet's long cylinders at Cern) where BSP_SORT is very
- slow due to the presence of many, many curved surfaces
-
-* do we really need gl2psEnable(GL2PS_BLEND)? Couldn't we just check
- what's in rgba[3] and try to do the "right thing" right away?
- Update Thu Jul 20 14:51:33 2006: that's what I do now for SVG and it
- works pretty well. We could probably significantly simplify the PDF
- code that way.
-
-* Think about a way to provide a progress indicator through a
- callback. Not easy for BSP trees due to the recursive
- implementation.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gl2ps-1.3.8-source/gl2ps.c new/gl2ps-1.3.9-source/gl2ps.c
--- old/gl2ps-1.3.8-source/gl2ps.c 2012-11-27 20:41:06.000000000 +0100
+++ new/gl2ps-1.3.9-source/gl2ps.c 2015-10-17 18:26:03.000000000 +0200
@@ -1,6 +1,6 @@
/*
* GL2PS, an OpenGL to PostScript Printing Library
- * Copyright (C) 1999-2012 C. Geuzaine
+ * Copyright (C) 1999-2015 C. Geuzaine
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of either:
@@ -183,7 +183,7 @@
GLushort pattern;
char boundary, offset, culled;
GLint factor;
- GLfloat width;
+ GLfloat width, ofactor, ounits;
GL2PSvertex *verts;
union {
GL2PSstring *text;
@@ -211,7 +211,7 @@
GLint format, sort, options, colorsize, colormode, buffersize;
char *title, *producer, *filename;
GLboolean boundary, blending;
- GLfloat *feedback, offset[2], lastlinewidth;
+ GLfloat *feedback, lastlinewidth;
GLint viewport[4], blendfunc[2], lastfactor;
GL2PSrgba *colormap, lastrgba, threshold, bgcolor;
GLushort lastpattern;
@@ -428,7 +428,7 @@
#if !defined(GL2PS_HAVE_NO_VSNPRINTF)
/* Try writing the string to a 1024 byte buffer. If it is too small to fit,
keep trying larger sizes until it does. */
- size_t bufsize = sizeof(buf);
+ int bufsize = sizeof(buf);
#endif
if(gl2ps->options & GL2PS_COMPRESS){
va_start(args, fmt);
@@ -893,6 +893,8 @@
prim->verts[0].xyz[2] = pos[2];
prim->culled = 0;
prim->offset = 0;
+ prim->ofactor = 0.0;
+ prim->ounits = 0.0;
prim->pattern = 0;
prim->factor = 0;
prim->width = 1;
@@ -1044,6 +1046,8 @@
prim->numverts = p->numverts;
prim->boundary = p->boundary;
prim->offset = p->offset;
+ prim->ofactor = p->ofactor;
+ prim->ounits = p->ounits;
prim->pattern = p->pattern;
prim->factor = p->factor;
prim->culled = p->culled;
@@ -1241,6 +1245,8 @@
child->boundary = 0; /* FIXME: not done! */
child->culled = parent->culled;
child->offset = parent->offset;
+ child->ofactor = parent->ofactor;
+ child->ounits = parent->ounits;
child->pattern = parent->pattern;
child->factor = parent->factor;
child->width = parent->width;
@@ -1377,6 +1383,8 @@
(*t1)->numverts = (*t2)->numverts = 3;
(*t1)->culled = (*t2)->culled = quad->culled;
(*t1)->offset = (*t2)->offset = quad->offset;
+ (*t1)->ofactor = (*t2)->ofactor = quad->ofactor;
+ (*t1)->ounits = (*t2)->ounits = quad->ounits;
(*t1)->pattern = (*t2)->pattern = quad->pattern;
(*t1)->factor = (*t2)->factor = quad->factor;
(*t1)->width = (*t2)->width = quad->width;
@@ -1695,8 +1703,8 @@
}
}
else if(prim->offset && (prim->type == GL2PS_TRIANGLE)){
- factor = gl2ps->offset[0];
- units = gl2ps->offset[1];
+ factor = prim->ofactor;
+ units = prim->ounits;
area =
(prim->verts[1].xyz[0] - prim->verts[0].xyz[0]) *
(prim->verts[2].xyz[1] - prim->verts[1].xyz[1]) -
@@ -1916,6 +1924,8 @@
child->boundary = 0; /* FIXME: not done! */
child->culled = parent->culled;
child->offset = parent->offset;
+ child->ofactor = parent->ofactor;
+ child->ounits = parent->ounits;
child->pattern = parent->pattern;
child->factor = parent->factor;
child->width = parent->width;
@@ -2104,6 +2114,8 @@
b = (GL2PSprimitive*)gl2psMalloc(sizeof(GL2PSprimitive));
b->type = GL2PS_LINE;
b->offset = prim->offset;
+ b->ofactor = prim->ofactor;
+ b->ounits = prim->ounits;
b->pattern = prim->pattern;
b->factor = prim->factor;
b->culled = prim->culled;
@@ -2175,6 +2187,7 @@
static void gl2psAddPolyPrimitive(GLshort type, GLshort numverts,
GL2PSvertex *verts, GLint offset,
+ GLfloat ofactor, GLfloat ounits,
GLushort pattern, GLint factor,
GLfloat width, char boundary)
{
@@ -2187,6 +2200,8 @@
memcpy(prim->verts, verts, numverts * sizeof(GL2PSvertex));
prim->boundary = boundary;
prim->offset = offset;
+ prim->ofactor = ofactor;
+ prim->ounits = ounits;
prim->pattern = pattern;
prim->factor = factor;
prim->width = width;
@@ -2229,7 +2244,7 @@
GLushort pattern = 0;
GLboolean boundary;
GLint i, sizeoffloat, count, v, vtot, offset = 0, factor = 0, auxindex = 0;
- GLfloat lwidth = 1.0F, psize = 1.0F;
+ GLfloat lwidth = 1.0F, psize = 1.0F, ofactor, ounits;
GLfloat *current;
GL2PSvertex vertices[3];
GL2PSprimitive *prim;
@@ -2249,7 +2264,7 @@
i = gl2psGetVertex(&vertices[0], current);
current += i;
used -= i;
- gl2psAddPolyPrimitive(GL2PS_POINT, 1, vertices, 0,
+ gl2psAddPolyPrimitive(GL2PS_POINT, 1, vertices, 0, 0.0, 0.0,
pattern, factor, psize, 0);
break;
case GL_LINE_TOKEN :
@@ -2262,7 +2277,7 @@
i = gl2psGetVertex(&vertices[1], current);
current += i;
used -= i;
- gl2psAddPolyPrimitive(GL2PS_LINE, 2, vertices, 0,
+ gl2psAddPolyPrimitive(GL2PS_LINE, 2, vertices, 0, 0.0, 0.0,
pattern, factor, lwidth, 0);
break;
case GL_POLYGON_TOKEN :
@@ -2286,8 +2301,8 @@
}
else
flag = 0;
- gl2psAddPolyPrimitive(GL2PS_TRIANGLE, 3, vertices, offset,
- pattern, factor, 1, flag);
+ gl2psAddPolyPrimitive(GL2PS_TRIANGLE, 3, vertices, offset, ofactor,
+ ounits, pattern, factor, 1, flag);
vertices[1] = vertices[2];
}
else
@@ -2305,8 +2320,20 @@
break;
case GL_PASS_THROUGH_TOKEN :
switch((GLint)current[1]){
- case GL2PS_BEGIN_OFFSET_TOKEN : offset = 1; break;
- case GL2PS_END_OFFSET_TOKEN : offset = 0; break;
+ case GL2PS_BEGIN_OFFSET_TOKEN :
+ offset = 1;
+ current += 2;
+ used -= 2;
+ ofactor = current[1];
+ current += 2;
+ used -= 2;
+ ounits = current[1];
+ break;
+ case GL2PS_END_OFFSET_TOKEN :
+ offset = 0;
+ ofactor = 0.0;
+ ounits = 0.0;
+ break;
case GL2PS_BEGIN_BOUNDARY_TOKEN : boundary = GL_TRUE; break;
case GL2PS_END_BOUNDARY_TOKEN : boundary = GL_FALSE; break;
case GL2PS_END_STIPPLE_TOKEN : pattern = factor = 0; break;
@@ -2348,6 +2375,8 @@
prim->verts = (GL2PSvertex *)gl2psMalloc(4 * sizeof(GL2PSvertex));
prim->culled = 0;
prim->offset = 0;
+ prim->ofactor = 0.0;
+ prim->ounits = 0.0;
prim->pattern = 0;
prim->factor = 0;
prim->width = 1;
@@ -5064,8 +5093,14 @@
sizeof(unsigned char));
gl2psConvertPixmapToPNG(pixmap, png);
gl2psListEncodeBase64(png);
+
+ /* Use "transform" attribute to scale and translate the image from
+ the coordinates origin (0,0) */
+ y -= pixmap->zoom_y * (GLfloat)pixmap->height;
gl2psPrintf("
participants (1)
-
root@hilbert.suse.de