[packages/gts] fix netpbm header location; rel 6

atler atler at pld-linux.org
Thu Mar 14 22:56:21 CET 2019


commit c2a85eea062c8fe3712d40bba5fc9ee480725743
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Mar 14 22:56:01 2019 +0100

    fix netpbm header location; rel 6

 gts-netpbm.patch | 12 ++++++++++++
 gts.spec         |  5 ++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/gts.spec b/gts.spec
index f47afc9..23e77f3 100644
--- a/gts.spec
+++ b/gts.spec
@@ -2,7 +2,7 @@ Summary:	GNU Triangulated Surface Library
 Summary(pl.UTF-8):	Biblioteka GNU do triangulowanych powierzchni
 Name:		gts
 Version:	0.7.6
-Release:	5
+Release:	6
 License:	LGPL v2+
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/gts/%{name}-%{version}.tar.gz
@@ -10,11 +10,13 @@ Source0:	http://downloads.sourceforge.net/gts/%{name}-%{version}.tar.gz
 Patch0:		%{name}-as_needed-fix.patch
 Patch1:		%{name}-lib64-gts-config.in.patch
 Patch2:		%{name}-am.patch
+Patch3:		%{name}-netpbm.patch
 URL:		http://gts.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	glib2-devel >= 1:2.4.0
 BuildRequires:	libtool
+BuildRequires:	netpbm-devel
 BuildRequires:	pkgconfig
 Requires:	glib2 >= 1:2.4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -69,6 +71,7 @@ Statyczna biblioteka gts.
 %patch1 -p1
 %endif
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
diff --git a/gts-netpbm.patch b/gts-netpbm.patch
new file mode 100644
index 0000000..7830b6d
--- /dev/null
+++ b/gts-netpbm.patch
@@ -0,0 +1,12 @@
+diff -urN gts-0.7.6.orig/examples/happrox.c gts-0.7.6/examples/happrox.c
+--- gts-0.7.6.orig/examples/happrox.c	2019-03-14 22:54:35.429416051 +0100
++++ gts-0.7.6/examples/happrox.c	2019-03-14 22:54:54.532590813 +0100
+@@ -21,7 +21,7 @@
+ #include <stdlib.h>
+ #include <locale.h>
+ #include <string.h>
+-#include <pgm.h>
++#include <netpbm/pgm.h>
+ #include "config.h"
+ #ifdef HAVE_GETOPT_H
+ #  include <getopt.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gts.git/commitdiff/c2a85eea062c8fe3712d40bba5fc9ee480725743



More information about the pld-cvs-commit mailing list