Accepting request 586392 from home:elvigia:branches:graphics

- libgd-config.patch: do not inject false dependencies into 
  packages, GD does not need extra libs to be used.
  this also allows us to clean up -devel package dependencies.

OBS-URL: https://build.opensuse.org/request/show/586392
OBS-URL: https://build.opensuse.org/package/show/graphics/gd?expand=0&rev=46
This commit is contained in:
2018-03-16 07:06:19 +00:00
committed by Git OBS Bridge
parent d0aa601a9b
commit 9d924ad019
3 changed files with 31 additions and 12 deletions

22
libgd-config.patch Normal file
View File

@@ -0,0 +1,22 @@
Index: libgd-2.2.5/config/gdlib-config.in
===================================================================
--- libgd-2.2.5.orig/config/gdlib-config.in
+++ libgd-2.2.5/config/gdlib-config.in
@@ -74,7 +74,7 @@ while test $# -gt 0; do
echo @LDFLAGS@
;;
--libs)
- echo -lgd @LIBS@ @LIBICONV@
+ echo -lgd
;;
--cflags|--includes)
echo -I@includedir@
@@ -87,7 +87,7 @@ while test $# -gt 0; do
echo "includedir: $includedir"
echo "cflags: -I@includedir@"
echo "ldflags: @LDFLAGS@"
- echo "libs: @LIBS@ @LIBICONV@"
+ echo "libs: -lgd"
echo "libdir: $libdir"
echo "features: @FEATURES@"
;;