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