source: spec/trunk/SPECS/gd.spec@ 1710

Last change on this file since 1710 was 1686, checked in by Yuri Dario, 6 years ago

spec: gd: release version 2.2.5-1.

File size: 2.0 KB
Line 
1%scm_source github https://github.com/ydario/libgd gd-2.2.5-os2
2
3Summary: A graphics library for quick creation of PNG or JPEG images
4Name: gd
5Version: 2.2.5
6Release: 1
7License: MIT
8URL: http://libgd.github.io/
9
10BuildRequires: freetype-devel
11BuildRequires: fontconfig-devel
12BuildRequires: gettext-devel
13BuildRequires: libjpeg-devel
14BuildRequires: libpng-devel
15BuildRequires: zlib-devel
16BuildRequires: pkgconfig
17BuildRequires: libtool
18
19
20%description
21The gd graphics library allows your code to quickly draw images
22complete with lines, arcs, text, multiple colors, cut and paste from
23other images, and flood fills, and to write out the result as a PNG or
24JPEG file. This is particularly useful in Web applications, where PNG
25and JPEG are two of the formats accepted for inline images by most
26browsers. Note that gd is not a paint program.
27
28
29%package progs
30Requires: %{name} = %{version}-%{release}
31Summary: Utility programs that use libgd
32
33%description progs
34The gd-progs package includes utility programs supplied with gd, a
35graphics library for creating PNG and JPEG images.
36
37
38%package devel
39Summary: The development libraries and header files for gd
40Requires: %{name} = %{version}-%{release}
41Requires: freetype-devel
42Requires: fontconfig-devel
43Requires: libjpeg-devel
44Requires: libpng-devel
45Requires: libtiff-devel
46Requires: zlib-devel
47
48%description devel
49The gd-devel package contains the development libraries and header
50files for gd, a graphics library for creating PNG and JPEG graphics.
51
52
53%prep
54%scm_setup
55autoreconf -i -v
56
57%build
58export LIBS="-lpthread"
59%configure
60make %{?_smp_mflags}
61
62
63%install
64make install INSTALL='install -p' DESTDIR=$RPM_BUILD_ROOT
65rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.la
66rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a
67
68
69%files
70%{!?_licensedir:%global license %%doc}
71%license COPYING
72%{_libdir}/*.dll
73
74%files progs
75%{_bindir}/*
76%exclude %{_bindir}/gdlib-config
77
78%files devel
79%{_bindir}/gdlib-config
80%{_includedir}/*
81%{_libdir}/*.a
82%{_libdir}/pkgconfig/gdlib.pc
83
84
85%changelog
Note: See TracBrowser for help on using the repository browser.