]> git.pld-linux.org Git - packages/gd.git/blob - gd.spec
- Patch by Jacek Osiecki <joshua@ceti.pl> correcting conditional building of
[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:        1.8.4
5 Release:        5
6 License:        BSD-style
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(fr):      Librairies
10 Group(pl):      Biblioteki
11 Source0:        ftp://ftp.boutell.com/pub/boutell/gd/%{name}-%{version}.tar.gz
12 Patch0:         %{name}-ac_am.patch
13 Patch1:         %{name}-HAVE_LIBJPEG.patch
14 URL:            http://www.boutell.com/gd/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libtool
18 BuildRequires:  zlib-devel
19 BuildRequires:  libpng-devel
20 BuildRequires:  libjpeg-devel
21 BuildRequires:  freetype1-devel
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 %patch1 -p1 
95
96 %build
97 libtoolize --copy --force
98 aclocal
99 automake -a -c
100 autoconf
101 %configure
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 gzip -9nf readme.txt index.html 
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %files
119 %defattr(644,root,root,755)
120 %doc readme.txt.gz
121 %attr(755,root,root) %{_libdir}/*.so.*.*
122
123 %files devel
124 %defattr(644,root,root,755)
125 %doc index.html.gz 
126 %attr(755,root,root) %{_libdir}/*.so
127 %attr(755,root,root) %{_libdir}/*.la
128 %{_includedir}/*
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/lib*.a
133
134 %files progs
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/*
This page took 0.242105 seconds and 3 git commands to generate.