]> git.pld-linux.org Git - packages/gd.git/blobdiff - gd.spec
- small fix
[packages/gd.git] / gd.spec
diff --git a/gd.spec b/gd.spec
index 292e6de8e95052d2851760fe50ef0a701044a64b..6a2398fd7c56f9387da956aa72ac3304d0feda58 100644 (file)
--- a/gd.spec
+++ b/gd.spec
@@ -1,27 +1,24 @@
 #
-# _without_gif - without GIF support (patch from http://www.rhyme.com.au/gd/)
-# _without_lzw - without LZW compression in GIF creation functions
-# _without_xpm - without XPM support (requires X11 libs)
+# Conditional build:
+%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
+Version:       2.0.28
 Release:       3
 License:       BSD-like
 Group:         Libraries
 Source0:       http://www.boutell.com/gd/http/%{name}-%{version}.tar.gz
-# Source0-md5: de82080fbac781cfcd512c3c299066d7
-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: 14bf0b840b309ae8a29934a7a0743fd3
+Patch0:                %{name}-fontpath.patch
+Patch1:                %{name}-no_ldflags_in_gdlib-config.patch
+Patch2:                %{name}-rotate_from_php.patch
 URL:           http://www.boutell.com/gd/
-%{!?_without_xpm:BuildRequires:        XFree86-devel}
-%{?_without_xpm:BuildConflicts:        XFree86-devel}
-BuildRequires: autoconf
+%{?with_xpm:BuildRequires:     XFree86-devel}
+BuildRequires: autoconf >= 2.54
 BuildRequires: automake
 BuildRequires: freetype-devel >= 2.0
 BuildRequires: libpng-devel
@@ -29,7 +26,8 @@ BuildRequires:        libjpeg-devel
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 1:1.4.3
 BuildRequires: zlib-devel
-%{!?_without_gif:Provides:     gd(gif) = %{version}}
+%{!?with_xpm:BuildConflicts:   XFree86-devel}
+Provides:      gd(gif) = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -37,12 +35,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).
-%{!?_without_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
@@ -55,12 +51,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).
-%{!?_without_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
@@ -74,13 +69,13 @@ 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}
-%{!?_without_xpm:Requires:     XFree86-devel}
+Requires:      %{name} = %{version}-%{release}
+%{?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}}
+Provides:      gd-devel(gif) = %{version}-%{release}
 
 %description devel
 This package contains the files needed for development of programs
@@ -103,8 +98,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}
-%{!?_without_gif:Provides:     gd-static(gif) = %{version}}
+Requires:      %{name}-devel = %{version}-%{release}
+Provides:      gd-static(gif) = %{version}-%{release}
 
 %description static
 This package contains static gd library.
@@ -122,8 +117,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}
-%{!?_without_gif:Provides:     gd-progs(gif) = %{version}}
+Requires:      %{name} = %{version}-%{release}
 
 %description progs
 These are utility programs supplied with gd, the image manipulation
@@ -141,19 +135,16 @@ para uso pelos programas que usam a libgd.
 
 %prep
 %setup -q
-%if 0%{!?_without_gif:1}
 %patch0 -p1
 %patch1 -p1
-%endif
 %patch2 -p1
-%patch3 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__automake}
+%{__autoheader}
 %{__autoconf}
-%{!?_without_lzw:CPPFLAGS="-DLZW_LICENCED"}
 %configure
 %{__make}
 
@@ -188,5 +179,4 @@ rm -rf $RPM_BUILD_ROOT
 %files progs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/[!g]*
-%{!?_without_gif:%attr(755,root,root) %{_bindir}/gif*}
 %attr(755,root,root) %{_bindir}/gd[!l]*
This page took 0.483937 seconds and 4 git commands to generate.