commit 587ce443acbf2cd61af62841f459d8e83075d192
Author: Jakub Bogusz <qbo...@pld-linux.org>
Date:   Thu Apr 25 06:39:09 2024 +0200

    - patch to fix .pc file, force ImageMagick (over GraphicsMagick default)

 autotrace-pc.patch | 10 ++++++++++
 autotrace.spec     |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/autotrace.spec b/autotrace.spec
index ea4beb2..cfe701b 100644
--- a/autotrace.spec
+++ b/autotrace.spec
@@ -9,6 +9,7 @@ Group:          Applications/Graphics
 Source0:       
https://github.com/autotrace/autotrace/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 3078d2530a65f28c31c89974671ef02a
 Patch0:                %{name}-link.patch
+Patch1:                %{name}-pc.patch
 URL:           https://autotrace.sourceforge.net/
 BuildRequires: ImageMagick-devel >= 1:7.0.1
 BuildRequires: autoconf >= 2.50
@@ -67,6 +68,7 @@ Biblioteka statyczna AutoTrace.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %{__sed} -i -e 's,po/Makefile.in ,,' configure.ac
 
@@ -78,7 +80,8 @@ Biblioteka statyczna AutoTrace.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       --with-magick=ImageMagick
 
 %{__make}
 
diff --git a/autotrace-pc.patch b/autotrace-pc.patch
new file mode 100644
index 0000000..4f36c54
--- /dev/null
+++ b/autotrace-pc.patch
@@ -0,0 +1,10 @@
+--- autotrace-0.31.10/autotrace.pc.in.orig     2024-01-29 22:37:09.000000000 
+0100
++++ autotrace-0.31.10/autotrace.pc.in  2024-04-25 06:21:25.582543612 +0200
+@@ -7,5 +7,5 @@ Name: Autotrace
+ Description: a utility that converts bitmap to vector graphics
+ Version: @VERSION@
+ Requires:
+-Libs: -L@libdir@ -lautotrace @LIBPNG_LIBS@ @MAGICK_LIBS@ @LIBSWF_LIBS@ 
@LIBPSTOEDIT_LIBS@ @GLIB2_LIBS@
+-Cflags: -I@includedir@ @MAGICK_CFLAGS@ @LIBPSTOEDIT_CFLAGS@ @GLIB2_CFLAGS@
++Libs: -L@libdir@ -lautotrace @LIBPNG_LIBS@ @GRAPHICSMAGICK_LIBS@ 
@IMAGEMAGICK_LIBS@ @LIBSWF_LIBS@ @LIBPSTOEDIT_LIBS@ @GLIB2_LIBS@
++Cflags: -I@includedir@ @GRAPHICSMAGICK_CFLAGS@ @IMAGEMAGICK_CFLAGS@ 
@LIBPSTOEDIT_CFLAGS@ @GLIB2_CFLAGS@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/autotrace.git/commitdiff/587ce443acbf2cd61af62841f459d8e83075d192

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to