]> git.pld-linux.org Git - packages/gd.git/blob - gd.spec
cc8090f9e5e16f0eebb90ff834618229e39d89ae
[packages/gd.git] / gd.spec
1 Summary:        Library for PNG creation
2 Summary(pl):    Biblioteka do tworzenia PNGów
3 Name:           gd
4 Version:        1.6.3
5 Release:        2
6 License:        BSD-style
7 Group:          Libraries
8 Group(pl):      Biblioteki
9 Source:         ftp://ftp.boutell.com/pub/boutell/gd/%{name}-%{version}.tar.gz
10 URL:            http://www.boutell.com/gd/
11 BuildRequires:  zlib-devel
12 BuildRequires:  libpng-devel
13 BuildRequires:  freetype-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 This library allows you to easily create and manipulate PNG image
18 files from your C programs.
19
20 %description -l pl
21 Biblioteka pozwalaj±ca na proste tworzenie i manipulowanie plikami
22 graficznymi w formacie PNG.
23
24 %package devel
25 Summary:        Development part of the GD library
26 Summary(pl):    Czê¶æ biblioteki GD przeznaczona dla developerów.
27 Group:          Development/Libraries
28 Group(pl):      Programowanie/Biblioteki
29 Requires:       %{name} = %{version}
30
31 %description devel
32 This package contains the files needed for development of programs
33 linked against GD.
34
35 %description -l pl devel
36 Pakiet ten zawiera pliki potrzebne do rozwoju programów
37 korzystaj±cych z biblioteki GD.
38
39 %package static
40 Summary:        Static GD library
41 Summary(pl):    Statyczna biblioteka GD.
42 Group:          Development/Libraries
43 Group(pl):      Programowanie/Biblioteki
44 Requires:       %{name} = %{version}
45
46 %description devel
47 This package contains static GD library.
48
49 %description -l pl static
50 Pakiet ten zawiera statyczn± bibliotekê GD.
51
52 %prep
53 %setup -q 
54
55 %build
56 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/freetype"
57 LDFLAGS="-s"
58 export CFLAGS LDFLAGS
59 %configure
60 make
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 make DESTDIR="$RPM_BUILD_ROOT" install
66
67 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
68
69 gzip -9nf NEWS README index.html 
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
78 %defattr(644,root,root,755)
79 %doc {NEWS,README}.gz
80 %attr(755,root,root) %{_bindir}/*
81 %attr(755,root,root) %{_libdir}/*.so.*.*
82
83 %files devel
84 %defattr(644,root,root,755)
85 %doc index.html.gz 
86 %attr(755,root,root) %{_libdir}/*.so
87 %attr(755,root,root) %{_libdir}/libgd.la
88 %{_includedir}/*
89
90 %files static
91 %defattr(644,root,root,755)
92 %{_libdir}/lib*.a
This page took 0.028727 seconds and 3 git commands to generate.