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