]> 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 aa5b6c12270e01a70f8e97e7ead6ca22221db4f7..11fa341cfb88d37e9bbc42e6612937d44d4ff9a7 100644 (file)
--- a/gd.spec
+++ b/gd.spec
@@ -1,39 +1,37 @@
 #
 # Conditional build:
-%bcond_without gif     # without GIF support (based on 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)
+%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.23
-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: 3bcd6daef3eb7b31ddc68a7d54b98c15
-# based on:
-#Patch0:               http://downloads.rhyme.com.au/gd/patch_gd2.0.15_gif_030801.gz
-# current version is patch_gd2.0.21_gif_040120.gz, but it doesn't support
-# gdImageCreateFromGifPtr() and still has close bug
-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
@@ -41,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
@@ -59,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
@@ -79,12 +74,13 @@ Summary(pl):        Cz
 Summary(pt_BR):        Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-%{?with_xpm:Requires:  XFree86-devel}
+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
@@ -108,7 +104,7 @@ Summary(pl):        Statyczna biblioteka GD
 Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com libgd
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
-%{?with_gif:Provides:  gd-static(gif) = %{version}-%{release}}
+Provides:      gd-static(gif) = %{version}-%{release}
 
 %description static
 This package contains static gd library.
@@ -127,7 +123,6 @@ Summary(pl):        Narz
 Summary(pt_BR):        Programas utilitários libgd
 Group:         Applications/Graphics
 Requires:      %{name} = %{version}-%{release}
-%{?with_gif:Provides:  gd-progs(gif) = %{version}-%{release}}
 
 %description progs
 These are utility programs supplied with gd, the image manipulation
@@ -145,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
@@ -188,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.058421 seconds and 4 git commands to generate.