From 3069d7b431ad1e567120675e852a391fd8aacef3 Mon Sep 17 00:00:00 2001 From: Sebastian Kisela Date: Apr 13 2018 13:24:13 +0000 Subject: Remove LIBPNG_LDFLAGS from config Since version 3.70 upstream seized to use libpng in linking phase as the whole png generation is now being done by ghostscript itself. The last file using libpng was psimage.cpp where the include is dropped. Fixes: #1415258 --- diff --git a/pstoedit.spec b/pstoedit.spec index 9ff7e21..9baeac7 100644 --- a/pstoedit.spec +++ b/pstoedit.spec @@ -1,6 +1,6 @@ Name: pstoedit Version: 3.70 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Translates PostScript and PDF graphics into other vector formats Group: Applications/Productivity @@ -9,10 +9,10 @@ URL: http://www.pstoedit.net/ Source0: http://downloads.sourceforge.net/pstoedit/pstoedit-%{version}.tar.gz Patch0: pstoedit-pkglibdir.patch +Patch1: remove-libpng-ldflags.patch Requires: ghostscript BuildRequires: gd-devel -BuildRequires: libpng-devel BuildRequires: dos2unix BuildRequires: ghostscript BuildRequires: plotutils-devel @@ -31,7 +31,6 @@ drivers Summary: Headers for developing programs that will use %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: libpng-devel %description devel This package contains the header files needed for developing %{name} @@ -43,6 +42,7 @@ applications # correctly load plugins (#1247187) %patch0 -p1 -b .pkglibdir +%patch1 -p1 dos2unix doc/*.htm doc/readme.txt @@ -89,6 +89,9 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %changelog +* Fri Apr 13 2018 Sebastian Kisela - 3.70-10 +- Drop unused libpng dependency + * Fri Feb 09 2018 Fedora Release Engineering - 3.70-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/remove-libpng-ldflags.patch b/remove-libpng-ldflags.patch new file mode 100644 index 0000000..0b66387 --- /dev/null +++ b/remove-libpng-ldflags.patch @@ -0,0 +1,28 @@ +From 421cdbeccccb68589002b24dc6e91b23ccd86bfd Mon Sep 17 00:00:00 2001 +From: Sebastian Kisela +Date: Fri, 13 Apr 2018 09:25:37 +0200 +Subject: [PATCH] Remove LIBPNG_LDFLAGS from config + +From version 3.70 upstream seized to use libpng in linking phase +as the whole png generation is now being done by ghostscript +itself. + +Fixes: #1415258 +--- + config/pstoedit.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/config/pstoedit.pc.in b/config/pstoedit.pc.in +index 3131ac5..ffda220 100644 +--- a/config/pstoedit.pc.in ++++ b/config/pstoedit.pc.in +@@ -7,5 +7,5 @@ Name: pstoedit + Description: converts PostScript(TM) and PDF files to other vector graphic formats + Version: @VERSION@.0 + Requires: +-Libs: -L@libdir@ -lpstoedit @LIBPNG_LDFLAGS@ @CXX_STD_LIB@ @CXX_RUNTIME_LIB@ @LIBLD_LDFLAGS@ ++Libs: -L@libdir@ -lpstoedit @CXX_STD_LIB@ @CXX_RUNTIME_LIB@ @LIBLD_LDFLAGS@ + Cflags: -I@includedir@ +-- +2.14.3 +