|
@@ -1,6 +1,6 @@
|
|
%define pkg_name R
|
|
%define pkg_name R
|
|
%define pkg_version 3.5.0
|
|
%define pkg_version 3.5.0
|
|
-%define pkg_release 1%{?_dist_release}
|
|
+%define pkg_release 2%{?_dist_release}
|
|
|
|
|
|
Summary: A language for data analysis and graphics
|
|
Summary: A language for data analysis and graphics
|
|
Summary(ja): データ解析・グラフィック化の言語
|
|
Summary(ja): データ解析・グラフィック化の言語
|
|
@@ -13,23 +13,19 @@ Group: Applications/Edutainment
|
|
URL: http://www.r-project.org
|
|
URL: http://www.r-project.org
|
|
|
|
|
|
Source0: https://cran.r-project.org/src/base/R-3/%{name}-%{version}.tar.gz
|
|
Source0: https://cran.r-project.org/src/base/R-3/%{name}-%{version}.tar.gz
|
|
-# Source0: ftp://cran.r-project.org/pub/R/src/base/R-3/%{name}-%{version}.tar.gz
|
|
|
|
# Patch0: R-release.diff.gz
|
|
# Patch0: R-release.diff.gz
|
|
|
|
|
|
-# To avoid 'make check error'
|
|
|
|
-# Patch1: reg-tests-3.R.patch
|
|
|
|
-# Patch2: reg-tests-3.Rout.save.patch
|
|
|
|
-
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gcc-gfortran libgfortran
|
|
BuildRequires: gcc-gfortran libgfortran
|
|
BuildRequires: texinfo
|
|
BuildRequires: texinfo
|
|
|
|
+
|
|
%if %{?_dist_release} == "vl6"
|
|
%if %{?_dist_release} == "vl6"
|
|
BuildRequires: R-pcre-devel
|
|
BuildRequires: R-pcre-devel
|
|
BuildRequires: tcl85-devel tk85-devel
|
|
BuildRequires: tcl85-devel tk85-devel
|
|
%endif
|
|
%endif
|
|
%if %{?_dist_release} >= "vl7"
|
|
%if %{?_dist_release} >= "vl7"
|
|
-BuildRequires: pcre-devel
|
|
+BuildRequires: pcre2-devel
|
|
BuildRequires: tcl-devel tk-devel
|
|
BuildRequires: tcl-devel tk-devel
|
|
%endif
|
|
%endif
|
|
BuildRequires: libpng-devel libjpeg-turbo-devel libtiff-devel
|
|
BuildRequires: libpng-devel libjpeg-turbo-devel libtiff-devel
|
|
@@ -39,6 +35,8 @@ BuildRequires: libSM-devel libX11-devel libICE-devel libXt-devel libXmu-devel
|
|
BuildRequires: cairo-devel pango-devel
|
|
BuildRequires: cairo-devel pango-devel
|
|
BuildRequires: libicu-devel
|
|
BuildRequires: libicu-devel
|
|
BuildRequires: curl-devel
|
|
BuildRequires: curl-devel
|
|
|
|
+BuildRequires: blas-devel
|
|
|
|
+
|
|
BuildRequires: texlive-common
|
|
BuildRequires: texlive-common
|
|
BuildRequires: texlive-collection-basic
|
|
BuildRequires: texlive-collection-basic
|
|
BuildRequires: texlive-collection-latexextra
|
|
BuildRequires: texlive-collection-latexextra
|
|
@@ -61,10 +59,14 @@ Requires: R-pcre
|
|
%endif
|
|
%endif
|
|
%if %{?_dist_release} >= "vl7"
|
|
%if %{?_dist_release} >= "vl7"
|
|
Requires: tcl tk
|
|
Requires: tcl tk
|
|
|
|
+Requires: pcre2
|
|
Obsoletes: tcl85 tk85
|
|
Obsoletes: tcl85 tk85
|
|
Obsoletes: R-pcre
|
|
Obsoletes: R-pcre
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+Requires: blas
|
|
|
|
+Requires: openblas-Rblas
|
|
|
|
+
|
|
Obsoletes: R-devel < %{version}-%{release}
|
|
Obsoletes: R-devel < %{version}-%{release}
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -97,9 +99,9 @@ Rは、条件分岐や反復計算などの制御構造を持つ正真正銘の
|
|
使用することができる。
|
|
使用することができる。
|
|
|
|
|
|
%package -n libRmath
|
|
%package -n libRmath
|
|
-Summary: standalone math library from the R project
|
|
+Summary: standalone math library from the R project
|
|
-Summary(ja): 単独で動作するRプロジェクトの数理ライブラリ
|
|
+Summary(ja): 単独で動作するRプロジェクトの数理ライブラリ
|
|
-Group: System Environment/Libraries
|
|
+Group: System Environment/Libraries
|
|
|
|
|
|
%description -n libRmath
|
|
%description -n libRmath
|
|
A standalone library of mathematical and statistical functions derived
|
|
A standalone library of mathematical and statistical functions derived
|
|
@@ -110,10 +112,10 @@ from the R project. This packages provides the shared libRmath library.
|
|
共有ライブラリを提供する。
|
|
共有ライブラリを提供する。
|
|
|
|
|
|
%package -n libRmath-devel
|
|
%package -n libRmath-devel
|
|
-Summary: standalone math library from the R project
|
|
+Summary: standalone math library from the R project
|
|
-Summary(ja): libRmathの開発ライブラリ
|
|
+Summary(ja): libRmathの開発ライブラリ
|
|
-Group: Development/Libraries
|
|
+Group: Development/Libraries
|
|
-Requires: libRmath = %{version}-%{release}
|
|
+Requires: libRmath = %{version}-%{release}
|
|
|
|
|
|
%description -n libRmath-devel
|
|
%description -n libRmath-devel
|
|
A standalone library of mathematical and statistical functions derived
|
|
A standalone library of mathematical and statistical functions derived
|
|
@@ -137,8 +139,6 @@ from the R project. This package provides the static libRmath library.
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%setup -q
|
|
%setup -q
|
|
# %patch0 -p1
|
|
# %patch0 -p1
|
|
-# %patch1
|
|
|
|
-# %patch2
|
|
|
|
|
|
|
|
cat > R.desktop <<EOF
|
|
cat > R.desktop <<EOF
|
|
[Desktop Entry]
|
|
[Desktop Entry]
|
|
@@ -162,6 +162,7 @@ export LD_LIBRARY_PATH=%{_libdir}/R/lib
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%{configure} --enable-R-shlib --with-tcltk \
|
|
%{configure} --enable-R-shlib --with-tcltk \
|
|
|
|
+ --with-blas="-lblas" \
|
|
%if %{?_dist_release} == "vl6"
|
|
%if %{?_dist_release} == "vl6"
|
|
--with-tcl-config=%{_libdir}/tclConfig85.sh \
|
|
--with-tcl-config=%{_libdir}/tclConfig85.sh \
|
|
--with-tk-config=%{_libdir}/tkConfig85.sh \
|
|
--with-tk-config=%{_libdir}/tkConfig85.sh \
|
|
@@ -170,7 +171,9 @@ export LD_LIBRARY_PATH=%{_libdir}/R/lib
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
%{__make} %{?_smp_mflags}
|
|
-(cd src/nmath/standalone; %{__make} %{?_smp_mflags})
|
|
+pushd src/nmath/standalone
|
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
+popd
|
|
%{__make} pdf
|
|
%{__make} pdf
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -180,7 +183,9 @@ export LD_LIBRARY_PATH=%{_libdir}/R/lib
|
|
%{__rm} -f ${RPM_BUILD_ROOT}%{_infodir}/dir.old
|
|
%{__rm} -f ${RPM_BUILD_ROOT}%{_infodir}/dir.old
|
|
|
|
|
|
# Install libRmath files
|
|
# Install libRmath files
|
|
-(cd src/nmath/standalone; %{make_install})
|
|
+pushd src/nmath/standalone
|
|
|
|
+%{make_install}
|
|
|
|
+popd
|
|
|
|
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}/etc/ld.so.conf.d
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}/etc/ld.so.conf.d
|
|
echo "%{_libdir}/R/lib" > \
|
|
echo "%{_libdir}/R/lib" > \
|
|
@@ -205,9 +210,14 @@ echo "%{_libdir}/R/lib" > \
|
|
%{__cp} -r ${RPM_BUILD_ROOT}%{_libdir}/%{name}/doc/* \
|
|
%{__cp} -r ${RPM_BUILD_ROOT}%{_libdir}/%{name}/doc/* \
|
|
${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/
|
|
${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/
|
|
|
|
|
|
|
|
+# make symlink for libblas.so.3 (No need to use blas-devel)
|
|
|
|
+pushd ${RPM_BUILD_ROOT}%{_libdir}/R/lib
|
|
|
|
+%{__ln_s} %{_libdir}/libblas.so.3 libblas.so
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
+
|
|
%check
|
|
%check
|
|
-export TZ="Asia/Tokyo"
|
|
+%{__make} check
|
|
-LANG=C %{__make} check
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
@@ -215,6 +225,13 @@ LANG=C %{__make} check
|
|
|
|
|
|
%post -p %{_syssbindir}/ldconfig
|
|
%post -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
|
|
+%preun
|
|
|
|
+if [ "$1" = "0" ]
|
|
|
|
+then
|
|
|
|
+ %{__rm} -f %{_libdir}/R/lib/libblas*.so.*
|
|
|
|
+ %{__rm} -f %{_libdir}/R/lib/libopenblas*.so.*
|
|
|
|
+fi
|
|
|
|
+
|
|
%postun -p %{_syssbindir}/ldconfig
|
|
%postun -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
%post -n libRmath -p %{_syssbindir}/ldconfig
|
|
%post -n libRmath -p %{_syssbindir}/ldconfig
|
|
@@ -248,8 +265,12 @@ LANG=C %{__make} check
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Jun 29 2018 Toshiaki Ara <ara_t@384.jp> 3.5.0-2
|
|
|
|
+- add Requires: openblas-Rblas
|
|
|
|
+- change using system blas
|
|
|
|
+
|
|
* Mon Apr 23 2018 Toshiaki Ara <ara_t@384.jp> 3.5.0-1
|
|
* Mon Apr 23 2018 Toshiaki Ara <ara_t@384.jp> 3.5.0-1
|
|
-- updated to 3.5.0
|
|
+- update to 3.5.0
|
|
- drop Patch 1 and 2
|
|
- drop Patch 1 and 2
|
|
|
|
|
|
* Thu Mar 15 2018 Toshiaki Ara <ara_t@384.jp> 3.4.4-1
|
|
* Thu Mar 15 2018 Toshiaki Ara <ara_t@384.jp> 3.4.4-1
|
|
@@ -487,7 +508,7 @@ LANG=C %{__make} check
|
|
- Updated to 2.5.1
|
|
- Updated to 2.5.1
|
|
- added BuildRequires: gcc-gfortran for VineSeed
|
|
- added BuildRequires: gcc-gfortran for VineSeed
|
|
- added BuildRequires: lapack-devel blas-devel
|
|
- added BuildRequires: lapack-devel blas-devel
|
|
-v- fixed %preun script
|
|
+- fixed %preun script
|
|
|
|
|
|
* Wed Dec 20 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp> 1:2.4.1-0vl1
|
|
* Wed Dec 20 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp> 1:2.4.1-0vl1
|
|
- Updated to 2.4.1
|
|
- Updated to 2.4.1
|