1 Summary: Library for PNG creation
2 Summary(pl): Biblioteka do tworzenia PNGów
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 This library allows you to easily create and manipulate PNG image
20 files from your C programs.
23 Biblioteka pozwalaj±ca na proste tworzenie i manipulowanie plikami
24 graficznymi w formacie PNG.
27 Summary: Development part of the GD library
28 Summary(pl): Czê¶æ biblioteki GD przeznaczona dla developerów.
29 Group: Development/Libraries
30 Group(fr): Development/Librairies
31 Group(pl): Programowanie/Biblioteki
32 Requires: %{name} = %{version}
35 This package contains the files needed for development of programs
38 %description -l pl devel
39 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
43 Summary: Static GD library
44 Summary(pl): Statyczna biblioteka GD.
45 Group: Development/Libraries
46 Group(fr): Development/Librairies
47 Group(pl): Programowanie/Biblioteki
48 Requires: %{name} = %{version}
51 This package contains static GD library.
53 %description -l pl static
54 Pakiet ten zawiera statyczn± bibliotekê GD.
61 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/freetype"
64 gcc -shared -o libgd.so.%{version} -Wl,-soname=libgd.so.%{shlibver} \
65 `ar t libgd.a` -L/usr/X11R6/lib -lttf -ljpeg -lpng -lz -lm
71 [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
72 mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
74 INSTALL_BIN=$RPM_BUILD_ROOT%{_bindir} \
75 INSTALL_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
76 INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir}
77 install -m 755 libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/
78 ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so
81 #make DESTDIR="$RPM_BUILD_ROOT" install
83 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
85 gzip -9nf readme.txt index.html
88 [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
101 %defattr(644,root,root,755)
108 %defattr(644,root,root,755)