2 Summary: Python interface to GD library
3 Summary(pl.UTF-8): Interfejs do biblioteki GD dla Pythona
9 Group: Development/Languages/Python
10 # Source0Download: http://newcenturycomputers.net/projects/gdmodule.html
11 Source0: http://newcenturycomputers.net/projects/download.cgi/gdmodule-%{version}.tar.gz
12 # Source0-md5: 6a6db28a089d4caf5a921cd266a62b3d
13 Patch0: %{name}-lib64.patch
14 URL: http://newcenturycomputers.net/projects/gdmodule.html
15 BuildRequires: gd-devel >= 2.0.23
16 BuildRequires: python-devel >= 1.5
17 BuildRequires: python-modules >= 1.5
18 %pyrequires_eq python-modules
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 GD module is an interface to the GD library written by Thomas
25 It allows your code to quickly draw images complete with lines,
26 arcs, text, multiple colors, cut and paste from other images,
27 and flood fills, and write out the result as a PNG or JPEG file.
28 This is particularly useful in World Wide Web applications,
29 where PNG and JPEG are two of the formats accepted for inline
30 images by most browsers.
32 It has been extended in some ways from the original GD library.
34 %description -l pl.UTF-8
35 Moduł GD jest interfejsem do biblioteki GD autorstwa Thomasa
38 Moduł pozwala na szybkie rysowanie obrazów składających się z
39 linii, łuków, tekstu, różnych kolorów, fragmentów innych obrazków,
40 czy wypełnień. Wyprodukowany obrazek jest zapisywany do pliku PNG
41 lub JPEG. Jest to szczególnie przydatne w aplikacjach WWW, gdzie
42 PNG i JPEG są dwoma formatami obrazów składowych akceptowanymi
43 przez większość przeglądarek.
45 Moduł został również rozszerzony w kilku miejscach w stosunku do
46 oryginalnej biblioteki GD.
49 %setup -q -n gdmodule-%{version}
50 %if "%{_lib}" == "lib64"
55 CFLAGS="%{rpmcflags}" \
59 rm -rf $RPM_BUILD_ROOT
61 python Setup.py install \
63 --root=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
70 %doc README gd-ref.html
71 %{py_sitedir}/gd.py[co]
72 %attr(755,root,root) %{py_sitedir}/_gd.so