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)
19 gd library creates PNG, JPEG and WBMP images, not GIF images. This is a
20 good thing. PNG is a more compact format, and full compression is available.
21 JPEG works well with photographic images, and is still more compatible with
22 the major Web browsers than even PNG is. WBMP is intended for wireless
23 devices (not regular web browsers). Existing code will need modification to
24 call or gdImageJpeg instead of gdImageGif.
26 This library allows you to easily create and manipulate PNG, JPEG image
27 files from your C programs.
30 Biblioteka pozwalaj±ca na proste tworzenie i manipulowanie plikami
31 graficznymi w formacie PNG.
34 Summary: Development part of the GD library
35 Summary(pl): Czê¶æ biblioteki GD przeznaczona dla developerów
36 Group: Development/Libraries
37 Group(fr): Development/Librairies
38 Group(pl): Programowanie/Biblioteki
39 Requires: %{name} = %{version}
42 This package contains the files needed for development of programs
45 %description -l pl devel
46 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
50 Summary: Static GD library
51 Summary(pl): Statyczna biblioteka GD
52 Group: Development/Libraries
53 Group(fr): Development/Librairies
54 Group(pl): Programowanie/Biblioteki
55 Requires: %{name} = %{version}
58 This package contains static GD library.
60 %description -l pl static
61 Pakiet ten zawiera statyczn± bibliotekê GD.
68 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/freetype"
71 gcc -shared -o libgd.so.%{version} -Wl,-soname=libgd.so.%{shlibver} \
72 `ar t libgd.a` -L/usr/X11R6/lib -lttf -ljpeg -lpng -lz -lm
78 [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
79 mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
81 INSTALL_BIN=$RPM_BUILD_ROOT%{_bindir} \
82 INSTALL_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
83 INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir}
85 install libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/
86 ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so
88 #make DESTDIR="$RPM_BUILD_ROOT" install
90 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
92 gzip -9nf readme.txt index.html
95 rm -fr $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/*
104 %attr(755,root,root) %{_libdir}/*.so.*.*
107 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/*.so
113 %defattr(644,root,root,755)