]> git.pld-linux.org Git - packages/papi.git/commitdiff
- build with libtirpc+libnsl 1.x; rel 4 auto/th/papi-1.0-0.beta.4
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 17:38:11 +0000 (19:38 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 17:38:11 +0000 (19:38 +0200)
papi-glibc.patch
papi.spec

index ac03277066ac2cb90a4f0c115e2ab982fce27f7a..c1865a4c35b08152c7f1d7ccc6bab7812a4d493e 100644 (file)
  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>
index a830b6fdb02996e67e03d23f4b2eb97a6512aad5..23504b7a9bb697b3edb924ae133e18370de6a26f 100644 (file)
--- 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} \
This page took 0.124542 seconds and 4 git commands to generate.