diff --git a/libgdiplus-2.10.9-format.patch b/libgdiplus-2.10.9-format.patch new file mode 100644 index 0000000..4ec427f --- /dev/null +++ b/libgdiplus-2.10.9-format.patch @@ -0,0 +1,21 @@ +diff -up libgdiplus-2.10.9/src/Makefile.am.format libgdiplus-2.10.9/src/Makefile.am +--- libgdiplus-2.10.9/src/Makefile.am.format 2014-04-25 09:24:12.000000000 +0200 ++++ libgdiplus-2.10.9/src/Makefile.am 2014-04-25 09:24:21.000000000 +0200 +@@ -119,4 +119,4 @@ libgdiplus_la_SOURCES = \ + + libgdiplus_la_LIBADD = $(GDIPLUS_LIBS) + +-INCLUDES = $(GDIPLUS_CFLAGS) -Wall -Wno-unused -Wno-format ++INCLUDES = $(GDIPLUS_CFLAGS) -Wall -Wno-unused +diff -up libgdiplus-2.10.9/src/Makefile.in.format libgdiplus-2.10.9/src/Makefile.in +--- libgdiplus-2.10.9/src/Makefile.in.format 2014-04-25 09:24:16.000000000 +0200 ++++ libgdiplus-2.10.9/src/Makefile.in 2014-04-25 09:24:34.000000000 +0200 +@@ -361,7 +361,7 @@ libgdiplus_la_SOURCES = \ + wmfcodec.h + + libgdiplus_la_LIBADD = $(GDIPLUS_LIBS) +-INCLUDES = $(GDIPLUS_CFLAGS) -Wall -Wno-unused -Wno-format ++INCLUDES = $(GDIPLUS_CFLAGS) -Wall -Wno-unused + all: all-am + + .SUFFIXES: diff --git a/libgdiplus-5.6.tar.gz b/libgdiplus-5.6.tar.gz new file mode 100644 index 0000000..a2eb3ba Binary files /dev/null and b/libgdiplus-5.6.tar.gz differ diff --git a/libgdiplus.spec b/libgdiplus.spec new file mode 100644 index 0000000..8f87879 --- /dev/null +++ b/libgdiplus.spec @@ -0,0 +1,56 @@ +%undefine _hardened_build +Name: libgdiplus +Version: 5.6 +Release: 3 +Summary: An Open Source implementation of the GDI+ API +License: MIT +URL: http://www.mono-project.com/Main_Page +Source0: http://download.mono-project.com/sources/%{name}/%{name}-%{version}.tar.gz +Patch1: libgdiplus-2.10.9-format.patch + +BuildRequires: gcc freetype-devel glib2-devel libjpeg-devel libtiff-devel +BuildRequires: libpng-devel fontconfig-devel cairo-devel giflib-devel libexif-devel zlib-devel + +%description +An Open Source implementation of the GDI+ API, it is part of the Mono Project. + +%package devel +Summary: Development files for libgdiplus +Requires: %{name} = %{version}-%{release} + +%description devel +Development files for libgdiplus + +%prep +%setup -q +%patch1 -p1 -b .format +CFLAGS="$RPM_OPT_FLAGS -Wl,-z,lazy" +CXXFLAGS="$RPM_OPT_FLAGS -Wl,-z,lazy" +export CFLAGS +export CXXFLAGS + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -name '*.la' -exec rm -f {} ';' + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%{!?_licensedir:%global license %%doc} +%license COPYING +%doc NEWS README TODO AUTHORS ChangeLog +%{_libdir}/lib*.so.* + +%files devel +%{_libdir}/pkgconfig/* +%{_libdir}/lib*.so + +%changelog +* Thu Jul 9 2020 leiju - 5.6-3 +- Package init diff --git a/libgdiplus.yaml b/libgdiplus.yaml new file mode 100644 index 0000000..15ac289 --- /dev/null +++ b/libgdiplus.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/mono/libgdiplus +version_control: github +src_repo: mono/libgdiplus +tag_prefix: "^" +seperator: "."