]> git.pld-linux.org Git - packages/gd.git/blobdiff - gd.spec
- rel 8
[packages/gd.git] / gd.spec
diff --git a/gd.spec b/gd.spec
index decfa567a8fb0e215aeb79a1400e598d75d7b27f..11fa341cfb88d37e9bbc42e6612937d44d4ff9a7 100644 (file)
--- a/gd.spec
+++ b/gd.spec
@@ -1,36 +1,37 @@
 #
-%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)
+# Conditional build:
+%bcond_without fontconfig      # without fontconfig support
+%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.21
-Release:       1
+Version:       2.0.33
+Release:       8
 License:       BSD-like
 Group:         Libraries
 Source0:       http://www.boutell.com/gd/http/%{name}-%{version}.tar.gz
-# Source0-md5: 3134158635f5048dba99281c6b712a54
-# 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
+# Source0-md5: be0a6d326cd8567e736fbc75df0a5c45
+Patch0:                %{name}-fontpath.patch
+Patch1:                %{name}-rotate_from_php.patch
+Patch2:                %{name}-graphviz.patch
+Patch3:                %{name}-SetAAPixel.patch
+Patch4:                %{name}-security.patch
 URL:           http://www.boutell.com/gd/
-%{?with_xpm:BuildRequires:     XFree86-devel}
-%{!?with_xpm:BuildConflicts:   XFree86-devel}
 BuildRequires: autoconf >= 2.54
 BuildRequires: automake
+%{?with_fontconfig:BuildRequires:      fontconfig-devel}
 BuildRequires: freetype-devel >= 2.0
+BuildRequires: gettext-devel
 BuildRequires: libpng-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 1:1.4.3
+%{?with_xpm:BuildRequires:     xorg-lib-libXpm}
 BuildRequires: zlib-devel
-%{?with_gif:Provides:  gd(gif) = %{version}}
+Provides:      gd(gif) = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,12 +39,10 @@ gd is the image manipulating library. It was created to allow graphs,
 charts and the like to be generated on the fly for use on the World
 wide Web, but is useful for any application in which custom images are
 useful. It is not a paint program; it is a library. gd library creates
-PNG, JPEG and WBMP images. This is a good thing. PNG is a more compact
-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).
-%{?with_gif:This version has additional GIF images support.}
+PNG, JPEG, GIF and WBMP images. PNG is a more compact 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).
 
 %description -l es
 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
@@ -56,12 +55,11 @@ gd to biblioteka do obr
 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
 ale mo¿e byæ przydatna tak¿e dla ka¿dej aplikacji tworz±cej w³asne
 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
-formatach PNG, JPEG i WBMP. PNG jest zwartym formatem z bezstratn±
-kompresj±. JPEG dobrze nadaje siê do obrazów fotograficznych i jest
-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).
-%{?with_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
+formatach PNG, JPEG, GIF i WBMP. PNG jest zwartym formatem z
+bezstratn± kompresj±. JPEG dobrze nadaje siê do obrazów
+fotograficznych i jest 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).
 
 %description -l pt_BR
 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
@@ -75,13 +73,14 @@ Summary(es):        Archivos de inclusi
 Summary(pl):   Czê¶æ biblioteki GD przeznaczona dla developerów
 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:      %{name} = %{version}-%{release}
+Requires:      fontconfig-devel
 Requires:      freetype-devel >= 2.0
 Requires:      libjpeg-devel
 Requires:      libpng-devel
+%{?with_xpm:Requires:  xorg-lib-libXpm}
 Requires:      zlib-devel
-%{?with_gif:Provides:  gd-devel(gif) = %{version}-%{release}}
+Provides:      gd-devel(gif) = %{version}-%{release}
 
 %description devel
 This package contains the files needed for development of programs
@@ -104,8 +103,8 @@ Summary:    Static GD library
 Summary(pl):   Statyczna biblioteka GD
 Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com libgd
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
-%{?with_gif:Provides:  gd-static(gif) = %{version}-%{release}}
+Requires:      %{name}-devel = %{version}-%{release}
+Provides:      gd-static(gif) = %{version}-%{release}
 
 %description static
 This package contains static gd library.
@@ -123,8 +122,7 @@ Summary(es):        Programas utilitarios libgd
 Summary(pl):   Narzêdzia u¿ywaj±ce libgd
 Summary(pt_BR):        Programas utilitários libgd
 Group:         Applications/Graphics
-Requires:      %{name} = %{version}
-%{?with_gif:Provides:  gd-progs(gif) = %{version}-%{release}}
+Requires:      %{name} = %{version}-%{release}
 
 %description progs
 These are utility programs supplied with gd, the image manipulation
@@ -142,17 +140,24 @@ para uso pelos programas que usam a libgd.
 
 %prep
 %setup -q
-%{?with_gif:%patch0 -p1}
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
+
+# hack to avoid inclusion of -s in --ldflags
+%{__perl} -pi -e 's,\@LDFLAGS\@,,g' config/gdlib-config.in
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__automake}
+%{__autoheader}
 %{__autoconf}
-%{?with_lzw:CPPFLAGS="-DLZW_LICENCED"}
-%configure
+%configure \
+       %{!?with_fontconfig:--without-fontconfig} \
+       %{!?with_xpm:--without-xpm}
 %{__make}
 
 %install
@@ -185,6 +190,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files progs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/[!g]*
-%{?with_gif:%attr(755,root,root) %{_bindir}/gif*}
-%attr(755,root,root) %{_bindir}/gd[!l]*
+%attr(755,root,root) %{_bindir}/*
+%exclude %{_bindir}/gdlib-config
This page took 0.042772 seconds and 4 git commands to generate.