]> git.pld-linux.org Git - packages/gd.git/blobdiff - gd.spec
- updated for 2.0.26
[packages/gd.git] / gd.spec
diff --git a/gd.spec b/gd.spec
index 878e10b9d019764c7b5aa6119c0cd224e66476be..aa5b6c12270e01a70f8e97e7ead6ca22221db4f7 100644 (file)
--- a/gd.spec
+++ b/gd.spec
@@ -1,36 +1,40 @@
 #
-# _without_gif - without GIF support (patch from http://www.rhyme.com.au/gd/)
-# _without_lzw - without LZW compression in GIF creation functions
+# 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)
 #
 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.1
-Release:       7
+Version:       2.0.23
+Release:       1
 License:       BSD-like
 Group:         Libraries
-Source0:       http://www.boutell.com/ftp-materials/boutell/gd/%{name}-%{version}.tar.gz
-Patch0:                %{name}-ac_am.patch
-Patch1:                http://downloads.rhyme.com.au/gd/patch_%{name}%{version}_gif_20011107.gz
-Patch2:                %{name}-gif-acam.patch
-Patch3:                %{name}-fontpath.patch
-Patch4:                %{name}-gdTiled-segv.patch
-Patch5:                %{name}-fixes.patch
+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
 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
 BuildRequires: libjpeg-devel
 BuildRequires: libtiff-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 1:1.4.3
 BuildRequires: zlib-devel
+%{?with_gif:Provides:  gd(gif) = %{version}}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%{!?_without_gif:Provides:     gd(gif) = %{version}}
-
-%define                shlibver        %(echo %{version} | cut -f-2 -d.)
 
 %description
 gd is the image manipulating library. It was created to allow graphs,
@@ -42,7 +46,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
@@ -60,7 +64,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
@@ -74,12 +78,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}
+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}}
+%{?with_gif:Provides:  gd-devel(gif) = %{version}-%{release}}
 
 %description devel
 This package contains the files needed for development of programs
@@ -102,8 +107,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}
+%{?with_gif:Provides:  gd-static(gif) = %{version}-%{release}}
 
 %description static
 This package contains static gd library.
@@ -121,8 +126,8 @@ 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}
+%{?with_gif:Provides:  gd-progs(gif) = %{version}-%{release}}
 
 %description progs
 These are utility programs supplied with gd, the image manipulation
@@ -140,19 +145,16 @@ para uso pelos programas que usam a libgd.
 
 %prep
 %setup -q
-%patch0 -p1
-%{!?_without_gif:%patch1 -p1}
-%{!?_without_gif:%patch2 -p1}
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
+%{?with_gif:%patch0 -p1}
+%patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__automake}
 %{__autoconf}
-%{!?_without_lzw:CPPFLAGS="-DLZW_LICENCED"}
+%{?with_lzw:CPPFLAGS="-DLZW_LICENCED"}
 %configure
 %{__make}
 
@@ -170,12 +172,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc readme.txt
+%doc COPYING index.html
 %attr(755,root,root) %{_libdir}/*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%doc index.html
+%attr(755,root,root) %{_bindir}/gdlib-config
 %attr(755,root,root) %{_libdir}/*.so
 %{_libdir}/*.la
 %{_includedir}/*
@@ -186,4 +188,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files progs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/[!g]*
+%{?with_gif:%attr(755,root,root) %{_bindir}/gif*}
+%attr(755,root,root) %{_bindir}/gd[!l]*
This page took 0.034049 seconds and 4 git commands to generate.