should work everywhere now

This commit is contained in:
Tom Callaway 2014-04-29 20:57:04 -04:00
parent 42b83eface
commit 7883fbd6a4

14
R.spec
View File

@ -8,11 +8,13 @@
%global modern 0 %global modern 0
%global with_lto 0 %global with_lto 0
%global with_java_headless 0
%global system_tre 0 %global system_tre 0
# We need to use system tre on F21+/RHEL7 # We need to use system tre on F21+/RHEL7
%if 0%{?fedora} >= 21 %if 0%{?fedora} >= 21
%global system_tre 1 %global system_tre 1
%global with_java_headless 1
%endif %endif
%if 0%{?fedora} >= 19 %if 0%{?fedora} >= 19
@ -22,6 +24,7 @@
%if 0%{?rhel} >= 7 %if 0%{?rhel} >= 7
%global system_tre 1 %global system_tre 1
%global with_lto 1 %global with_lto 1
%global with_java_headless 1
%endif %endif
%if 0%{?fedora} %if 0%{?fedora}
@ -36,7 +39,7 @@
Name: R Name: R
Version: 3.1.0 Version: 3.1.0
Release: 3%{?dist} Release: 4%{?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
@ -50,15 +53,15 @@ BuildRequires: gcc-c++, tex(latex), texinfo-tex
BuildRequires: libpng-devel, libjpeg-devel, readline-devel BuildRequires: libpng-devel, libjpeg-devel, readline-devel
BuildRequires: tcl-devel, tk-devel, ncurses-devel BuildRequires: tcl-devel, tk-devel, ncurses-devel
BuildRequires: blas-devel >= 3.0, pcre-devel, zlib-devel BuildRequires: blas-devel >= 3.0, pcre-devel, zlib-devel
%if %{modern} %if %{with_java_headless}
%if 0%{?fedora} >= 21
BuildRequires: java-headless BuildRequires: java-headless
%else %else
%if %{modern}
BuildRequires: java-1.5.0-gcj BuildRequires: java-1.5.0-gcj
%endif
%else %else
BuildRequires: java-1.4.2-gcj-compat BuildRequires: java-1.4.2-gcj-compat
%endif %endif
%endif
%if %{system_tre} %if %{system_tre}
BuildRequires: tre-devel BuildRequires: tre-devel
BuildRequires: autoconf, automake, libtool BuildRequires: autoconf, automake, libtool
@ -216,7 +219,7 @@ environment.
Summary: R with Fedora provided Java Runtime Environment Summary: R with Fedora provided Java Runtime Environment
Group: Applications/Engineering Group: Applications/Engineering
Requires(post): R-core = %{version}-%{release} Requires(post): R-core = %{version}-%{release}
%if 0%{?fedora} >= 21 %if %{with_java_headless}
Requires(post): java-headless Requires(post): java-headless
%else %else
Requires(post): java-1.5.0-gcj Requires(post): java-1.5.0-gcj
@ -361,7 +364,6 @@ export FCFLAGS="%{optflags}"
--enable-lto \ --enable-lto \
%endif %endif
%endif %endif
rdocdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \ rdocdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
rincludedir=%{_includedir}/R \ rincludedir=%{_includedir}/R \
rsharedir=%{_datadir}/R) \ rsharedir=%{_datadir}/R) \