]> git.pld-linux.org Git - packages/grace.git/commitdiff
- added ac+tirpc patch (autoconf fix + tirpc support) master auto/th/grace-5.1.25-3
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Nov 2020 14:10:57 +0000 (15:10 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Nov 2020 14:10:57 +0000 (15:10 +0100)
- added pdflib bcond to enable PDF driver using pdflib-lite
- release 3 (netcdf 4.7.4)

grace-ac+tirpc.patch [new file with mode: 0644]
grace.spec

diff --git a/grace-ac+tirpc.patch b/grace-ac+tirpc.patch
new file mode 100644 (file)
index 0000000..5e94415
--- /dev/null
@@ -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
index c3c68d7ab5522e68df4ba3099d52121206403fea..dae892b6f6bc93b8c18e2be5c9e69e9fedff8bde 100644 (file)
@@ -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
This page took 0.081943 seconds and 4 git commands to generate.