Accepting request 330053 from home:MargueriteSu:branches:Mono:Factory

OBS-URL: https://build.opensuse.org/request/show/330053
OBS-URL: https://build.opensuse.org/package/show/Mono:Factory/libgdiplus?expand=0&rev=1
This commit is contained in:
Marguerite Su 2015-09-09 13:22:49 +00:00 committed by Git OBS Bridge
commit 55a2eb2e3f
6 changed files with 796 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

3
libgdiplus-3.12.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e61c4dc1bc2ba993e4f79029472efcf5760eb9e60eb20d9cd31f0ebe9113bfc9
size 688120

251
libgdiplus-giflib5.patch Normal file
View File

@ -0,0 +1,251 @@
From 0da7cde2a9d8248fe8f6472777d63ba5ba5d4303 Mon Sep 17 00:00:00 2001
Message-Id: <0da7cde2a9d8248fe8f6472777d63ba5ba5d4303.1428776341.git.mailaender@opensuse.org>
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= <mailaender@opensuse.org>
Date: Sat, 11 Apr 2015 18:09:13 +0200
Subject: [PATCH] fix compilation with giflib version 5
---
src/gifcodec.c | 88 ++++++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 71 insertions(+), 17 deletions(-)
diff --git a/src/gifcodec.c b/src/gifcodec.c
index e1a0697..6f8dedb 100644
--- a/src/gifcodec.c
+++ b/src/gifcodec.c
@@ -39,10 +39,6 @@ GUID gdip_gif_image_format_guid = {0xb96b3cb0U, 0x0728U, 0x11d3U, {0x9d, 0x7b, 0
#include "gifcodec.h"
-#ifdef EgifOpen
-/* giflib declares this incorrectly as EgifOpen */
-extern GifFileType *EGifOpen(void *userData, OutputFunc writeFunc);
-#endif
/* Data structure used for callback */
typedef struct
@@ -107,7 +103,7 @@ gdip_gif_inputfunc (GifFileType *gif, GifByteType *data, int len)
*/
static int
-AddExtensionBlockMono(SavedImage *New, int Len, BYTE ExtData[])
+AddExtensionBlockMono(SavedImage *New, int Function, int Len, BYTE ExtData[])
{
ExtensionBlock *ep;
@@ -123,15 +119,15 @@ AddExtensionBlockMono(SavedImage *New, int Len, BYTE ExtData[])
ep = &New->ExtensionBlocks[New->ExtensionBlockCount++];
+ ep->Function = Function;
ep->ByteCount=Len;
- ep->Bytes = (char *)GdipAlloc(ep->ByteCount);
+ ep->Bytes = (GifByteType *)GdipAlloc(ep->ByteCount);
if (ep->Bytes == NULL) {
return (GIF_ERROR);
}
if (ExtData) {
memcpy(ep->Bytes, ExtData, Len);
- ep->Function = New->Function;
}
return (GIF_OK);
@@ -168,6 +164,7 @@ static int
DGifSlurpMono(GifFileType * GifFile, SavedImage *TrailingExtensions)
{
int ImageSize;
+ int Function;
GifRecordType RecordType;
SavedImage *sp;
GifByteType *ExtData;
@@ -234,20 +231,19 @@ DGifSlurpMono(GifFileType * GifFile, SavedImage *TrailingExtensions)
}
case EXTENSION_RECORD_TYPE: {
- if (DGifGetExtension(GifFile, &temp_save.Function, &ExtData) == GIF_ERROR) {
+ if (DGifGetExtension(GifFile, &Function, &ExtData) == GIF_ERROR) {
return (GIF_ERROR);
}
while (ExtData != NULL) {
/* Create an extension block with our data */
- if (AddExtensionBlockMono(&temp_save, ExtData[0], &ExtData[1]) == GIF_ERROR) {
+ if (AddExtensionBlockMono(&temp_save, Function, ExtData[0], &ExtData[1]) == GIF_ERROR) {
return (GIF_ERROR);
}
if (DGifGetExtensionNext(GifFile, &ExtData) == GIF_ERROR) {
return (GIF_ERROR);
}
- temp_save.Function = 0;
}
break;
}
@@ -306,9 +302,17 @@ gdip_load_gif_image (void *stream, GpImage **image, BOOL from_file)
loop_counter = FALSE;
if (from_file) {
+#if GIFLIB_MAJOR >= 5
+ gif = DGifOpen(stream, &gdip_gif_fileinputfunc, NULL);
+#else
gif = DGifOpen(stream, &gdip_gif_fileinputfunc);
+#endif
} else {
+#if GIFLIB_MAJOR >= 5
+ gif = DGifOpen (stream, &gdip_gif_inputfunc, NULL);
+#else
gif = DGifOpen (stream, &gdip_gif_inputfunc);
+#endif
}
if (gif == NULL) {
@@ -583,8 +587,11 @@ gdip_load_gif_image (void *stream, GpImage **image, BOOL from_file)
}
FreeExtensionMono(&global_extensions);
+#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
+ DGifCloseFile (gif, NULL);
+#else
DGifCloseFile (gif);
-
+#endif
*image = result;
return Ok;
@@ -599,7 +606,11 @@ error:
if (gif != NULL) {
FreeExtensionMono (&global_extensions);
+#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
+ DGifCloseFile (gif, NULL);
+#else
DGifCloseFile (gif);
+#endif
}
*image = NULL;
@@ -663,9 +674,17 @@ gdip_save_gif_image (void *stream, GpImage *image, BOOL from_file)
}
if (from_file) {
+#if GIFLIB_MAJOR >= 5
+ fp = EGifOpenFileName (stream, 0, NULL);
+#else
fp = EGifOpenFileName (stream, 0);
+#endif
} else {
+#if GIFLIB_MAJOR >= 5
+ fp = EGifOpen (stream, gdip_gif_outputfunc, NULL);
+#else
fp = EGifOpen (stream, gdip_gif_outputfunc);
+#endif
}
if (!fp) {
@@ -704,8 +723,11 @@ gdip_save_gif_image (void *stream, GpImage *image, BOOL from_file)
goto error;
}
+#if GIFLIB_MAJOR >= 5
+ cmap = GifMakeMapObject(cmap_size, 0);
+#else
cmap = MakeMapObject(cmap_size, 0);
-
+#endif
pixbuf = GdipAlloc(pixbuf_size);
if (pixbuf == NULL) {
goto error;
@@ -795,8 +817,11 @@ gdip_save_gif_image (void *stream, GpImage *image, BOOL from_file)
pixbuf = pixbuf_org;
} else {
cmap_size = 256;
+#if GIFLIB_MAJOR >= 5
+ cmap = GifMakeMapObject (cmap_size, 0);
+#else
cmap = MakeMapObject (cmap_size, 0);
-
+#endif
red = GdipAlloc(pixbuf_size);
green = GdipAlloc(pixbuf_size);
blue = GdipAlloc(pixbuf_size);
@@ -826,13 +851,23 @@ gdip_save_gif_image (void *stream, GpImage *image, BOOL from_file)
v += 4;
}
}
- if (QuantizeBuffer(bitmap_data->width, bitmap_data->height, &cmap_size,
+ if (
+#if GIFLIB_MAJOR >= 5
+ GifQuantizeBuffer(
+#else
+ QuantizeBuffer(
+#endif
+ bitmap_data->width, bitmap_data->height, &cmap_size,
red, green, blue, pixbuf, cmap->Colors) == GIF_ERROR) {
goto error;
}
}
+#if GIFLIB_MAJOR >= 5
+ cmap->BitsPerPixel = GifBitSize (cmap_size);
+#else
cmap->BitsPerPixel = BitSize (cmap_size);
+#endif
cmap->ColorCount = 1 << cmap->BitsPerPixel;
if ((frame == 0) && (k == 0)) {
@@ -850,8 +885,15 @@ gdip_save_gif_image (void *stream, GpImage *image, BOOL from_file)
Buffer[0] = 1;
Buffer[1] = ptr[0];
Buffer[2] = ptr[1];
- EGifPutExtensionFirst(fp, APPLICATION_EXT_FUNC_CODE, 11, "NETSCAPE2.0");
- EGifPutExtensionLast(fp, APPLICATION_EXT_FUNC_CODE, 3, Buffer);
+#if GIFLIB_MAJOR >= 5
+ EGifPutExtensionLeader(fp, APPLICATION_EXT_FUNC_CODE);
+ EGifPutExtensionBlock(fp, 11, "NETSCAPE2.0");
+ EGifPutExtensionBlock(fp, 3, Buffer);
+ EGifPutExtensionTrailer(fp);
+#else
+ EGifPutExtensionFirst(fp, APPLICATION_EXT_FUNC_CODE, 11, "NETSCAPE2.0");
+ EGifPutExtensionLast(fp, APPLICATION_EXT_FUNC_CODE, 3, Buffer);
+#endif
}
}
@@ -903,7 +945,11 @@ gdip_save_gif_image (void *stream, GpImage *image, BOOL from_file)
pixbuf += bitmap_data->width;
}
+#if GIFLIB_MAJOR >= 5
+ GifFreeMapObject (cmap);
+#else
FreeMapObject (cmap);
+#endif
if (red != NULL) {
GdipFree (red);
}
@@ -925,13 +971,21 @@ gdip_save_gif_image (void *stream, GpImage *image, BOOL from_file)
}
}
- EGifCloseFile (fp);
+#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
+ EGifCloseFile (fp, NULL);
+#else
+ EGifCloseFile (fp);
+#endif
return Ok;
error:
if (cmap != NULL) {
+#if GIFLIB_MAJOR >= 5
+ GifFreeMapObject (cmap);
+#else
FreeMapObject (cmap);
+#endif
}
if (red != NULL) {
--
2.1.4

421
libgdiplus.changes Normal file
View File

@ -0,0 +1,421 @@
-------------------------------------------------------------------
Wed Sep 9 13:16:18 UTC 2015 - i@marguerite.su
- rename to libgdiplus and use sub-package to provide libgdiplus0
-------------------------------------------------------------------
Sat Apr 4 13:56:37 UTC 2015 - mailaender@opensuse.org
- Update to version 3.12
- Enable unit tests
-------------------------------------------------------------------
Sat Sep 6 14:45:49 UTC 2014 - mailaender@opensuse.org
- Update to version 3.8
- Removed upstreamed patch libgdiplus0-libpng15.patch
- Removed upstreamed patch use-recommended-freetype-include.patch
- Use pkgconfig build dependencies where possible
- Always use system cairo
- Fixed rpmlint error: devel-file-in-non-devel-package
-------------------------------------------------------------------
Sun Aug 31 20:53:29 UTC 2014 - jengelh@inai.de
- Update giflib patch to work with giflib7-5.1.0
-------------------------------------------------------------------
Wed Dec 11 18:54:01 UTC 2013 - hrvoje.senjan@gmail.com
- Added use-recommended-freetype-include.patch -- Freetype upstream
recommends using their macros together with ft2build include.
Positive sideeffect is that this patch makes it build with both
freetype2 2.5.1, and older version
-------------------------------------------------------------------
Mon Apr 15 09:15:31 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Fri Mar 15 15:30:21 UTC 2013 - cfarrell@suse.com
- license update: (LGPL-2.1+ or MPL-1.1) and MIT
Avoid confusion
-------------------------------------------------------------------
Wed Mar 13 09:19:49 UTC 2013 - seife+obs@b1-systems.com
- fix build with giflib-5.x (libgdiplus0-giflib5.patch)
-------------------------------------------------------------------
Sat Mar 9 07:39:31 UTC 2013 - mailaender@opensuse.org
- update to 2.10.9
* http://www.go-mono.com/archive/2.10.9
- add devel package
-------------------------------------------------------------------
Thu Aug 30 13:01:50 UTC 2012 - pgajdos@suse.com
- build also against libpng15
* libpng15.patch
-------------------------------------------------------------------
Mon Jan 16 14:20:33 UTC 2012 - cdenicolo@suse.com
- license update: LGPL-2.1+ or MPL-1.1; MIT
-------------------------------------------------------------------
Thu Jan 12 11:30:42 UTC 2012 - coolo@suse.com
- change license to be in spdx.org format
-------------------------------------------------------------------
Tue Feb 22 17:09:44 UTC 2011 - ajorgensen@novell.com
- Update to 2.10
* http://www.go-mono.com/archive/2.10
-------------------------------------------------------------------
Fri Jan 7 16:24:52 UTC 2011 - ajorgensen@novell.com
- Update to 2.8.1
* http://www.go-mono.com/archive/2.8.1
-------------------------------------------------------------------
Tue Oct 12 17:38:27 UTC 2010 - ajorgensen@novell.com
- Update to 2.8
* http://www.go-mono.com/archive/2.8
-------------------------------------------------------------------
Tue Apr 27 22:55:04 UTC 2010 - ajorgensen@novell.com
- Update to 2.6.4
* http://www.mono-project.com/Release_Notes_Mono_2.6.4
- Obsolete png patch
-------------------------------------------------------------------
Tue Apr 27 12:55:50 UTC 2010 - aj@suse.de
- Fix provides/obsoletes to have a version number.
- Do not package pkgconfig file since it's not used at all.
-------------------------------------------------------------------
Sat Apr 17 02:15:27 UTC 2010 - aj@suse.de
- Fix build with png 1.4
-------------------------------------------------------------------
Tue Mar 16 16:38:35 UTC 2010 - ajorgensen@novell.com
- Update to 2.6.2
* http://www.mono-project.com/Release_Notes_Mono_2.6.3
-------------------------------------------------------------------
Tue Jan 26 20:53:51 UTC 2010 - ajorgensen@novell.com
- Update to 2.6
* http://www.mono-project.com/Release_Notes_Mono_2.6
-------------------------------------------------------------------
Tue Aug 11 16:04:28 UTC 2009 - ajorgensen@novell.com
- Update to 2.4.2
* http://www.mono-project.com/Release_Notes_Mono_2.4.2
-------------------------------------------------------------------
Tue Mar 31 13:00:44 MDT 2009 - ajorgensen@novell.com
- Update to 2.4
* http://www.mono-project.com/Release_Notes_Mono_2.4
-------------------------------------------------------------------
Wed Sep 10 11:21:53 MDT 2008 - ajorgensen@novell.com
- Update to 2.0 RC2
* Compute intermediate start/end points correctly on an open
curve.
* Add support to compress points (skip on of two identical
consecutive points) under some special cases.
-------------------------------------------------------------------
Fri Aug 22 17:56:36 MDT 2008 - ajorgensen@novell.com
- Update to 2.0 (preview 2)
* Fixes bnc#402613, lp#246376, bnc#409672, bnc#410124, bnc#413461,
bnc#410466, bnc#410459, bnc#411454
-------------------------------------------------------------------
Tue Mar 25 11:47:05 MST 2008 - wberrier@suse.de
- Update to 1.9.1
- Fix screen re-draw artifacts in winforms (bnc#388520)
- Support for limited color displays
-------------------------------------------------------------------
Tue Mar 25 11:47:05 MST 2008 - wberrier@suse.de
- Update to 1.9
-Disable internal cairo png support, since libgdiplus uses it's
own. Saves about 26kb of code size.
-Fixes related to gdi+ on MacOS.
- Call ldconfig directly instead of invoking a shell.
-------------------------------------------------------------------
Mon Jan 14 11:47:05 MST 2008 - wberrier@suse.de
- Renamed package to libgdiplus0 to follow suse lib packaging
standards
- Update to 1.2.6
-Internal Cairo updated to 1.4.10
-Special case for handling path/region excludes from infinity
-Added GdipCloneFontFamily function
-TextureBrush now supports transparent bitmaps
-------------------------------------------------------------------
Fri Aug 3 16:47:05 CEST 2007 - wberrier@suse.de
- Update to 1.2.5
-Internal Cairo updated to 1.4.6
-header, types and enums names are now much closer to MS GDI+
-support for 2bpp PNG and fixes for 4bpp PNG image palettes
-support for interlaced GIF bitmaps
-support for ColorMatrixFlag and Gray ColorMatrix in ImageAttributes
-Implemented GdipDrawImagePointsRect[I] functions
-Multiple printing fixes (e.g. text size/position)
- Add libexif buildrequires
-------------------------------------------------------------------
Fri Jul 6 00:02:51 CEST 2007 - wberrier@suse.de
- Fix cairo build (new compiler?) withe ctype patch
(http://bugs.freedesktop.org/show_bug.cgi?id=10989)
-------------------------------------------------------------------
Tue Jun 5 12:23:53 MST 2007 - wberrier@novell.com
- add ldconfig for post/postun
- minor spec file cleanups
- fPIC is already enabled by default, and glitz is disabled
by default, don't bother adding options for these.
- also provides libgdiplus-devel
- update to 1.2.4
-update internal cairo to 1.4.2, which offers better performance
-symbols exports have been cleaned.
This removes the possible mixup between gtk+/cairo and
libgdiplus/cairo in newer distros
-Initial Metafile support (emf & wmf)
-------------------------------------------------------------------
Fri Apr 13 19:18:53 CET 2007 - wberrier@novell.com
- add %debug_package so debug packages get created
-------------------------------------------------------------------
Wed Mar 28 20:48:53 CET 2007 - wberrier@novell.com
- Adapt for suse build service
-------------------------------------------------------------------
Fri Mar 2 01:21:53 CET 2007 - wberrier@suse.de
- Update to 1.2.3
-Alpha values for ColorMatrix are now correctly applied and 40% faster
-PNG images with alpha channel are now displayed correctly
-New ICON format decoder (as transparent images)
-15/16bpp bitmaps are now supported by the BMP decoder
-------------------------------------------------------------------
Sat Dec 2 20:52:45 CET 2006 - wberrier@suse.de
- Update to 1.2.2 (Fate #301111)
-upgrade internal cairo to 1.2.6
-------------------------------------------------------------------
Sat Oct 21 02:20:09 CEST 2006 - wberrier@suse.de
- Update to 1.1.18
-Update to cairo 1.2.4
-fixed to pass S.D. unit tests on big endian archs
-lots of rendering and parameter bug fixes
-------------------------------------------------------------------
Wed Aug 30 19:14:14 CEST 2006 - wberrier@suse.de
- Update to 1.1.17
- upgraded Cairo stack (from 1.0 to 1.2)
- Windows.Forms: Printing is now supported.
-------------------------------------------------------------------
Mon Jul 31 21:18:38 CEST 2006 - wberrier@suse.de
- Update to 1.1.16.1.
- update internal cairo to 1.2
- Region operations: Added GdipCombineRegionPath function to allow
using binary operations (union, intersection, complement,
exclude and xor) on non-rectangular regions
- Added GdipFlattenPath function (to convert curves into lines)
- Added support for region serialization (i.e. GdipGetRegionData,
GdipGetRegionDataSize and GdipCreateRegionRgnData functions)
- Better, but still not perfect, clipping support
- TextureBrush is now working again
- Bug Fixes: 75063,76193,76907,77129,77247,77829,77976,78159,78179,
78181,78185,78213,78237,78284,78336,78383,78478,78721,78742
-------------------------------------------------------------------
Sat Mar 25 19:08:48 CET 2006 - wberrier@suse.de
-Update to 1.1.13.5 (Bug fix update from trunk)
-Avoid drawing zero length strings, fixes
crash (77699);
-image.c: Correct rendering of patterns (77438), cleanup all
resources after being disposed to avoid double frees.
-Fixes without bug numbers (ongoing bug fixing of third
party commercial components to run on Mono):
-Gradient brush fixes.
-font.c: Proper disposing of fonts to avoid leaks.
-lineargradientbrush.c: fix semantics to match GDI+.
-Memory leak fixes from running valgrind on the code.
-Added parameter validation everywhere to avoid crashes from
missuses: raises an error instead of a segfault.
-pngcodec.c: Handle saving 8:8:8 files without an alpha channel.
-------------------------------------------------------------------
Wed Mar 1 03:09:27 CET 2006 - wberrier@suse.de
- Update to 1.1.13.4. Fixes bugs (as well as several other updates):
-144798 (Novell Bugzilla) undefined C code
-77408
-77428
-------------------------------------------------------------------
Wed Jan 25 21:37:28 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Jan 20 05:26:26 CET 2006 - wberrier@suse.de
- Update to 1.1.13.2
-------------------------------------------------------------------
Fri Jan 6 21:09:48 CET 2006 - wberrier@suse.de
- Update to 1.1.13
-------------------------------------------------------------------
Mon Dec 19 18:55:08 CET 2005 - wberrier@suse.de
- Obsolete libgdiplus-devel (since it was merged back in) (Bug #131839)
-------------------------------------------------------------------
Fri Dec 16 00:10:18 CET 2005 - wberrier@suse.de
- Update to 1.1.11
-------------------------------------------------------------------
Mon Nov 21 18:52:12 CET 2005 - wberrier@suse.de
- Cleaned up package deps and patched for new gcc4 which broke cairo
-------------------------------------------------------------------
Thu Nov 10 21:36:37 CET 2005 - wberrier@suse.de
- Update to 1.1.10, removed patches that made it upstream
-------------------------------------------------------------------
Fri Oct 7 23:19:04 CEST 2005 - wberrier@suse.de
- Update to 1.1.9.2, added patch for printf statements
-------------------------------------------------------------------
Wed Sep 21 18:56:50 CEST 2005 - wberrier@suse.de
- Remove .a, and .la from package [116295 reopened]
-------------------------------------------------------------------
Sat Sep 17 02:03:26 CEST 2005 - wberrier@suse.de
- remove -devel package [bugzilla#116295]
-------------------------------------------------------------------
Tue Aug 2 01:39:34 CEST 2005 - ro@suse.de
- update to 1.1.8
-------------------------------------------------------------------
Wed Apr 20 02:44:59 CEST 2005 - ro@suse.de
- fix sentinel warnings
-------------------------------------------------------------------
Mon Feb 21 08:19:30 CET 2005 - clahey@suse.de
- Update to 1.1.4.
-------------------------------------------------------------------
Tue Feb 1 02:32:17 CET 2005 - ro@suse.de
- update to svn version for current cairo
-------------------------------------------------------------------
Tue Feb 1 02:04:51 CET 2005 - ro@suse.de
- use mono-devel-packages in neededforbuild
- use libgif instead of libungif
-------------------------------------------------------------------
Mon Jan 17 12:49:32 CET 2005 - ro@suse.de
- added c++ to neededforbuild (for libtiff)
-------------------------------------------------------------------
Tue Jan 11 01:16:25 CET 2005 - ro@suse.de
- update to 1.1.3
-------------------------------------------------------------------
Sun Nov 28 23:34:41 CET 2004 - ro@suse.de
- update to 1.1.2
-------------------------------------------------------------------
Sun Nov 28 22:37:04 CET 2004 - ro@suse.de
- run autoreconf to fix outdated libtool macros
-------------------------------------------------------------------
Thu Sep 16 02:09:48 CEST 2004 - ro@suse.de
- update to 1.0.1 bugfix release
-------------------------------------------------------------------
Fri Jul 2 14:13:19 CEST 2004 - ro@suse.de
- update to 1.0 version
-------------------------------------------------------------------
Mon Jun 21 20:44:06 CEST 2004 - clahey@suse.de
- Updated to 0.9.
-------------------------------------------------------------------
Wed May 26 12:49:00 CEST 2004 - ro@suse.de
- added libpng to neededforbuild
-------------------------------------------------------------------
Wed May 19 20:17:22 CEST 2004 - clahey@suse.de
- Updated to 0.6.
-------------------------------------------------------------------
Tue Apr 20 14:35:10 CEST 2004 - uli@suse.de
- initial package

97
libgdiplus.spec Normal file
View File

@ -0,0 +1,97 @@
#
# spec file for package libgdiplus
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define soname 0
Name: libgdiplus
Version: 3.12
Release: 0
Summary: Open Source Implementation of the GDI+ API
License: (LGPL-2.1+ or MPL-1.1) and MIT
Group: Development/Libraries/Mono
Url: https://github.com/mono/libgdiplus
Source: http://download.mono-project.com/sources/%{name}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM libgdiplus0-giflib5.patch https://github.com/mono/libgdiplus/pull/32
Patch: libgdiplus-giflib5.patch
BuildRequires: giflib-devel
BuildRequires: libjpeg-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xrender)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Mono library that provide a GDI+ comptible API on non-Windows
operating systems.
%package -n libgdiplus%{soname}
Summary: Open Source Implementation of the GDI+ API
Group: System/Libraries
%description -n libgdiplus%{soname}
Mono library that provide a GDI+ comptible API on non-Windows
operating systems.
%package devel
Summary: Development files for libgdiplus
Group: Development/Libraries/C and C++
Requires: libgdiplus%{soname} = %{version}
%description devel
This library is part of the Mono project. It is required when
using System.Drawing.
%prep
%setup -q
%patch -p1
sed -i -e 's:ungif:gif:g' configure || die
%build
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_libdir}/%{name}.{a,la}
%check
make %{?_smp_mflags} check
%post -n libgdiplus%{soname} -p /sbin/ldconfig
%postun -n libgdiplus%{soname} -p /sbin/ldconfig
%files -n libgdiplus%{soname}
%defattr(-,root,root)
%{_libdir}/libgdiplus.so.*
%doc AUTHORS COPYING ChangeLog* NEWS README
%files devel
%defattr(-,root,root)
%{_libdir}/libgdiplus.so
%{_libdir}/pkgconfig/libgdiplus.pc
%changelog