]> git.pld-linux.org Git - packages/gd.git/blob - gd.spec
- updated to 1.8.2
[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.8.2
5 Release:        1
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 Patch0:         gd-pld-patch
12 URL:            http://www.boutell.com/gd/
13 BuildRequires:  zlib-devel
14 BuildRequires:  libpng-devel
15 BuildRequires:  freetype-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This library allows you to easily create and manipulate PNG image
20 files from your C programs.
21
22 %description -l pl
23 Biblioteka pozwalaj±ca na proste tworzenie i manipulowanie plikami
24 graficznymi w formacie PNG.
25
26 %package devel
27 Summary:        Development part of the GD library
28 Summary(pl):    Czê¶æ biblioteki GD przeznaczona dla developerów.
29 Group:          Development/Libraries
30 Group(fr):      Development/Librairies
31 Group(pl):      Programowanie/Biblioteki
32 Requires:       %{name} = %{version}
33
34 %description devel
35 This package contains the files needed for development of programs
36 linked against GD.
37
38 %description -l pl devel
39 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
40 z biblioteki GD.
41
42 %package static
43 Summary:        Static GD library
44 Summary(pl):    Statyczna biblioteka GD.
45 Group:          Development/Libraries
46 Group(fr):      Development/Librairies
47 Group(pl):      Programowanie/Biblioteki
48 Requires:       %{name} = %{version}
49
50 %description devel
51 This package contains static GD library.
52
53 %description -l pl static
54 Pakiet ten zawiera statyczn± bibliotekê GD.
55
56 %prep
57 %setup -q 
58 %patch0 -p1 
59
60 %build
61 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/freetype"
62 LDFLAGS="-s"
63 export CFLAGS LDFLAGS
64 gcc -shared -o libgd.so.%{version} -Wl,-soname=libgd.so.%{shlibver} \
65         `ar t libgd.a` -L/usr/X11R6/lib -lttf -ljpeg -lpng -lz -lm
66
67
68 %install
69
70
71 [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
72 mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
73 make install \
74         INSTALL_BIN=$RPM_BUILD_ROOT%{_bindir} \
75         INSTALL_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
76         INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir}
77 install -m 755 libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/
78 ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so
79
80
81 #make DESTDIR="$RPM_BUILD_ROOT" install
82
83 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
84
85 gzip -9nf readme.txt index.html 
86
87 %clean
88 [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 %doc readme.txt.gz
96 %{_bindir}/*
97 %{_libdir}/*.so.*
98
99
100 %files devel
101 %defattr(644,root,root,755)
102 %doc index.html.gz 
103 %{_libdir}/*.so
104 %{_libdir}/*.a
105 %{_includedir}/*
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/lib*.a
This page took 0.704986 seconds and 4 git commands to generate.