Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rogeroberholtzer:mingw64
mingw64-gd
mingw64-gd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw64-gd.spec of Package mingw64-gd
# # spec file for package gd # # Copyright (c) 2024 SUSE LINUX GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ %define prjname libgd %define lname libgd3 Name: mingw64-gd Version: 2.2.5 Release: 0 Summary: A drawing library for programs with PNG and JPEG output License: MIT Group: Development/Libraries Url: https://libgd.github.io/ Source: https://github.com/libgd/libgd/releases/download/gd-%{version}/%{prjname}-%{version}.tar.gz Source1: baselibs.conf BuildArch: noarch #!BuildIgnore: post-build-checks BuildRequires: autoconf BuildRequires: file BuildRequires: m4 BuildRequires: mingw64-filesystem >= 23 BuildRequires: mingw64-cross-gcc BuildRequires: mingw64-cross-binutils BuildRequires: mingw64-cross-pkg-config # 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.) Patch2: gd-format.patch # could be upstreamed Patch3: gd-aliasing.patch BuildRequires: mingw64-libjpeg8-devel BuildRequires: mingw64-libpng-devel BuildRequires: mingw64-zlib-devel BuildRequires: mingw64-fontconfig-devel BuildRequires: mingw64-freetype-devel BuildRequires: mingw64-libtiff-devel BuildRequires: mingw64-libwebp-devel Requires: mingw64-%{lname} = %{version} %_mingw64_package_header_debug %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) and is supported by PHP. These are programs built with libgd. %package -n mingw64-%{lname} Summary: A drawing library for programs with PNG and JPEG output Group: System/Libraries %description -n mingw64-%{lname} 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) and is supported by PHP. %package -n mingw64-%{prjname}-devel Summary: A drawing library for programs with PNG and JPEG output Group: Development/Libraries Requires: mingw64-%{lname} = %{version} Requires: mingw64-libjpeg8-devel Requires: mingw64-libpng-devel Requires: mingw64-zlib-devel Requires: mingw64-fontconfig-devel Requires: mingw64-freetype-devel Requires: mingw64-libtiff-devel Requires: mingw64-libwebp-devel %description -n mingw64-%{prjname}-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. %_mingw64_debug_package %prep %setup -q -n %{prjname}-%{version} %patch 1 %patch 2 %patch 3 chmod 644 COPYING %build # ADDITIONAL CFLAGS ARE NEEDED TO FIX TEST FAILURES IN CASE OF i586, BUT HARMLESS TO APPLY GENERALLY FOR ALL ix86 %ifarch %{ix86} export CFLAGS="%{optflags} -msse -mfpmath=sse" %else %ifnarch x86_64 export CFLAGS="%{optflags} -ffp-contract=off" %endif %endif autoconf # without-x -- useless switch which just mangles cflags %{_mingw64_configure} \ --libdir=%_mingw64_libdir \ --prefix=%_mingw64_prefix \ --disable-silent-rules \ --disable-werror \ --without-liq \ --without-x \ --with-fontconfig \ --with-freetype \ --with-jpeg \ --with-png \ --without-xpm \ --with-webp \ --with-zlib \ --disable-static make %{?_smp_mflags} # If you see 5, are you sure you are running the latest? %install make install \ DESTDIR=%{buildroot} \ libdir=%{_mingw64_libdir} \ bindir=%{_mingw64_bindir} # Do not deliver this perl script in the Windows install. rm %{buildroot}/%{_mingw64_bindir}/bdftogd %files %doc COPYING %{_mingw64_bindir}/*.exe %files -n mingw64-%{lname} %doc COPYING %{_mingw64_bindir}/*.dll %files -n mingw64-%{prjname}-devel %doc COPYING %{_mingw64_bindir}/gdlib-config %{_mingw64_includedir}/* %{_mingw64_libdir}/*.a %{_mingw64_libdir}/pkgconfig/gdlib.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor