2007-01-15 23:13:51 +00:00
|
|
|
#
|
2011-06-15 07:07:29 +00:00
|
|
|
# spec file for package gd
|
2007-01-15 23:13:51 +00:00
|
|
|
#
|
2013-02-04 19:12:13 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:13:51 +00:00
|
|
|
#
|
2008-11-17 15:50:55 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:13:51 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-02-04 19:12:13 +00:00
|
|
|
|
2013-12-26 16:36:49 +00:00
|
|
|
%define prjname libgd
|
|
|
|
|
2007-01-15 23:13:51 +00:00
|
|
|
Name: gd
|
2013-12-26 16:36:49 +00:00
|
|
|
BuildRequires: cmake
|
2012-02-15 15:14:49 +00:00
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
2011-10-03 07:19:14 +00:00
|
|
|
BuildRequires: libtool
|
2013-12-26 16:36:49 +00:00
|
|
|
BuildRequires: pkg-config
|
2012-02-15 15:14:49 +00:00
|
|
|
BuildRequires: xorg-x11-libX11-devel
|
|
|
|
BuildRequires: xorg-x11-libXau-devel
|
|
|
|
BuildRequires: xorg-x11-libXdmcp-devel
|
|
|
|
BuildRequires: xorg-x11-libXpm-devel
|
2007-12-22 18:32:58 +00:00
|
|
|
Provides: gdlib
|
2013-02-04 19:12:13 +00:00
|
|
|
Obsoletes: gdlib
|
2013-12-26 16:36:49 +00:00
|
|
|
Version: 2.1.0
|
2012-02-15 15:14:49 +00:00
|
|
|
Release: 0
|
2013-12-26 16:36:49 +00:00
|
|
|
Url: http://libgd.bitbucket.org/
|
2007-01-15 23:13:51 +00:00
|
|
|
Summary: A Drawing Library for Programs That Use PNG and JPEG Output
|
2012-02-15 15:14:49 +00:00
|
|
|
License: MIT
|
|
|
|
Group: System/Libraries
|
2013-12-26 16:36:49 +00:00
|
|
|
Source: https://bitbucket.org/libgd/gd-libgd/downloads/libgd-%{version}.tar.xz
|
2010-04-07 15:42:12 +00:00
|
|
|
Source1: baselibs.conf
|
2013-12-26 16:36:49 +00:00
|
|
|
# to be upstreamed, gdlib-config --libs to return the same as pkg-config --libs gdlib
|
|
|
|
Patch0: gd-config.patch
|
|
|
|
# might be upstreamed, but could be suse specific also (/usr/share/fonts/Type1 font dir)
|
|
|
|
Patch1: gd-fontpath.patch
|
|
|
|
# could be upstreamed, but not in this form (need ac check for attribute format printf, etc.)
|
2007-01-15 23:13:51 +00:00
|
|
|
Patch2: gd-format.patch
|
2013-12-26 16:36:49 +00:00
|
|
|
# could be upstreamed
|
2007-01-15 23:13:51 +00:00
|
|
|
Patch3: gd-aliasing.patch
|
2013-12-26 16:36:49 +00:00
|
|
|
# could be upstreamed?
|
|
|
|
Patch4: gd-autoconf.patch
|
2007-01-15 23:13:51 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Gd allows your code to quickly draw images complete with lines, arcs,
|
|
|
|
text, and multiple colors. It supports cut and paste from other images
|
|
|
|
and flood fills. It outputs PNG, JPEG, and WBMP (for wireless devices)
|
2013-12-26 16:36:49 +00:00
|
|
|
and is supported by PHP.
|
2007-01-15 23:13:51 +00:00
|
|
|
|
|
|
|
%package devel
|
2013-02-04 19:12:13 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glibc-devel
|
2007-01-15 23:13:51 +00:00
|
|
|
Summary: Drawing Library for Programs with PNG and JPEG Output
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-02-04 19:12:13 +00:00
|
|
|
Requires: libpng-devel
|
|
|
|
Requires: zlib-devel
|
2007-01-15 23:13:51 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
gd allows code to quickly draw images complete with lines, arcs, text,
|
|
|
|
multiple colors, cut and paste from other images, and flood fills. gd
|
|
|
|
writes out the result as a PNG or JPEG file. This is particularly
|
|
|
|
useful in World Wide Web applications, where PNG and JPEG are two of
|
|
|
|
the formats accepted for inline images by most browsers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2013-12-26 16:36:49 +00:00
|
|
|
%setup -q -n %{prjname}-%{version}
|
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-01-15 23:13:51 +00:00
|
|
|
%patch3
|
2013-12-26 16:36:49 +00:00
|
|
|
%patch4
|
2007-01-15 23:13:51 +00:00
|
|
|
%build
|
2008-11-17 15:50:55 +00:00
|
|
|
autoreconf -fiv
|
2007-12-22 18:32:58 +00:00
|
|
|
%configure \
|
2007-01-15 23:13:51 +00:00
|
|
|
--with-freetype \
|
|
|
|
--with-jpeg \
|
2012-02-15 15:14:49 +00:00
|
|
|
--with-png=%{?_sysroot}/%_prefix \
|
2007-01-15 23:13:51 +00:00
|
|
|
--with-xpm \
|
2007-12-22 18:32:58 +00:00
|
|
|
--disable-static \
|
2007-01-15 23:13:51 +00:00
|
|
|
--with-pic
|
2012-02-15 15:14:49 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-11-17 15:50:55 +00:00
|
|
|
|
|
|
|
%check
|
2013-12-26 16:36:49 +00:00
|
|
|
make check
|
2007-01-15 23:13:51 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2007-12-22 18:32:58 +00:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-15 23:13:51 +00:00
|
|
|
|
2007-12-22 18:32:58 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-15 23:13:51 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-12-26 16:36:49 +00:00
|
|
|
%doc COPYING NEWS examples
|
2007-01-15 23:13:51 +00:00
|
|
|
/usr/bin/annotate
|
|
|
|
/usr/bin/bdftogd
|
|
|
|
/usr/bin/gd2copypal
|
|
|
|
/usr/bin/gd2togif
|
|
|
|
/usr/bin/gd2topng
|
|
|
|
/usr/bin/gdcmpgif
|
|
|
|
/usr/bin/gdparttopng
|
|
|
|
/usr/bin/gdtopng
|
|
|
|
/usr/bin/giftogd2
|
|
|
|
/usr/bin/pngtogd
|
|
|
|
/usr/bin/pngtogd2
|
|
|
|
/usr/bin/webpng
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-12-22 18:32:58 +00:00
|
|
|
%{_bindir}/gdlib-config
|
2007-01-15 23:13:51 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
2013-12-26 16:36:49 +00:00
|
|
|
%{_libdir}/pkgconfig/gdlib.pc
|
2007-12-22 18:32:58 +00:00
|
|
|
%exclude %{_libdir}/*.la
|
2007-01-15 23:13:51 +00:00
|
|
|
|
2007-02-25 22:24:04 +00:00
|
|
|
%changelog
|