Merge branch 'master' into epel7

This commit is contained in:
Tom Callaway 2016-01-26 17:02:25 -05:00
commit 4963b7c67f
8 changed files with 52354 additions and 5 deletions

4225
R-FAQ.html Normal file

File diff suppressed because it is too large Load Diff

7337
R-admin.html Normal file

File diff suppressed because it is too large Load Diff

3190
R-data.html Normal file

File diff suppressed because it is too large Load Diff

15950
R-exts.html Normal file

File diff suppressed because it is too large Load Diff

9601
R-intro.html Normal file

File diff suppressed because it is too large Load Diff

5791
R-ints.html Normal file

File diff suppressed because it is too large Load Diff

6228
R-lang.html Normal file

File diff suppressed because it is too large Load Diff

37
R.spec
View File

@ -1,7 +1,7 @@
%ifarch x86_64
%define java_arch amd64
%global java_arch amd64
%else
%define java_arch %{_arch}
%global java_arch %{_arch}
%endif
# Assume not modern. Override if needed.
@ -56,12 +56,26 @@
Name: R
Version: 3.2.3
Release: 2%{?dist}
Release: 4%{?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
Source1: macros.R
Source2: R-make-search-index.sh
%if %{texi2any}
# If we have texi2any 5.1+, we can generate the docs on the fly.
# If not, we're building for a very old target (RHEL 6 or older)
%else
# In this case, we need to use pre-built manuals.
# NOTE: These need to be updated for every new version.
Source100: https://cran.r-project.org/doc/manuals/r-release/R-intro.html
Source101: https://cran.r-project.org/doc/manuals/r-release/R-data.html
Source102: https://cran.r-project.org/doc/manuals/r-release/R-admin.html
Source103: https://cran.r-project.org/doc/manuals/r-release/R-exts.html
Source104: https://cran.r-project.org/doc/manuals/r-release/R-lang.html
Source105: https://cran.r-project.org/doc/manuals/r-release/R-ints.html
Source106: https://cran.r-project.org/doc/FAQ/R-FAQ.html
%endif
Patch0: 0001-Disable-backing-store-in-X11-window.patch
Patch1: 0001-Wait-for-MapNotify-event-while-intializing-window.patch
License: GPLv2+
@ -345,7 +359,7 @@ cat <<EOF > %{name}-prov
%{__perl_provides} \
| grep -v 'File::Copy::Recursive' | grep -v 'Text::DelimMatch'
EOF
%define __perl_provides %{_builddir}/R-%{version}/%{name}-prov
%global __perl_provides %{_builddir}/R-%{version}/%{name}-prov
chmod +x %{__perl_provides}
# Filter unwanted Requires:
@ -354,7 +368,7 @@ cat << \EOF > %{name}-req
%{__perl_requires} \
| grep -v 'perl(Text::DelimMatch)'
EOF
%define __perl_requires %{_builddir}/R-%{version}/%{name}-req
%global __perl_requires %{_builddir}/R-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
@ -528,6 +542,13 @@ pushd $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex
ln -s ../../../R/texmf/tex/latex R
popd
%if %{texi2any}
# Do not need to copy files...
%else
# COPY THAT FLOPPY
cp -a %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} %{SOURCE105} %{SOURCE106} %{buildroot}%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/manual/
%endif
%check
# Needed by tests/ok-error.R, which will smash the stack on PPC64. This is the purpose of the test.
ulimit -s 16384
@ -970,6 +991,12 @@ R CMD javareconf \
%postun -n libRmath -p /sbin/ldconfig
%changelog
* Tue Jan 26 2016 Tom Callaway <spot@fedoraproject.org> - 3.2.3-4
- if texi2any is set to 0, then copy in prebuilt html manuals (RHEL 5 & 6 only)
* Tue Jan 26 2016 Tom Callaway <spot@fedoraproject.org> - 3.2.3-3
- use global instead of define
* Fri Jan 15 2016 Tom Callaway <spot@fedoraproject.org> - 3.2.3-2
- Requires: redhat-rpm-config on hardened systems (all Fedora and RHEL 7+)