Projects
home:pandora:RobinOS23
gd
_service:download_src_package:gd.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:gd.spec of Package gd
%define anolis_release 1 %bcond_with liq %bcond_with raqm %bcond_with avif %bcond_with raqm %bcond_with heif Summary: A graphics library for quick creation of PNG or JPEG images Name: gd Version: 2.3.3 Release: %{anolis_release}%{?dist} License: MIT URL: http://libgd.github.io/ Source0: https://github.com/libgd/libgd/releases/download/gd-%{version}/libgd-%{version}.tar.xz # Needed by PHP see https://github.com/libgd/libgd/pull/766 Patch0: libgd-flip.patch # Missing header see https://github.com/libgd/libgd/pull/766 Patch1: libgd-iostream.patch BuildRequires: freetype-devel BuildRequires: fontconfig-devel BuildRequires: gettext-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libwebp-devel %if %{with liq} BuildRequires: libimagequant-devel %endif %if %{with raqm} BuildRequires: libraqm-devel %endif %if %{with avif} BuildRequires: libavif-devel %endif %if %{with heif} BuildRequires: libheif-devel %endif BuildRequires: libX11-devel BuildRequires: libXpm-devel BuildRequires: zlib-devel BuildRequires: pkgconfig BuildRequires: libtool BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(FindBin) # for fontconfig/basic test BuildRequires: liberation-sans-fonts BuildRequires: make %description The gd graphics library allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and to write out the result as a PNG or JPEG file. This is particularly useful in Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers. Note that gd is not a paint program. %package progs Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Utility programs that use libgd %description progs The gd-progs package includes utility programs supplied with gd, a graphics library for creating PNG and JPEG images. %package devel Summary: The development libraries and header files for gd Requires: %{name} = %{version}-%{release} Requires: freetype-devel Requires: fontconfig-devel Requires: libjpeg-devel Requires: libpng-devel Requires: libtiff-devel Requires: libwebp-devel Requires: libX11-devel Requires: libXpm-devel Requires: zlib-devel %if %{with liq} Requires: libimagequant-devel %endif %if %{with raqm} Requires: libraqm-devel %endif %if %{with avif} Requires: libavif-devel %endif %if %{with heif} Requires: libheif-devel %endif %description devel The gd-devel package contains the development libraries and header files for gd, a graphics library for creating PNG and JPEG graphics. %prep %setup -q -n libgd-%{version}%{?prever:-%{prever}} %patch0 -p1 %patch1 -p1 : $(perl config/getver.pl) : regenerate autotool stuff if [ -f configure ]; then libtoolize --copy --force autoreconf -vif else ./bootstrap.sh fi %build # Provide a correct default font search path CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\ /usr/share/fonts/bitstream-vera:\ /usr/share/fonts/dejavu:\ /usr/share/fonts/default/Type1:\ /usr/share/X11/fonts/Type1:\ /usr/share/fonts/liberation\"'" %ifarch aarch64 export CFLAGS="$CFLAGS -ffp-contract=off" %endif %configure \ --enable-gd-formats \ --with-tiff=%{_prefix} \ --disable-rpath make %{?_smp_mflags} %install make install INSTALL='install -p' DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.la rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a %check # Workaround to https://github.com/libgd/libgd/issues/763 export TMPDIR=/tmp : Upstream test suite make check : Check content of pkgconfig grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %ldconfig_scriptlets %files %{!?_licensedir:%global license %%doc} %license COPYING %{_libdir}/*.so.* %files progs %{_bindir}/* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/gdlib.pc %changelog * Tue Apr 26 2022 Chunmei Xu <xuchunmei@linux.alibaba.com> - 2.3.3-1 - init from upstream
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2