1 Summary: Library for PNG, JPEG creation
2 Summary(pl): Biblioteka do tworzenia grafiki w formacie PNG, JPEG
10 Source0: ftp://ftp.boutell.com/pub/boutell/gd/%{name}-%{version}.tar.gz
12 URL: http://www.boutell.com/gd/
13 BuildRequires: zlib-devel
14 BuildRequires: libpng-devel
15 BuildRequires: freetype-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define shlibver %(echo %{version} | cut -f-2 -d.)
21 gd library creates PNG, JPEG and WBMP images, not GIF images. This is a
22 good thing. PNG is a more compact format, and full compression is available.
23 JPEG works well with photographic images, and is still more compatible with
24 the major Web browsers than even PNG is. WBMP is intended for wireless
25 devices (not regular web browsers). Existing code will need modification to
26 call or gdImageJpeg instead of gdImageGif.
28 This library allows you to easily create and manipulate PNG, JPEG image
29 files from your C programs.
32 Biblioteka pozwalaj±ca na proste tworzenie i manipulowanie plikami
33 graficznymi w formacie PNG.
36 Summary: Development part of the GD library
37 Summary(pl): Czê¶æ biblioteki GD przeznaczona dla developerów
38 Group: Development/Libraries
39 Group(fr): Development/Librairies
40 Group(pl): Programowanie/Biblioteki
41 Requires: %{name} = %{version}
44 This package contains the files needed for development of programs
47 %description -l pl devel
48 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
52 Summary: Static GD library
53 Summary(pl): Statyczna biblioteka GD
54 Group: Development/Libraries
55 Group(fr): Development/Librairies
56 Group(pl): Programowanie/Biblioteki
57 Requires: %{name} = %{version}
60 This package contains static GD library.
62 %description -l pl static
63 Pakiet ten zawiera statyczn± bibliotekê GD.
70 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/freetype"
74 gcc -shared -o libgd.so.%{version} -Wl,-soname=libgd.so.%{shlibver} \
75 `ar t libgd.a` -L/usr/X11R6/lib -lttf -ljpeg -lpng -lz -lm
80 [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
81 mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
83 INSTALL_BIN=$RPM_BUILD_ROOT%{_bindir} \
84 INSTALL_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
85 INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir}
87 install libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/
88 ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so
90 #make DESTDIR="$RPM_BUILD_ROOT" install
92 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
94 gzip -9nf readme.txt index.html
97 rm -fr $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/*
106 %attr(755,root,root) %{_libdir}/*.so.*.*
109 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/*.so
115 %defattr(644,root,root,755)