commit
2b9ff6227d
21
libgdiplus-2.10.9-format.patch
Normal file
21
libgdiplus-2.10.9-format.patch
Normal file
@ -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:
|
||||
BIN
libgdiplus-5.6.tar.gz
Normal file
BIN
libgdiplus-5.6.tar.gz
Normal file
Binary file not shown.
56
libgdiplus.spec
Normal file
56
libgdiplus.spec
Normal file
@ -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 <leiju4@huawei.com> - 5.6-3
|
||||
- Package init
|
||||
5
libgdiplus.yaml
Normal file
5
libgdiplus.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/mono/libgdiplus
|
||||
version_control: github
|
||||
src_repo: mono/libgdiplus
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user