conditionalize texi2any for systems that do not have it
This commit is contained in:
parent
0f2409b1c2
commit
ee29b1a75e
27
R.spec
27
R.spec
|
@ -36,11 +36,22 @@
|
||||||
%global modern 1
|
%global modern 1
|
||||||
%endif
|
%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)
|
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||||
|
|
||||||
Name: R
|
Name: R
|
||||||
Version: 3.2.0
|
Version: 3.2.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A language for data analysis and graphics
|
Summary: A language for data analysis and graphics
|
||||||
URL: http://www.r-project.org
|
URL: http://www.r-project.org
|
||||||
Source0: ftp://cran.r-project.org/pub/R/src/base/R-3/R-%{version}.tar.gz
|
Source0: ftp://cran.r-project.org/pub/R/src/base/R-3/R-%{version}.tar.gz
|
||||||
|
@ -395,6 +406,11 @@ export FCFLAGS="%{optflags}"
|
||||||
%ifnarch %{arm}
|
%ifnarch %{arm}
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
%if %{texi2any}
|
||||||
|
MAKEINFO=texi2any \
|
||||||
|
%else
|
||||||
|
MAKEINFO=makeinfo \
|
||||||
%endif
|
%endif
|
||||||
rdocdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
|
rdocdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
|
||||||
rincludedir=%{_includedir}/R \
|
rincludedir=%{_includedir}/R \
|
||||||
|
@ -413,7 +429,11 @@ cp doc/manual/R-intro.texi doc/manual/R-intro.texi.spot
|
||||||
sed -i 's|@eqn|@math|g' doc/manual/R-exts.texi
|
sed -i 's|@eqn|@math|g' doc/manual/R-exts.texi
|
||||||
sed -i 's|@eqn|@math|g' doc/manual/R-intro.texi
|
sed -i 's|@eqn|@math|g' doc/manual/R-intro.texi
|
||||||
%endif
|
%endif
|
||||||
make info
|
%if %{texi2any}
|
||||||
|
make MAKEINFO=texi2any info
|
||||||
|
%else
|
||||||
|
make MAKEINFO=makeinfo info
|
||||||
|
%endif
|
||||||
|
|
||||||
# Convert to UTF-8
|
# Convert to UTF-8
|
||||||
for i in doc/manual/R-intro.info doc/manual/R-FAQ.info doc/FAQ doc/manual/R-admin.info doc/manual/R-exts.info-1; do
|
for i in doc/manual/R-intro.info doc/manual/R-FAQ.info doc/FAQ doc/manual/R-admin.info doc/manual/R-exts.info-1; do
|
||||||
|
@ -919,6 +939,9 @@ R CMD javareconf \
|
||||||
%postun -n libRmath -p /sbin/ldconfig
|
%postun -n libRmath -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 30 2015 Tom Callaway <spot@fedoraproject.org> - 3.2.0-2
|
||||||
|
- conditionalize MAKEINFO for ancient things (rhel 6 or older)
|
||||||
|
|
||||||
* Sun Apr 26 2015 Tom Callaway <spot@fedoraproject.org> - 3.2.0-1
|
* Sun Apr 26 2015 Tom Callaway <spot@fedoraproject.org> - 3.2.0-1
|
||||||
- update to 3.2.0
|
- update to 3.2.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue