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 0000000000000000000000000000000000000000..6e3143c0d4362da4487e0aab773a2a7a331d0074 --- /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 a62deb33fe83accdc88c0b48f2eb4fd7ca551194..953cac6f3a0e595beb7707dac7b4fafdc79e61fb 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