spot pushed to R (el5). "conditionalize texi2any for systems that do not have it"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 30 18:45:41 UTC 2015


>From dcabdd3746de6ae79b3aef8e94337d85ea9fa9cc Mon Sep 17 00:00:00 2001
From: Tom Callaway <spot at fedoraproject.org>
Date: Thu, 30 Apr 2015 14:45:31 -0400
Subject: conditionalize texi2any for systems that do not have it


diff --git a/R.spec b/R.spec
index f5f723a..e0e4848 100644
--- a/R.spec
+++ b/R.spec
@@ -36,11 +36,22 @@
 %global modern 1
 %endif
 
+# default to 0.
+%global texi2any 0
+
+%if 0%{?fedora} >= 20
+%global texi2any 1
+%endif
+
+%if 0%{?rhel} >= 7
+%global texi2any 1
+%endif
+
 %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
 
 Name: R
 Version: 3.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: A language for data analysis and graphics
 URL: http://www.r-project.org
 Source0: ftp://cran.r-project.org/pub/R/src/base/R-3/R-%{version}.tar.gz
@@ -396,6 +407,11 @@ export FCFLAGS="%{optflags}"
     --enable-lto \
 %endif
 %endif
+%if %{texi2any}
+    MAKEINFO=texi2any \
+%else
+    MAKEINFO=makeinfo \
+%endif
     rdocdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
     rincludedir=%{_includedir}/R \
     rsharedir=%{_datadir}/R) \
@@ -919,6 +935,9 @@ R CMD javareconf \
 %postun -n libRmath -p /sbin/ldconfig
 
 %changelog
+* Thu Apr 30 2015 Tom Callaway <spot at fedoraproject.org> - 3.2.0-2
+- conditionalize MAKEINFO for ancient things (rhel 6 or older)
+
 * Sun Apr 26 2015 Tom Callaway <spot at fedoraproject.org> - 3.2.0-1
 - update to 3.2.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/R.git/commit/?h=el5&id=dcabdd3746de6ae79b3aef8e94337d85ea9fa9cc


More information about the scm-commits mailing list