]> git.pld-linux.org Git - packages/python-gd.git/blob - python-gd.spec
- converted to UTF-8
[packages/python-gd.git] / python-gd.spec
1 %define         module gd
2 Summary:        Python interface to GD library
3 Summary(pl.UTF-8):   Interfejs do biblioteki GD dla Pythona
4 Name:           python-%{module}
5 Version:        0.56
6 Release:        1
7 Epoch:          1
8 License:        BSD-like
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)
20
21 %description
22 GD module is an interface to the GD library written by Thomas
23 Bouttel.
24
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.
31
32 It has been extended in some ways from the original GD library.
33
34 %description -l pl.UTF-8
35 Moduł GD jest interfejsem do biblioteki GD autorstwa Thomasa
36 Bouttela.
37
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.
44
45 Moduł został również rozszerzony w kilku miejscach w stosunku do
46 oryginalnej biblioteki GD.
47
48 %prep
49 %setup -q -n gdmodule-%{version}
50 %if "%{_lib}" == "lib64"
51 %patch0 -p1
52 %endif
53
54 %build
55 CFLAGS="%{rpmcflags}" \
56 python Setup.py build
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 python Setup.py install \
62         --optimize=2 \
63         --root=$RPM_BUILD_ROOT
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
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
This page took 0.071143 seconds and 3 git commands to generate.