This commit is contained in:
commit
dce9e56323
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
11
gd-2.0.32-warn.patch
Normal file
11
gd-2.0.32-warn.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- gdkanji.c
|
||||||
|
+++ gdkanji.c
|
||||||
|
@@ -390,7 +390,7 @@
|
||||||
|
from_len = strlen ((const char *) from) + 1;
|
||||||
|
to_len = BUFSIZ;
|
||||||
|
|
||||||
|
- if ((int) (iconv (cd, (char **) &from, &from_len, (char **) &to, &to_len))
|
||||||
|
+ if ((int) (iconv (cd, &from, &from_len, &to, &to_len))
|
||||||
|
== -1)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_ERRNO_H
|
3
gd-2.0.32.tar.bz2
Normal file
3
gd-2.0.32.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:08234fb2742f3e1298a5581593ba35dbc949ec821128102f8987cfa706d20c73
|
||||||
|
size 500507
|
17
gd-CAN-2004-0941.patch
Normal file
17
gd-CAN-2004-0941.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- gd_png.c.CAN-2004-0941 2004-11-11 14:02:37.407589824 -0500
|
||||||
|
+++ gd_png.c 2004-11-11 14:04:29.672522960 -0500
|
||||||
|
@@ -188,6 +188,14 @@
|
||||||
|
|
||||||
|
png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
|
||||||
|
&interlace_type, NULL, NULL);
|
||||||
|
+ if (overflow2(sizeof (int), width))
|
||||||
|
+ {
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
+ if (overflow2(sizeof (int) * width, height))
|
||||||
|
+ {
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
if ((color_type == PNG_COLOR_TYPE_RGB) ||
|
||||||
|
(color_type == PNG_COLOR_TYPE_RGB_ALPHA))
|
||||||
|
{
|
28
gd-aliasing.patch
Normal file
28
gd-aliasing.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- fontwheeltest.c 2004-10-27 14:22:04.000000000 +0000
|
||||||
|
+++ fontwheeltest.c 2005-11-24 10:45:11.000000000 +0000
|
||||||
|
@@ -34,6 +34,8 @@
|
||||||
|
|
||||||
|
for (curang = 0.0; curang < 360.0; curang += angle)
|
||||||
|
{
|
||||||
|
+ gdPoint points[4];
|
||||||
|
+
|
||||||
|
curangrads = DEGTORAD(curang);
|
||||||
|
x0 = x + cos (curangrads) * offset;
|
||||||
|
y0 = y - sin (curangrads) * offset;
|
||||||
|
@@ -49,7 +51,15 @@
|
||||||
|
if (cp)
|
||||||
|
doerr (err, cp);
|
||||||
|
|
||||||
|
- gdImagePolygon (im, (gdPointPtr)brect, 4, color);
|
||||||
|
+ points[0].x = brect[0];
|
||||||
|
+ points[0].y = brect[1];
|
||||||
|
+ points[1].x = brect[2];
|
||||||
|
+ points[1].y = brect[3];
|
||||||
|
+ points[2].x = brect[4];
|
||||||
|
+ points[2].y = brect[5];
|
||||||
|
+ points[3].x = brect[6];
|
||||||
|
+ points[3].y = brect[7];
|
||||||
|
+ gdImagePolygon (im, points, 4, color);
|
||||||
|
}
|
||||||
|
|
||||||
|
fclose (err);
|
11
gd-fontpath.patch
Normal file
11
gd-fontpath.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- gd.h.orig 2006-08-16 05:10:17.000000000 +0200
|
||||||
|
+++ gd.h 2006-08-16 05:11:03.000000000 +0200
|
||||||
|
@@ -59,7 +59,7 @@
|
||||||
|
/* 2.0.23: more Type 1 fonts */
|
||||||
|
#ifndef DEFAULT_FONTPATH
|
||||||
|
/* default fontpath for unix systems - whatever happened to standards ! */
|
||||||
|
-#define DEFAULT_FONTPATH "/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/Type1"
|
||||||
|
+#define DEFAULT_FONTPATH "/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/Type1:/usr/share/fonts/Type1"
|
||||||
|
#endif
|
||||||
|
#ifndef PATHSEPARATOR
|
||||||
|
#define PATHSEPARATOR ":"
|
11
gd-format.patch
Normal file
11
gd-format.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- gd-2.0.32/gdkanji.c.xx 2005-02-05 10:38:02.201752762 +0100
|
||||||
|
+++ gd-2.0.32/gdkanji.c 2005-02-05 10:38:48.616943407 +0100
|
||||||
|
@@ -100,7 +100,7 @@
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void
|
||||||
|
+static void __attribute__((__format__(printf,1,2)))
|
||||||
|
error (const char *format, ...)
|
||||||
|
{
|
||||||
|
va_list args;
|
27
gd-gif-read.patch
Normal file
27
gd-gif-read.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
--- gd_gif_in.c
|
||||||
|
+++ gd_gif_in.c
|
||||||
|
@@ -42,7 +42,7 @@
|
||||||
|
#define LOCALCOLORMAP 0x80
|
||||||
|
#define BitSet(byte, bit) (((byte) & (bit)) == (bit))
|
||||||
|
|
||||||
|
-#define ReadOK(file,buffer,len) (gdGetBuf(buffer, len, file) != 0)
|
||||||
|
+#define ReadOK(file,buffer,len) (gdGetBuf(buffer, len, file) == len)
|
||||||
|
|
||||||
|
#define LM_to_uint(a,b) (((b)<<8)|(a))
|
||||||
|
|
||||||
|
@@ -272,13 +272,13 @@
|
||||||
|
unsigned char count;
|
||||||
|
|
||||||
|
if (! ReadOK(fd,&count,1)) {
|
||||||
|
- return -1;
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
*ZeroDataBlockP = count == 0;
|
||||||
|
|
||||||
|
if ((count != 0) && (! ReadOK(fd, buf, count))) {
|
||||||
|
- return -1;
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return count;
|
44
gd-security.patch
Normal file
44
gd-security.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
--- gd.c
|
||||||
|
+++ gd.c
|
||||||
|
@@ -74,6 +74,10 @@
|
||||||
|
im = (gdImage *) gdMalloc (sizeof (gdImage));
|
||||||
|
memset (im, 0, sizeof (gdImage));
|
||||||
|
/* Row-major ever since gd 1.3 */
|
||||||
|
+ if (overflow2(sizeof (unsigned char *), sy)) {
|
||||||
|
+ gdFree(im);
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
im->pixels = (unsigned char **) gdMalloc (sizeof (unsigned char *) * sy);
|
||||||
|
im->polyInts = 0;
|
||||||
|
im->polyAllocated = 0;
|
||||||
|
@@ -114,6 +118,10 @@
|
||||||
|
gdImagePtr im;
|
||||||
|
im = (gdImage *) gdMalloc (sizeof (gdImage));
|
||||||
|
memset (im, 0, sizeof (gdImage));
|
||||||
|
+ if (overflow2(sizeof (int *), sy)) {
|
||||||
|
+ gdFree(im);
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
im->tpixels = (int **) gdMalloc (sizeof (int *) * sy);
|
||||||
|
im->polyInts = 0;
|
||||||
|
im->polyAllocated = 0;
|
||||||
|
@@ -2462,6 +2470,8 @@
|
||||||
|
}
|
||||||
|
bytes = (w * h / 8) + 1;
|
||||||
|
im = gdImageCreate (w, h);
|
||||||
|
+ if (!im)
|
||||||
|
+ return NULL;
|
||||||
|
gdImageColorAllocate (im, 255, 255, 255);
|
||||||
|
gdImageColorAllocate (im, 0, 0, 0);
|
||||||
|
x = 0;
|
||||||
|
--- gd_gd.c
|
||||||
|
+++ gd_gd.c
|
||||||
|
@@ -149,6 +149,8 @@
|
||||||
|
{
|
||||||
|
im = gdImageCreate (*sx, *sy);
|
||||||
|
}
|
||||||
|
+ if (!im)
|
||||||
|
+ goto fail1;
|
||||||
|
if (!_gdGetColors (in, im, gd2xFlag))
|
||||||
|
{
|
||||||
|
goto fail2;
|
238
gd.changes
Normal file
238
gd.changes
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 16 20:13:13 CEST 2006 - aj@suse.de
|
||||||
|
|
||||||
|
- Reduce BuildRequires.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 16 18:09:26 CEST 2006 - aj@suse.de
|
||||||
|
|
||||||
|
- Remove unneeded BuildRequire xorg-x11.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 16 10:42:17 CEST 2006 - aj@suse.de
|
||||||
|
|
||||||
|
- Do not use fonts to build package.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 16 05:16:58 CEST 2006 - sndirsch@suse.de
|
||||||
|
|
||||||
|
- gd-fontpath.diff: fixes new fontpath for Type1 fonts
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 7 12:29:26 CEST 2006 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- adjusted ttf fonts path for gdtestft
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 23 14:13:13 CEST 2006 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- fixed another check for return value on error [#186953]
|
||||||
|
- gdlib-config is moved to devel package [#168628]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 8 18:56:20 CEST 2006 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- fixed check for EOF in gd_gif_in.c [#182334]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 8 19:54:52 CET 2006 - sbrabec@suse.cz
|
||||||
|
|
||||||
|
- Fixed devel dependencies.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 21:36:07 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 12 16:15:57 CET 2006 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- compile with -fstack-protector
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 5 13:54:33 CET 2006 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- fixed another integer overflow [#138007]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 24 13:00:05 CET 2005 - meissner@suse.de
|
||||||
|
|
||||||
|
- fixed 1 aliasing issue.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 5 11:23:14 CET 2005 - meissner@suse.de
|
||||||
|
|
||||||
|
- added 1 missign format attribute
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 22 12:56:45 CET 2004 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- run test programs during build [#48382]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 15 12:37:31 CET 2004 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- fixed more overflows - CAN-2004-0941 [#47666]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 02 15:44:19 CET 2004 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.32:
|
||||||
|
* fixed several integer overflows [#47666]
|
||||||
|
* animated gif support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 24 09:59:01 CEST 2004 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.28:
|
||||||
|
restored support for reading and writing GIF images
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 20 14:05:37 CET 2004 - schwab@suse.de
|
||||||
|
|
||||||
|
- Fix missing return value.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 05 17:59:36 CET 2004 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.22
|
||||||
|
- fixed dangerous compiler warnings
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 10 17:22:24 CET 2004 - adrian@suse.de
|
||||||
|
|
||||||
|
- add %defattr and %run_ldconfig
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 06 12:35:57 CET 2004 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.17
|
||||||
|
- fixed to build with new freetype
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 24 16:02:58 CEST 2003 - mjancar@suse.cz
|
||||||
|
|
||||||
|
- update to 2.0.15
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 13 11:20:57 CET 2003 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.11: speed improvements, bugfixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 13 22:16:16 CET 2002 - prehak@suse.cz
|
||||||
|
|
||||||
|
- added gdImageCreateFromXpm() function prototype to gd.h
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 28 19:10:29 CET 2002 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- updated to 2.0.8
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
|
||||||
|
|
||||||
|
- removed bogus self-provides
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 28 11:10:41 CEST 2002 - bk@suse.de
|
||||||
|
|
||||||
|
- gd-devel requires gd and use prefix, bindir and includedir macros
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 13 11:42:32 CET 2002 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- used macro %{_libdir}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 1 00:26:06 CET 2002 - ro@suse.de
|
||||||
|
|
||||||
|
- changed neededforbuild <libpng> to <libpng-devel-packages>
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 5 18:15:48 CET 2001 - ro@suse.de
|
||||||
|
|
||||||
|
- fix Makefile.am for automake 1.5 (removed duplicated line)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 25 15:34:38 CEST 2001 - pblaha@suse.cz
|
||||||
|
|
||||||
|
- fix include on ia64
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 29 13:01:53 CEST 2001 - ro@suse.de
|
||||||
|
|
||||||
|
- use aclocal
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 21 16:05:52 CET 2001 - ro@suse.de
|
||||||
|
|
||||||
|
- update to 1.8.4
|
||||||
|
- use freetype2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 4 11:42:20 CET 2000 - pblaha@suse.cz
|
||||||
|
|
||||||
|
- move simbolick link libgd.so -> gd-devel
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 30 10:58:56 CET 2000 - aj@suse.de
|
||||||
|
|
||||||
|
- Add suse_update_config.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 15 16:09:30 CET 2000 - pblaha@suse.cz
|
||||||
|
|
||||||
|
- aplied patch from perl-GD and split to gd & gd-devel
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 5 14:24:24 CEST 2000 - bubnikv@suse.cz
|
||||||
|
|
||||||
|
- updated to 1.8.3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 12 15:08:44 CEST 2000 - nadvornik@suse.cz
|
||||||
|
|
||||||
|
- update to 1.8.1
|
||||||
|
- added BuildRoot
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 12 00:04:19 CEST 1999 - ro@suse.de
|
||||||
|
|
||||||
|
- added xpm and ttf support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 10 17:29:36 CEST 1999 - ro@suse.de
|
||||||
|
|
||||||
|
- added libpng to neededforbuild
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 7 11:26:30 CEST 1999 - schwab@suse.de
|
||||||
|
|
||||||
|
- update to 1.7.3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
|
||||||
|
|
||||||
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 9 12:15:28 CEST 1999 - bs@suse.de
|
||||||
|
|
||||||
|
- fixed call of Check at the end of %install section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 15 23:51:28 MEST 1999 - ro@suse.de
|
||||||
|
|
||||||
|
- fixed doc installation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 15 16:23:00 MEST 1999 - ro@suse.de
|
||||||
|
|
||||||
|
- update to 1.3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 5 15:35:02 MET 1998 - ro@suse.de
|
||||||
|
|
||||||
|
- ready for autobuild
|
||||||
|
|
241
gd.spec
Normal file
241
gd.spec
Normal file
@ -0,0 +1,241 @@
|
|||||||
|
#
|
||||||
|
# spec file for package gd (Version 2.0.32)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# This file and all modifications and additions to the pristine
|
||||||
|
# package are under the same license as the package itself.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: gd
|
||||||
|
BuildRequires: fontconfig-devel freetype2-devel libjpeg-devel libpng-devel xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libXpm-devel
|
||||||
|
License: Other License(s), see package, X11/MIT
|
||||||
|
Group: System/Libraries
|
||||||
|
Obsoletes: gdlib
|
||||||
|
Autoreqprov: on
|
||||||
|
Version: 2.0.32
|
||||||
|
Release: 29
|
||||||
|
URL: http://www.boutell.com/gd/
|
||||||
|
Summary: A Drawing Library for Programs That Use PNG and JPEG Output
|
||||||
|
Source: gd-%{version}.tar.bz2
|
||||||
|
Patch0: gd-%{version}-warn.patch
|
||||||
|
Patch1: gd-CAN-2004-0941.patch
|
||||||
|
Patch2: gd-format.patch
|
||||||
|
Patch3: gd-aliasing.patch
|
||||||
|
Patch4: gd-security.patch
|
||||||
|
Patch5: gd-gif-read.patch
|
||||||
|
Patch6: gd-fontpath.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
Gd allows your code to quickly draw images complete with lines, arcs,
|
||||||
|
text, and multiple colors. It supports cut and paste from other images
|
||||||
|
and flood fills. It outputs PNG, JPEG, and WBMP (for wireless devices)
|
||||||
|
and is supported by PHP4.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Thomas Boutell <boutell@boutell.com>
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Requires: %{name} = %{version} expat fontconfig-devel freetype2-devel glibc-devel libjpeg-devel libpng-devel xorg-x11-libXpm-devel xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel
|
||||||
|
License: X11/MIT, Other License(s), see package
|
||||||
|
Summary: Drawing Library for Programs with PNG and JPEG Output
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Autoreqprov: on
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
gd allows code to quickly draw images complete with lines, arcs, text,
|
||||||
|
multiple colors, cut and paste from other images, and flood fills. gd
|
||||||
|
writes out the result as a PNG or JPEG file. This is particularly
|
||||||
|
useful in World Wide Web applications, where PNG and JPEG are two of
|
||||||
|
the formats accepted for inline images by most browsers.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Thomas Boutell <boutell@boutell.com>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0
|
||||||
|
%patch1
|
||||||
|
%patch2 -p1
|
||||||
|
%patch3
|
||||||
|
%patch4
|
||||||
|
%patch5
|
||||||
|
%patch6
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{suse_update_config -f}
|
||||||
|
autoreconf -fi
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS -fstack-protector -I%{_includedir}/freetype2" \
|
||||||
|
CPPFLAGS="-I%{_includedir}/freetype2" \
|
||||||
|
./configure \
|
||||||
|
--prefix=%{_prefix} \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
|
--with-freetype \
|
||||||
|
--with-jpeg \
|
||||||
|
--with-png \
|
||||||
|
--with-xpm \
|
||||||
|
--with-pic
|
||||||
|
make
|
||||||
|
#run test programs
|
||||||
|
cp test/gdtest_wbmp_to_png.png gdtest.png
|
||||||
|
./gdtest gdtest.png 2>&1 |tee gdtest.log
|
||||||
|
grep ERROR gdtest.log && exit 1
|
||||||
|
./gdtest demoin.png 2>&1 |tee gdtest.log
|
||||||
|
# wbmp test fails on color image, this is OK
|
||||||
|
grep -v "gdtest.png, gdtest.wbmp.*ERROR" gdtest.log | grep ERROR && exit 1
|
||||||
|
./gddemo
|
||||||
|
# The following would require xorg-x11-fonts-scalable which we do not like to have as requirement
|
||||||
|
# so disable it.
|
||||||
|
#for f in `find /usr/share/fonts/truetype /usr/X11R6/lib/X11/fonts/truetype -name "*.ttf"` ; do
|
||||||
|
# ./gdtestft $f
|
||||||
|
#done
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
%run_ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%run_ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING INSTALL README* index.html
|
||||||
|
/usr/bin/annotate
|
||||||
|
/usr/bin/bdftogd
|
||||||
|
/usr/bin/gd2copypal
|
||||||
|
/usr/bin/gd2togif
|
||||||
|
/usr/bin/gd2topng
|
||||||
|
/usr/bin/gdcmpgif
|
||||||
|
/usr/bin/gdparttopng
|
||||||
|
/usr/bin/gdtopng
|
||||||
|
/usr/bin/giftogd2
|
||||||
|
/usr/bin/pngtogd
|
||||||
|
/usr/bin/pngtogd2
|
||||||
|
/usr/bin/webpng
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
/usr/bin/gdlib-config
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/*.a
|
||||||
|
%{_libdir}/*.la
|
||||||
|
|
||||||
|
%changelog -n gd
|
||||||
|
* Wed Aug 16 2006 - aj@suse.de
|
||||||
|
- Reduce BuildRequires.
|
||||||
|
* Wed Aug 16 2006 - aj@suse.de
|
||||||
|
- Remove unneeded BuildRequire xorg-x11.
|
||||||
|
* Wed Aug 16 2006 - aj@suse.de
|
||||||
|
- Do not use fonts to build package.
|
||||||
|
* Wed Aug 16 2006 - sndirsch@suse.de
|
||||||
|
- gd-fontpath.diff: fixes new fontpath for Type1 fonts
|
||||||
|
* Mon Aug 07 2006 - nadvornik@suse.cz
|
||||||
|
- adjusted ttf fonts path for gdtestft
|
||||||
|
* Fri Jun 23 2006 - nadvornik@suse.cz
|
||||||
|
- fixed another check for return value on error [#186953]
|
||||||
|
- gdlib-config is moved to devel package [#168628]
|
||||||
|
* Thu Jun 08 2006 - nadvornik@suse.cz
|
||||||
|
- fixed check for EOF in gd_gif_in.c [#182334]
|
||||||
|
* Wed Mar 08 2006 - sbrabec@suse.cz
|
||||||
|
- Fixed devel dependencies.
|
||||||
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
* Thu Jan 12 2006 - nadvornik@suse.cz
|
||||||
|
- compile with -fstack-protector
|
||||||
|
* Thu Jan 05 2006 - nadvornik@suse.cz
|
||||||
|
- fixed another integer overflow [#138007]
|
||||||
|
* Thu Nov 24 2005 - meissner@suse.de
|
||||||
|
- fixed 1 aliasing issue.
|
||||||
|
* Sat Feb 05 2005 - meissner@suse.de
|
||||||
|
- added 1 missign format attribute
|
||||||
|
* Mon Nov 22 2004 - nadvornik@suse.cz
|
||||||
|
- run test programs during build [#48382]
|
||||||
|
* Mon Nov 15 2004 - nadvornik@suse.cz
|
||||||
|
- fixed more overflows - CAN-2004-0941 [#47666]
|
||||||
|
* Tue Nov 02 2004 - nadvornik@suse.cz
|
||||||
|
- updated to 2.0.32:
|
||||||
|
* fixed several integer overflows [#47666]
|
||||||
|
* animated gif support
|
||||||
|
* Tue Aug 24 2004 - nadvornik@suse.cz
|
||||||
|
- updated to 2.0.28:
|
||||||
|
restored support for reading and writing GIF images
|
||||||
|
* Fri Feb 20 2004 - schwab@suse.de
|
||||||
|
- Fix missing return value.
|
||||||
|
* Thu Feb 05 2004 - nadvornik@suse.cz
|
||||||
|
- updated to 2.0.22
|
||||||
|
- fixed dangerous compiler warnings
|
||||||
|
* Sat Jan 10 2004 - adrian@suse.de
|
||||||
|
- add %%defattr and %%run_ldconfig
|
||||||
|
* Tue Jan 06 2004 - nadvornik@suse.cz
|
||||||
|
- updated to 2.0.17
|
||||||
|
- fixed to build with new freetype
|
||||||
|
* Thu Jul 24 2003 - mjancar@suse.cz
|
||||||
|
- update to 2.0.15
|
||||||
|
* Thu Feb 13 2003 - nadvornik@suse.cz
|
||||||
|
- updated to 2.0.11: speed improvements, bugfixes
|
||||||
|
* Fri Dec 13 2002 - prehak@suse.cz
|
||||||
|
- added gdImageCreateFromXpm() function prototype to gd.h
|
||||||
|
* Thu Nov 28 2002 - nadvornik@suse.cz
|
||||||
|
- updated to 2.0.8
|
||||||
|
* Tue Sep 17 2002 - ro@suse.de
|
||||||
|
- removed bogus self-provides
|
||||||
|
* Tue May 28 2002 - bk@suse.de
|
||||||
|
- gd-devel requires gd and use prefix, bindir and includedir macros
|
||||||
|
* Wed Feb 13 2002 - nadvornik@suse.cz
|
||||||
|
- used macro %%{_libdir}
|
||||||
|
* Fri Feb 01 2002 - ro@suse.de
|
||||||
|
- changed neededforbuild <libpng> to <libpng-devel-packages>
|
||||||
|
* Mon Nov 05 2001 - ro@suse.de
|
||||||
|
- fix Makefile.am for automake 1.5 (removed duplicated line)
|
||||||
|
* Fri May 25 2001 - pblaha@suse.cz
|
||||||
|
- fix include on ia64
|
||||||
|
* Thu Mar 29 2001 - ro@suse.de
|
||||||
|
- use aclocal
|
||||||
|
* Wed Mar 21 2001 - ro@suse.de
|
||||||
|
- update to 1.8.4
|
||||||
|
- use freetype2
|
||||||
|
* Mon Dec 04 2000 - pblaha@suse.cz
|
||||||
|
- move simbolick link libgd.so -> gd-devel
|
||||||
|
* Thu Nov 30 2000 - aj@suse.de
|
||||||
|
- Add suse_update_config.
|
||||||
|
* Wed Nov 15 2000 - pblaha@suse.cz
|
||||||
|
- aplied patch from perl-GD and split to gd & gd-devel
|
||||||
|
* Mon Jun 05 2000 - bubnikv@suse.cz
|
||||||
|
- updated to 1.8.3
|
||||||
|
* Fri May 12 2000 - nadvornik@suse.cz
|
||||||
|
- update to 1.8.1
|
||||||
|
- added BuildRoot
|
||||||
|
* Tue Oct 12 1999 - ro@suse.de
|
||||||
|
- added xpm and ttf support
|
||||||
|
* Sun Oct 10 1999 - ro@suse.de
|
||||||
|
- added libpng to neededforbuild
|
||||||
|
* Thu Oct 07 1999 - schwab@suse.de
|
||||||
|
- update to 1.7.3
|
||||||
|
* Mon Sep 13 1999 - bs@suse.de
|
||||||
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||||
|
* Thu Sep 09 1999 - bs@suse.de
|
||||||
|
- fixed call of Check at the end of %%install section
|
||||||
|
* Tue Jun 15 1999 - ro@suse.de
|
||||||
|
- fixed doc installation
|
||||||
|
* Tue Jun 15 1999 - ro@suse.de
|
||||||
|
- update to 1.3
|
||||||
|
* Thu Feb 05 1998 - ro@suse.de
|
||||||
|
- ready for autobuild
|
Loading…
Reference in New Issue
Block a user