]> git.pld-linux.org Git - packages/gd.git/blobdiff - gd.spec
- fixed close bug, updated for 2.0.21, introduced gdImageCreateFromGifPtr
[packages/gd.git] / gd.spec
diff --git a/gd.spec b/gd.spec
index c78bbe77c9d64a8dad12f467b363198e4c9f9bc3..7b1f4314cf6bd291892d7520362bed7a9a98c183 100644 (file)
--- a/gd.spec
+++ b/gd.spec
@@ -1,23 +1,29 @@
 #
-# _without_gif - without GIF support (patch from http://www.rhyme.com.au/gd/)
-# _without_lzw - without LZW compression in GIF creation functions
+%bcond_without gif     # without GIF support (patch from http://www.rhyme.com.au/gd/)
+%bcond_without lzw     # without LZW compression in GIF creation functions
+%bcond_without xpm     # without XPM support (requires X11 libs)
 #
 Summary:       Library for PNG, JPEG creation
 Summary(es):   Biblioteca para manipulación de imágenes
 Summary(pl):   Biblioteka do tworzenia grafiki w formacie PNG, JPEG
 Summary(pt_BR):        Biblioteca para manipulação de imagens
 Name:          gd
-Version:       2.0.12
-Release:       2
+Version:       2.0.19
+Release:       1
 License:       BSD-like
 Group:         Libraries
 Source0:       http://www.boutell.com/gd/http/%{name}-%{version}.tar.gz
-Patch0:                http://downloads.rhyme.com.au/gd/patch_gd2.0.12_gif_20030401.gz
-Patch1:                %{name}-gif-am.patch
-Patch2:                %{name}-fontpath.patch
-Patch3:                %{name}-no_ldflags_in_gdlib-config.patch
+# Source0-md5: ff9d6cb5c40a387eeccf0834df506f19
+# based on:
+#Patch0:               http://downloads.rhyme.com.au/gd/patch_gd2.0.15_gif_030801.gz
+Patch0:                %{name}-gif.patch
+Patch1:                %{name}-fontpath.patch
+Patch2:                %{name}-no_ldflags_in_gdlib-config.patch
+Patch3:                %{name}-FreeFontCache-alias.patch
 URL:           http://www.boutell.com/gd/
-BuildRequires: autoconf
+%{?with_xpm:BuildRequires:     XFree86-devel}
+%{!?with_xpm:BuildConflicts:   XFree86-devel}
+BuildRequires: autoconf >= 2.54
 BuildRequires: automake
 BuildRequires: freetype-devel >= 2.0
 BuildRequires: libpng-devel
@@ -25,7 +31,7 @@ BuildRequires:        libjpeg-devel
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 1:1.4.3
 BuildRequires: zlib-devel
-%{!?_without_gif:Provides:     gd(gif) = %{version}}
+%{?with_gif:Provides:  gd(gif) = %{version}}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,7 +44,7 @@ format, and full compression is available. JPEG works well with
 photographic images, and is still more compatible with the major Web
 browsers than even PNG is. WBMP is intended for wireless devices (not
 regular web browsers).
-%{!?_without_gif:This version has additional GIF images support.}
+%{?with_gif:This version has additional GIF images support.}
 
 %description -l es
 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
@@ -56,7 +62,7 @@ kompresj
 obs³ugiwany nawet przez wiêcej przegl±darek WWW ni¿ PNG. WBMP jest
 przeznaczony dla urz±dzeñ bezprzewodowych (a nie zwyk³ych przegl±darek
 WWW).
-%{!?_without_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
+%{?with_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
 
 %description -l pt_BR
 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
@@ -71,11 +77,12 @@ Summary(pl):        Cz
 Summary(pt_BR):        Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
 Group:         Development/Libraries
 Requires:      %{name} = %{version}
+%{?with_xpm:Requires:  XFree86-devel}
 Requires:      freetype-devel >= 2.0
 Requires:      libjpeg-devel
 Requires:      libpng-devel
 Requires:      zlib-devel
-%{!?_without_gif:Provides:     gd-devel(gif) = %{version}}
+%{?with_gif:Provides:  gd-devel(gif) = %{version}-%{release}}
 
 %description devel
 This package contains the files needed for development of programs
@@ -99,7 +106,7 @@ Summary(pl): Statyczna biblioteka GD
 Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com libgd
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}
-%{!?_without_gif:Provides:     gd-static(gif) = %{version}}
+%{?with_gif:Provides:  gd-static(gif) = %{version}-%{release}}
 
 %description static
 This package contains static gd library.
@@ -118,7 +125,7 @@ Summary(pl):        Narz
 Summary(pt_BR):        Programas utilitários libgd
 Group:         Applications/Graphics
 Requires:      %{name} = %{version}
-%{!?_without_gif:Provides:     gd-progs(gif) = %{version}}
+%{?with_gif:Provides:  gd-progs(gif) = %{version}-%{release}}
 
 %description progs
 These are utility programs supplied with gd, the image manipulation
@@ -138,8 +145,8 @@ para uso pelos programas que usam a libgd.
 %setup -q
 %if 0%{!?_without_gif:1}
 %patch0 -p1
-%patch1 -p1
 %endif
+%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 
@@ -148,7 +155,7 @@ para uso pelos programas que usam a libgd.
 %{__aclocal}
 %{__automake}
 %{__autoconf}
-%{!?_without_lzw:CPPFLAGS="-DLZW_LICENCED"}
+%{?with_lzw:CPPFLAGS="-DLZW_LICENCED"}
 %configure
 %{__make}
 
This page took 0.146448 seconds and 4 git commands to generate.