]> git.pld-linux.org Git - packages/python-gd.git/blame - python-gd.spec
- tabs in preamble
[packages/python-gd.git] / python-gd.spec
CommitLineData
3779ad20 1%define module gd
db05690f 2Summary: Python interface to GD library
14b58386 3Summary(pl.UTF-8): Interfejs do biblioteki GD dla Pythona
db05690f 4Name: python-%{module}
5bc2a1c1
AF
5Version: 0.56
6Release: 1
db05690f
MC
7Epoch: 1
8License: BSD-like
82b89c35 9Group: Development/Languages/Python
42f51281 10# Source0Download: http://newcenturycomputers.net/projects/gdmodule.html
db05690f 11Source0: http://newcenturycomputers.net/projects/download.cgi/gdmodule-%{version}.tar.gz
5bc2a1c1 12# Source0-md5: 6a6db28a089d4caf5a921cd266a62b3d
f70cae7e 13Patch0: %{name}-lib64.patch
d26c823e 14URL: http://newcenturycomputers.net/projects/gdmodule.html
5bc2a1c1 15BuildRequires: gd-devel >= 2.0.23
db05690f
MC
16BuildRequires: python-devel >= 1.5
17BuildRequires: python-modules >= 1.5
ff2e9207 18%pyrequires_eq python-modules
db05690f 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
765e211f 20
21%description
db05690f
MC
22GD module is an interface to the GD library written by Thomas
23Bouttel.
765e211f 24
db05690f
MC
25It allows your code to quickly draw images complete with lines,
26arcs, text, multiple colors, cut and paste from other images,
27and flood fills, and write out the result as a PNG or JPEG file.
28This is particularly useful in World Wide Web applications,
29where PNG and JPEG are two of the formats accepted for inline
30images by most browsers.
765e211f 31
32It has been extended in some ways from the original GD library.
33
f7181002
JR
34%description -l pl.UTF-8
35Moduł GD jest interfejsem do biblioteki GD autorstwa Thomasa
db05690f 36Bouttela.
765e211f 37
f7181002
JR
38Moduł pozwala na szybkie rysowanie obrazów składających się z
39linii, łuków, tekstu, różnych kolorów, fragmentów innych obrazków,
40czy wypełnień. Wyprodukowany obrazek jest zapisywany do pliku PNG
41lub JPEG. Jest to szczególnie przydatne w aplikacjach WWW, gdzie
42PNG i JPEG są dwoma formatami obrazów składowych akceptowanymi
43przez większość przeglądarek.
765e211f 44
f7181002 45Moduł został również rozszerzony w kilku miejscach w stosunku do
db05690f 46oryginalnej biblioteki GD.
765e211f 47
48%prep
db05690f 49%setup -q -n gdmodule-%{version}
f70cae7e 50%if "%{_lib}" == "lib64"
51%patch0 -p1
52%endif
765e211f 53
54%build
dc257426
JB
55CFLAGS="%{rpmcflags}" \
56python Setup.py build
765e211f 57
58%install
82b89c35 59rm -rf $RPM_BUILD_ROOT
dc257426
JB
60
61python Setup.py install \
db05690f
MC
62 --optimize=2 \
63 --root=$RPM_BUILD_ROOT
82b89c35 64
765e211f 65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
82b89c35 69%defattr(644,root,root,755)
db05690f 70%doc README gd-ref.html
dc257426 71%{py_sitedir}/gd.py[co]
4a6dac2c 72%attr(755,root,root) %{py_sitedir}/_gd.so
This page took 0.067709 seconds and 4 git commands to generate.