]> git.pld-linux.org Git - packages/gd.git/blob - gd.spec
88888322fd57e2ae630df0489d6c9f2067e47ba7
[packages/gd.git] / gd.spec
1 Summary:        Library for PNG, JPEG creation
2 Summary(pl):    Biblioteka do tworzenia grafiki w formacie PNG, JPEG
3 Name:           gd
4 Version:        2.0.1
5 Release:        1
6 License:        BSD-style
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Source0:        http://www.boutell.com/ftp-materials/boutell/gd/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-ac_am.patch
14 URL:            http://www.boutell.com/gd/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  zlib-devel
18 BuildRequires:  libpng-devel
19 BuildRequires:  libjpeg-devel
20 BuildRequires:  libtiff-devel
21 BuildRequires:  freetype-devel >= 2.0
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define shlibver %(echo %{version} | cut -f-2 -d.)
25
26 %description
27 gd library creates PNG, JPEG and WBMP images, not GIF images. This is
28 a good thing. PNG is a more compact format, and full compression is
29 available. JPEG works well with photographic images, and is still more
30 compatible with the major Web browsers than even PNG is. WBMP is
31 intended for wireless devices (not regular web browsers). Existing
32 code will need modification to call or gdImageJpeg instead of
33 gdImageGif.
34
35 This library allows you to easily create and manipulate PNG, JPEG
36 image files from your C programs.
37
38 %description -l pl
39 Biblioteka pozwalaj±ca na proste tworzenie i manipulowanie plikami
40 graficznymi w formacie PNG.
41
42 %package devel
43 Summary:        Development part of the GD library
44 Summary(pl):    Czê¶æ biblioteki GD przeznaczona dla developerów
45 Group:          Development/Libraries
46 Group(de):      Entwicklung/Libraries
47 Group(fr):      Development/Librairies
48 Group(pl):      Programowanie/Biblioteki
49 Requires:       libpng-devel
50 Requires:       zlib-devel
51 Requires:       %{name} = %{version}
52
53 %description devel
54 This package contains the files needed for development of programs
55 linked against GD.
56
57 %description -l pl devel
58 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
59 z biblioteki GD.
60
61 %package static
62 Summary:        Static GD library
63 Summary(pl):    Statyczna biblioteka GD
64 Group:          Development/Libraries
65 Group(de):      Entwicklung/Libraries
66 Group(fr):      Development/Librairies
67 Group(pl):      Programowanie/Biblioteki
68 Requires:       %{name} = %{version}
69
70 %description devel
71 This package contains static GD library.
72
73 %description -l pl static
74 Pakiet ten zawiera statyczn± bibliotekê GD.
75
76 %package progs
77 Summary:        Utility programs that use libgd
78 Summary(pl):    Narzêdzia które u¿ywaj± libgd
79 Group:          Applications/Graphics
80 Group(de):      Applikationen/Grafik
81 Group(pl):      Aplikacje/Grafika
82 Requires:       %{name} = %{version}
83
84 %description progs
85 These are utility programs supplied with gd, the .jpeg graphics
86 library.
87
88 %description -l pl progs
89 Pakiet ten zawiera dodatkowe programu uzywaj±ce libgd
90
91 %prep
92 %setup -q 
93 %patch0 -p1 
94
95 %build
96 libtoolize --copy --force
97 aclocal
98 automake -a -c
99 autoconf
100 %configure
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 gzip -9nf readme.txt index.html 
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc readme.txt.gz
120 %attr(755,root,root) %{_libdir}/*.so.*.*
121
122 %files devel
123 %defattr(644,root,root,755)
124 %doc index.html.gz 
125 %attr(755,root,root) %{_libdir}/*.so
126 %attr(755,root,root) %{_libdir}/*.la
127 %{_includedir}/*
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/lib*.a
132
133 %files progs
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_bindir}/*
This page took 0.031392 seconds and 2 git commands to generate.