Rebuilt for GCC-7

This commit is contained in:
Björn Esser 2017-01-28 10:05:36 +01:00
parent 32c73d700c
commit 932f3fcc5e
1 changed files with 28 additions and 25 deletions

53
R.spec
View File

@ -41,11 +41,11 @@
%global modern 1 %global modern 1
%endif %endif
# R really wants zlib 1.2.5, bzip2 1.0.6, xz 5.0.3, curl 7.28, and pcre 8.10+ # R really wants zlib 1.2.5, bzip2 1.0.6, xz 5.0.3, curl 7.28, and pcre 8.10+
# These are too new for RHEL 5/6. HACKITY HACK TIME. # These are too new for RHEL 5/6. HACKITY HACK TIME.
%global zlibhack 0 %global zlibhack 0
%if 0%{?rhel} == 5 %if 0%{?rhel} == 5
%global zlibhack 1 %global zlibhack 1
%endif %endif
@ -96,7 +96,7 @@
Name: R Name: R
Version: 3.3.2 Version: 3.3.2
Release: 4%{?dist} Release: 5%{?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
@ -151,12 +151,12 @@ License: GPLv2+
Group: Applications/Engineering Group: Applications/Engineering
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-gfortran BuildRequires: gcc-gfortran
BuildRequires: gcc-c++, tex(latex), texinfo-tex 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: pcre-devel, zlib-devel BuildRequires: pcre-devel, zlib-devel
%if 0%{?rhel} %if 0%{?rhel}
# RHEL older than 6 # RHEL older than 6
%if 0%{?rhel} < 7 %if 0%{?rhel} < 7
# RHEL 5 used to use curl-devel, but it is now too old. # RHEL 5 used to use curl-devel, but it is now too old.
#BuildRequires: curl-devel #BuildRequires: curl-devel
@ -222,12 +222,12 @@ Requires: R-java = %{version}-%{release}
%endif %endif
%description %description
This is a metapackage that provides both core R userspace and This is a metapackage that provides both core R userspace and
all R development components. all R development components.
R is a language and environment for statistical computing and graphics. R is a language and environment for statistical computing and graphics.
R is similar to the award-winning S system, which was developed at R is similar to the award-winning S system, which was developed at
Bell Laboratories by John Chambers et al. It provides a wide Bell Laboratories by John Chambers et al. It provides a wide
variety of statistical and graphical techniques (linear and variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis, nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...). classification, clustering, ...).
@ -260,7 +260,7 @@ Requires: openblas-Rblas
%endif %endif
# These are the submodules that R-core provides. Sometimes R modules say they # These are the submodules that R-core provides. Sometimes R modules say they
# depend on one of these submodules rather than just R. These are provided for # depend on one of these submodules rather than just R. These are provided for
# packager convenience. # packager convenience.
Provides: R-base = %{version} Provides: R-base = %{version}
Provides: R-boot = 1.3.18 Provides: R-boot = 1.3.18
@ -460,7 +460,7 @@ EOF
chmod +x %{__perl_requires} chmod +x %{__perl_requires}
%build %build
# If you're seeing this, I'm sorry. This is ugly. # If you're seeing this, I'm sorry. This is ugly.
# But short of updating RHEL 5/6 (which isn't happening), this is the best worst way to keep R working. # But short of updating RHEL 5/6 (which isn't happening), this is the best worst way to keep R working.
%if %{zlibhack} %if %{zlibhack}
pushd zlib-%{zlibv} pushd zlib-%{zlibv}
@ -526,13 +526,13 @@ case "%{_target_cpu}" in
export CXX="g++ -m31" export CXX="g++ -m31"
export F77="gfortran -m31" export F77="gfortran -m31"
export FC="gfortran -m31" export FC="gfortran -m31"
;; ;;
*) *)
export CC="gcc -m32" export CC="gcc -m32"
export CXX="g++ -m32" export CXX="g++ -m32"
export F77="gfortran -m32" export F77="gfortran -m32"
export FC="gfortran -m32" export FC="gfortran -m32"
;; ;;
esac esac
%if 0%{?zlibhack} %if 0%{?zlibhack}
@ -1168,6 +1168,9 @@ R CMD javareconf \
%{_libdir}/libRmath.a %{_libdir}/libRmath.a
%changelog %changelog
* Sat Jan 28 2017 Björn Esser <besser82@fedoraproject.org> - 3.3.2-5
- Rebuilt for GCC-7
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.3.2-4 * Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.3.2-4
- Rebuild for readline 7.x - Rebuild for readline 7.x
@ -1566,11 +1569,11 @@ R CMD javareconf \
- bump for new tag - bump for new tag
* Tue Mar 24 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.1-6 * Tue Mar 24 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.1-6
- add profile.d scripts to set R_HOME - add profile.d scripts to set R_HOME
- rpmlint cleanups - rpmlint cleanups
* Mon Mar 23 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.1-5 * Mon Mar 23 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.1-5
- add R-java and R-java-devel "dummy" packages, so that we can get java dependent R-modules - add R-java and R-java-devel "dummy" packages, so that we can get java dependent R-modules
to build/install to build/install
* Wed Mar 4 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.1-4 * Wed Mar 4 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.1-4
@ -1592,7 +1595,7 @@ R CMD javareconf \
* Sun Oct 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.8.0-1 * Sun Oct 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.8.0-1
- Update to 2.8.0 - Update to 2.8.0
- New subpackage layout: R-core is functional userspace, R is metapackage - New subpackage layout: R-core is functional userspace, R is metapackage
requiring everything requiring everything
- Fix system bzip2 detection - Fix system bzip2 detection
@ -1619,7 +1622,7 @@ R CMD javareconf \
- fix poorly constructed file paths in html/packages.html (bz 442727) - fix poorly constructed file paths in html/packages.html (bz 442727)
* Tue May 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-2 * Tue May 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.7.0-2
- add patch from Martyn Plummer to avoid possible bad path hardcoding in - add patch from Martyn Plummer to avoid possible bad path hardcoding in
/usr/bin/Rscript /usr/bin/Rscript
- properly handle ia64 case (bz 446181) - properly handle ia64 case (bz 446181)
@ -1639,12 +1642,12 @@ R CMD javareconf \
- Update indices in the right place. - Update indices in the right place.
* Mon Jan 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.6.1-3 * Mon Jan 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.6.1-3
- move INSTALL back into R main package, as it is useful without the - move INSTALL back into R main package, as it is useful without the
other -devel bits (e.g. installing noarch package from CRAN) other -devel bits (e.g. installing noarch package from CRAN)
* Tue Dec 11 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.6.1-2 * Tue Dec 11 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.6.1-2
- based on changes from Martyn Plummer <martyn.plummer@r-project.org> - based on changes from Martyn Plummer <martyn.plummer@r-project.org>
- use configure options rdocdir, rincludedir, rsharedir - use configure options rdocdir, rincludedir, rsharedir
- use DESTDIR at installation - use DESTDIR at installation
- remove obsolete generation of packages.html - remove obsolete generation of packages.html
- move header files and INSTALL R-devel package - move header files and INSTALL R-devel package
@ -1796,11 +1799,11 @@ R CMD javareconf \
* Tue Oct 12 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.0-0.fdr.2 * Tue Oct 12 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.0-0.fdr.2
- Info support is now conditional on the macro Rinfo, which is only - Info support is now conditional on the macro Rinfo, which is only
defined for Fedora 1 and 2. defined for Fedora 1 and 2.
* Thu Oct 7 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.0-0.fdr.1 * Thu Oct 7 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.0-0.fdr.1
- Built R 2.0.0 - Built R 2.0.0
- There is no longer a BUGS file, so this is not installed as a - There is no longer a BUGS file, so this is not installed as a
documentation file. documentation file.
* Mon Aug 9 2004 Martyn Plummer <plummer@iarc.fr> 0:1.9.1-0.fdr.4 * Mon Aug 9 2004 Martyn Plummer <plummer@iarc.fr> 0:1.9.1-0.fdr.4
@ -1837,14 +1840,14 @@ R CMD javareconf \
* Mon May 03 2004 Martyn Plummer <plummer@iarc.fr> 0:1.9.0-0.fdr.1 * Mon May 03 2004 Martyn Plummer <plummer@iarc.fr> 0:1.9.0-0.fdr.1
- R.spec file now has mode 644. Previously it was unreadable by other - R.spec file now has mode 644. Previously it was unreadable by other
users and this was causing a crash building under mach. users and this was causing a crash building under mach.
- Changed version number to conform to Fedora conventions. - Changed version number to conform to Fedora conventions.
- Removed Provides: and Obsoletes: R-base, R-recommended, which are - Removed Provides: and Obsoletes: R-base, R-recommended, which are
now several years old. Nobody should have a copy of R-base on a now several years old. Nobody should have a copy of R-base on a
supported platform. supported platform.
- Changed buildroot to Fedora standard - Changed buildroot to Fedora standard
- Added Requires(post,preun): info - Added Requires(post,preun): info
- Redirect output from postinstall/uninstall scripts to /dev/null - Redirect output from postinstall/uninstall scripts to /dev/null
- Added BuildRequires tags necessary to install R with full - Added BuildRequires tags necessary to install R with full
capabilities on a clean mach buildroot. Conditional buildrequires capabilities on a clean mach buildroot. Conditional buildrequires
for tcl-devel and tk-devel which were not present on RH9 or earlier. for tcl-devel and tk-devel which were not present on RH9 or earlier.
@ -1854,7 +1857,7 @@ R CMD javareconf \
* Mon Mar 15 2004 Martyn Plummer <plummer@iarc.fr> * Mon Mar 15 2004 Martyn Plummer <plummer@iarc.fr>
- No need to export optimization flags. This is done by %%configure - No need to export optimization flags. This is done by %%configure
- Folded info installation into %%makeinstall - Folded info installation into %%makeinstall
- Check that RPM_BASE_ROOT is not set to "/" before cleaning up - Check that RPM_BASE_ROOT is not set to "/" before cleaning up
* Tue Feb 03 2004 Martyn Plummer <plummer@iarc.fr> * Tue Feb 03 2004 Martyn Plummer <plummer@iarc.fr>