commit d8c25814c68d22ecd9e7052431954c385b97e205
Author: Jakub Bogusz <[email protected]>
Date:   Sun Nov 22 15:10:57 2020 +0100

    - added ac+tirpc patch (autoconf fix + tirpc support)
    - added pdflib bcond to enable PDF driver using pdflib-lite
    - release 3 (netcdf 4.7.4)

 grace-ac+tirpc.patch | 26 ++++++++++++++++++++++++++
 grace.spec           | 25 +++++++++++++++----------
 2 files changed, 41 insertions(+), 10 deletions(-)
---
diff --git a/grace.spec b/grace.spec
index c3c68d7..dae892b 100644
--- a/grace.spec
+++ b/grace.spec
@@ -1,8 +1,12 @@
+#
+# Conditional build:
+%bcond_with    pdflib  # PDF driver (based on PDFlib, non-free)
+
 Summary:       Numerical Data Processing and Visualization Tool (grace)
 Summary(pl.UTF-8):     Narzędzie do numerycznej obróbki i wizualizacji danych
 Name:          grace
 Version:       5.1.25
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         Applications/Math
 Source0:       
ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/%{name}-%{version}.tar.gz
@@ -13,6 +17,7 @@ Patch1:               %{name}-home_etc.patch
 Patch2:                %{name}-etc.patch
 Patch3:                %{name}-fontsdir.patch
 Patch4:                source-hardening.diff
+Patch5:                %{name}-ac+tirpc.patch
 URL:           https://plasma-gate.weizmann.ac.il/Grace/
 BuildRequires: Xbae-devel
 BuildRequires: XmHTML-devel >= 1.1.5
@@ -21,16 +26,17 @@ BuildRequires:      automake
 BuildRequires: fftw-devel >= 2.1.3
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel >= 0.9.6
+BuildRequires: libtirpc-devel
 BuildRequires: motif-devel >= 1.2
 BuildRequires: netcdf-devel >= 3.0
-#BuildRequires:        pdflib-devel >= 5.0.0
+%{?with_pdflib:BuildRequires:  pdflib-lite-devel >= 5.0.0}
 BuildRequires: t1lib-devel >= 5.0.0
 BuildRequires: xorg-lib-libXmu-devel
 BuildRequires: xorg-lib-libXpm-devel
 BuildRequires: xorg-lib-libXt-devel
 Requires:      fonts-Type1-urw
 Requires:      libpng >= 0.9.6
-#Requires:     pdflib >= 5.0.0
+%{?with_pdflib:Requires:       pdflib-lite >= 5.0.0}
 Requires:      zlib >= 1.0.3
 Obsoletes:     xmgr
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -58,18 +64,17 @@ do publikacji.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 cp -f /usr/share/automake/config.* ac-tools
-cp -f ac-tools/configure.in .
-%{__autoconf}
+%{__autoconf} ac-tools/configure.in > configure
 %configure \
-       --enable-grace-home=%{_datadir}/%{name} \
+       %{!?debug:--disable-debug} \
        --enable-editres \
-       --enable-extra-incpath=$PKG_BUILD_DIR/include \
-       --enable-extra-ldpath=$PKG_BUILD_DIR/lib \
-       --without-bundled-xbae \
-       %{!?debug:--disable-debug}
+       --enable-grace-home=%{_datadir}/%{name} \
+       %{!?with_pdflib:--disable-pdfdrv} \
+       --without-bundled-xbae
 %{__make}
 
 %install
diff --git a/grace-ac+tirpc.patch b/grace-ac+tirpc.patch
new file mode 100644
index 0000000..5e94415
--- /dev/null
+++ b/grace-ac+tirpc.patch
@@ -0,0 +1,26 @@
+--- grace-5.1.25/ac-tools/configure.in.orig    2020-11-16 22:05:32.498722746 
+0100
++++ grace-5.1.25/ac-tools/configure.in 2020-11-22 07:51:32.951230746 +0100
+@@ -515,18 +515,21 @@
+ fi
+ 
+ dnl **** Check for XDR
+-AC_SEARCH_LIBS(xdrstdio_create, nsl rpc xdr rpclib, 
XDR_LIB=$mdw_cv_lib_xdrstdio_create, XDR_LIB="NONE")
++AC_SEARCH_LIBS(xdrstdio_create, tirpc nsl rpc xdr rpclib, XDR_LIB=$ac_res, 
XDR_LIB="NONE")
+ 
+ if test "${XDR_LIB}" = "NONE"; then
+   XDR_LIB=
+   AC_MSG_RESULT(--> No XDR library found; grconvert will not be built)
+ else
++  if test "${XDR_LIB}" = "-ltirpc"; then
++    CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc"
++  fi
+   grconvert_dir="grconvert"
+ fi
+ 
+ dnl **** Check for dlopen() interface
+ dnl           (Linux, SunOS-[4,5], OSF, IRIX, AIX-4, UnixWare, ...)
+-AC_SEARCH_LIBS(dlopen, dl, [DL_LIB=$mdw_cv_lib_dlopen; 
AC_DEFINE(HAVE_DLOPEN)], DL_LIB="NONE")
++AC_SEARCH_LIBS(dlopen, dl, [DL_LIB=$ac_res; AC_DEFINE(HAVE_DLOPEN)], 
DL_LIB="NONE")
+ 
+ if test "${DL_LIB}" != "NONE"; then
+   dnl **** Old implementations of dlopen() don't have RTLD_NOW
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grace.git/commitdiff/d8c25814c68d22ecd9e7052431954c385b97e205

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to