From cb87e046e165843599c89ec522cbb74ef7ff2637 Mon Sep 17 00:00:00 2001 From: lb1107039128 Date: Thu, 28 Dec 2023 11:27:09 +0800 Subject: [PATCH] Adds proper link flag to the example recipe Signed-off-by: lb1107039128 --- ...oper-link-flag-to-the-example-recipe.patch | 25 +++++++++++++++++++ libimagequant.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-Adds-proper-link-flag-to-the-example-recipe.patch diff --git a/0001-Adds-proper-link-flag-to-the-example-recipe.patch b/0001-Adds-proper-link-flag-to-the-example-recipe.patch new file mode 100644 index 0000000..6e3143c --- /dev/null +++ b/0001-Adds-proper-link-flag-to-the-example-recipe.patch @@ -0,0 +1,25 @@ +From e8b944c34889cccc2d3c14db9c0b0cd4651d6dd4 Mon Sep 17 00:00:00 2001 +From: Smokie <29041430+smokes@users.noreply.github.com> +Date: Tue, 1 Dec 2020 16:42:34 +0100 +Subject: [PATCH] Adds proper link flag to the example recipe + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index ae8f896..dca4115 100644 +--- a/Makefile ++++ b/Makefile +@@ -93,7 +93,7 @@ cargo: + cargo test + + example: example.c lodepng.h lodepng.c $(STATICLIB) +- $(CC) -g $(CFLAGS) -Wall example.c $(STATICLIB) -o example ++ $(CC) -g $(CFLAGS) -Wall example.c $(STATICLIB) -o example -lm + + lodepng.h: + curl -o lodepng.h -L https://raw.githubusercontent.com/lvandeve/lodepng/master/lodepng.h +-- +2.42.0.windows.2 + diff --git a/libimagequant.spec b/libimagequant.spec index a62deb3..953cac6 100644 --- a/libimagequant.spec +++ b/libimagequant.spec @@ -1,12 +1,13 @@ Name: libimagequant Version: 2.13.1 -Release: 1 +Release: 2 Summary: Palette quantization library License: GPLv3+ and MIT URL: https://github.com/ImageOptim/libimagequant Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch0000: libimagequant_solibperm.patch +Patch0001: 0001-Adds-proper-link-flag-to-the-example-recipe.patch %description The portable C library can convert RGBA images into @@ -45,6 +46,9 @@ rm -f %{buildroot}%{_libdir}/%{name}.a %{_libdir}/pkgconfig/imagequant.pc %changelog +* Thu Dec 28 2023 liubo - 2.13.1-2 +- Adds proper link flag to the example recipe + * Wed Mar 03 2021 hanhui - 2.13.1-1 - update to 2.13.1 -- Gitee