[packages/papi] - build with libtirpc+libnsl 1.x; rel 4

qboosh qboosh at pld-linux.org
Sun Aug 30 19:35:37 CEST 2020


commit 580784b84d32f125630acd9b2cc44db604632454
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Aug 30 19:38:11 2020 +0200

    - build with libtirpc+libnsl 1.x; rel 4

 papi-glibc.patch | 20 ++++++++++++++++++++
 papi.spec        |  7 +++++--
 2 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/papi.spec b/papi.spec
index a830b6f..23504b7 100644
--- a/papi.spec
+++ b/papi.spec
@@ -1,5 +1,5 @@
 # TODO: config file for mod_ipp
-%define	rel	3
+%define	rel	4
 Summary:	Free Standards Group Open Printing API and applications implementation
 Summary(pl.UTF-8):	Implementacja API i aplikacji Free Standards Group Open Printing
 Name:		papi
@@ -22,7 +22,10 @@ BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	cups-devel
 BuildRequires:	libmagic-devel
+BuildRequires:	libnsl-devel
+BuildRequires:	libtirpc-devel
 BuildRequires:	libtool
+BuildRequires:	pkgconfig
 Requires:	%{name}-libs = %{version}-%{release}
 Provides:	printingclient
 Provides:	printingdaemon
@@ -111,7 +114,7 @@ Statyczne Biblioteki Free Standards Group Open Printing API.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-CPPFLAGS="$(apr-1-config --cppflags) $(apu-1-config --includes)"
+CPPFLAGS="%{rpmcppflags} $(apr-1-config --cppflags) $(apu-1-config --includes) $(pkg-config --cflags libtirpc)"
 # debug.h and http.h are too common, use include subdir
 %configure \
 	--with-apache=%{_prefix} \
diff --git a/papi-glibc.patch b/papi-glibc.patch
index ac03277..c1865a4 100644
--- a/papi-glibc.patch
+++ b/papi-glibc.patch
@@ -34,3 +34,23 @@
  AC_SEARCH_LIBS(rresvport_af,nsl socket,[AC_DEFINE(HAVE_RRESVPORT_AF, 1,
  	[define if you have rresvport_af])],)
  AC_SEARCH_LIBS(getipnodebyname,nsl socket,[AC_DEFINE(HAVE_GETIPNODEBYNAME, 1,
+--- papi-1.0_beta/source/libpapi-lpd/lpd-port.c.orig	2005-09-21 21:22:22.000000000 +0200
++++ papi-1.0_beta/source/libpapi-lpd/lpd-port.c	2020-08-30 19:10:47.554210812 +0200
+@@ -23,7 +23,6 @@
+ #include <errno.h>
+ #include <syslog.h>
+ #include <values.h>
+-#include <stropts.h>	/* for sendfd */
+ #include <sys/uio.h>	/* for sendmsg stuff */
+ #include <pwd.h>
+ #include <sys/sendfile.h>
+--- papi-1.0_beta/source/libpapi-lpd/lpd-misc.c.orig	2005-09-21 21:22:10.000000000 +0200
++++ papi-1.0_beta/source/libpapi-lpd/lpd-misc.c	2020-08-30 19:34:17.756571090 +0200
+@@ -17,7 +17,6 @@
+ #include <sys/socket.h>
+ #include <errno.h>
+ #include <wait.h>
+-#include <stropts.h>
+ #include <papi_impl.h>
+ 
+ #include <config-site.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/papi.git/commitdiff/580784b84d32f125630acd9b2cc44db604632454



More information about the pld-cvs-commit mailing list