Репозитории ALT
S: | 4.2.2-alt1 |
5.1: | 2.9.2-alt1 |
4.1: | 2.6.2-alt1 |
4.0: | 2.4.1-alt1 |
3.0: | 1.9.1-alt1 |
Группа :: Науки/Математика
Пакет: R-base
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: R-base
Version: 4.2.2
Release: alt1
Summary: A language for data analysis and graphics
License: GPLv2
Group: Sciences/Mathematics
Packager: Kirill Maslinsky <kirill at altlinux.org>
URL: http://www.r-project.org
Source: R-%version.tar
Patch: R-%version-%release.patch
Patch1: R-base-4.1.3-alt-fix-build-libcurl8.patch
ExcludeArch: i586
# Automatically added by buildreq on Thu Jan 19 2023
# optimized out: alt-os-release fontconfig ghostscript-classic glib2-devel glibc-kernheaders-generic glibc-kernheaders-x86 gnu-config libICE-devel libSM-devel libX11-devel libXext-devel libXt-devel libcairo-devel libgfortran-devel libgpg-error libharfbuzz-devel libicu-devel libopenblas-devel libpng-devel libquadmath-devel libsasl2-3 libstdc++-devel perl perl-Encode perl-Text-Unidecode perl-Unicode-EastAsianWidth perl-Unicode-Normalize perl-libintl perl-parent pkg-config python3 python3-base sh4 tcl-devel tex-common texlive texlive-collection-basic texlive-dist tzdata xorg-proto-devel zlib-devel
BuildRequires: bzlib-devel gcc-c++ gcc-fortran ghostscript-common java-headless libXmu-devel libcurl-devel libgomp-devel libjpeg-devel liblapack-devel liblzma-devel libpango-devel libpcre2-devel libreadline-devel libtiff-devel libtre-devel makeinfo texi2dvi tk-devel tex-common texlive texlive-collection-basic texlive-dist
BuildRequires: libopenblas-devel
BuildPreReq: liblapack-devel libicu-devel libgomp-devel
%description
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
R is designed as a true computer language with control-flow
constructions for iteration and alternation, and it allows users to
add additional functionality by defining new functions. For
computationally intensive tasks, C, C++ and Fortran code can be
linked and called at run time.
S is the statistician's Matlab and R is to S what Octave is to Matlab.
%prep
%setup -q -n R-%version
%patch -p1
%patch1 -p1
rm src/extra/blas/*.f src/modules/lapack/*.f
%build
%define verid %(v=%version; IFS=.; set $v; echo "$1.$2")
%define Rhome %_libdir/R
%define Rbindir %Rhome/bin
%define Rdocdir %_docdir/R-%verid
export lt_cv_prog_cc_static_works=no \
ac_cv_path_R_ZIPCMD=zip ac_cv_path_R_UNZIPCMD=unzip \
ac_cv_path_R_BROWSER=xdg-open ac_cv_path_R_PDFVIEWER=xdg-open \
ac_cv_path_PAGER='less -isR' ac_cv_prog_R_PRINTCMD=lpr
%add_optflags -fno-strict-aliasing
%ifarch ppc64le
%define longdouble --disable-long-double
%else
%define longdouble --enable-long-double
%endif
%configure \
--enable-prebuilt-html \
--enable-R-shlib --with-x \
--disable-rpath \
--with-system-tre \
--with-gnu-ld \
%longdouble \
--with-blas=openblas --with-lapack=lapack \
--with-tcl-config=%_libdir/tclConfig.sh --with-tk-config=%_libdir/tkConfig.sh \
--libdir='${prefix}/%_lib' rincludedir='${prefix}/include/R' \
rdocdir='${prefix}/share/doc/R-%verid'
%make_build
%make_build pdf info
%install
%makeinstall_std install-pdf install-info
mv %buildroot{%Rhome/lib,%_libdir}/libR.so
# this symlink is needed for R-studio
ln -s $(relative %_libdir/libR.so %Rhome/lib/libR.so) %buildroot%Rhome/lib/libR.so
# make compatibility symlink and provides
ln -s libR.so %buildroot%_libdir/libR-2.11.so
%filter_from_provides /^libR\.so/{p;s/R/R-2.11/}
ln -s `relative %Rdocdir %Rhome/doc` %buildroot%Rhome/doc
ln -s `relative %_includedir/R %Rhome/include` %buildroot%Rhome/include
cmp %buildroot%_bindir/R %buildroot%Rhome/bin/R
ln -snfv `relative %Rhome/bin/R %_bindir/R` %buildroot%_bindir/R
cmp %buildroot%_bindir/Rscript %buildroot%Rhome/bin/Rscript
ln -snfv `relative %Rhome/bin/Rscript %_bindir/Rscript` %buildroot%_bindir/Rscript
fgrep -r %buildroot %buildroot && exit 1
mkdir -p %buildroot/etc/R
mv %buildroot%Rhome/etc/* %buildroot/etc/R/
rmdir %buildroot%Rhome/etc
ln -s `relative /etc/R %Rhome/etc` %buildroot%Rhome/etc
mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=R
Comment=R - a language for statistical computing
Icon=R
Exec=R
Terminal=true
Categories=Science;Math;
EOF
# use system libtool
[ -f %buildroot%Rhome/bin/libtool ]
ln -snfv `relative %_bindir/libtool %Rhome/bin/libtool` %buildroot%Rhome/bin/libtool
%define _perl_lib_path %Rhome/share/perl
%add_findprov_skiplist %Rhome/share/perl/*.pl
rm -fv %buildroot%_infodir/dir*
%check
export TZ="UTC"
make check
%files
%doc doc/NEWS README
%_bindir/R
%_bindir/Rscript
%_man1dir/R.*
%_man1dir/Rscript.*
%_libdir/libR.so
%_libdir/libR-2.11.so
%_desktopdir/%name.desktop
%dir %Rhome
%dir %Rhome/lib
%Rhome/lib/*
%dir %Rbindir
%Rbindir/R
%Rbindir/Rscript
%Rbindir/BATCH
%Rbindir/Rcmd
%Rbindir/Rd2pdf
%Rbindir/Rdconv
%Rbindir/Rprof
%Rbindir/pager
%Rbindir/Stangle
%Rbindir/Sweave
%Rbindir/javareconf
%Rbindir/rtags
%dir %Rbindir/exec
%Rbindir/exec/R
%dir /etc/R
%config(noreplace) /etc/R/*
%Rhome/etc
%define R_library_path %Rhome/library
%dir %R_library_path
%define R_library() \
%dir %R_library_path/%1 \
%R_library_path/%1/* \
%doc %R_library_path/%1/html
# avoid dependency on R-devel
%add_findreq_skiplist %R_library_path/*/include/*.h
# Priority: base
%R_library base
%R_library datasets
%R_library grDevices
%R_library graphics
%R_library grid
%R_library methods
%R_library splines
%R_library stats
%R_library stats4
%R_library tools
%R_library utils
%R_library compiler
# Priority: recommended
%R_library KernSmooth
%R_library MASS
%R_library Matrix
%R_library boot
%R_library class
%R_library cluster
%R_library codetools
%R_library foreign
%R_library lattice
%R_library mgcv
%R_library nlme
%R_library nnet
%R_library rpart
%R_library spatial
%R_library survival
%R_library parallel
%R_library_path/translations
%dir %Rhome/modules
%Rhome/modules/*.so*
%dir %Rhome/share
%Rhome/share/*
%dir %Rdocdir
%doc %Rdocdir/[A-Z]*
%exclude %Rdocdir/COPYING*
%Rhome/doc
%package -n R-full
Summary: Meta-package that installs all components of R Statitical Environment
Group: Development/Other
Requires: R-devel = %version-%release R-tcltk = %version-%release R-doc-html = %version-%release gcc-c++ gcc-fortran liblapack-devel make
%description -n R-full
Meta-package that installs all components of R Statitical Environment
%files -n R-full
%package -n R-devel
Summary: Development files for the R Statistical Environment
Group: Development/Other
Requires(pre,postun): R-base = %version-%release
%description -n R-devel
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-devel
%dir %Rbindir
%Rbindir/COMPILE
%Rbindir/INSTALL
%Rbindir/LINK
%Rbindir/REMOVE
%Rbindir/Rdiff
%Rbindir/SHLIB
%Rbindir/build
%Rbindir/check
%Rbindir/config
%Rbindir/libtool
%Rbindir/mkinstalldirs
%dir %_includedir/R
%_includedir/R/*.h
%dir %_includedir/R/R_ext
%_includedir/R/R_ext/*.h
%Rhome/include
%dir %Rhome
%_pkgconfigdir/libR.pc
%package -n R-tcltk
Summary: Tcl/Tk Interface for the R Statistical Environment
Group: Sciences/Mathematics
Requires: R-base = %version-%release
%description -n R-tcltk
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
This package provides access to the platform-independent Tcl scripting
language and Tk GUI elements.
%files -n R-tcltk
%add_tcl_lib_path %R_library_path/tcltk
%dir %R_library_path
%R_library tcltk
%package -n R-doc-html
Summary: HTML manuals for the R Statistical Environment
Group: Sciences/Mathematics
Requires: R-base = %version-%release
Requires: xdg-utils
%description -n R-doc-html
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-doc-html
%dir %Rdocdir
%dir %Rdocdir/html/
%doc %Rdocdir/html/*
%dir %Rdocdir/manual/
%doc %Rdocdir/manual/*.html
%dir %Rdocdir/manual/images/
%doc %Rdocdir/manual/images/*.png
%package -n R-doc-pdf
Summary: PDF manuals for the R Statistical Environment
Group: Sciences/Mathematics
Conflicts: R-base > %version, R-base < %version
Requires: xdg-utils
%description -n R-doc-pdf
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-doc-pdf
%dir %Rdocdir
%dir %Rdocdir/manual/
%doc %Rdocdir/manual/*.pdf
%package -n R-doc-info
Summary: Info manuals for the R Statistical Environment
Group: Sciences/Mathematics
Conflicts: R-base > %version, R-base < %version
%description -n R-doc-info
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-doc-info
%_infodir/R-*.info*
%changelog
…
Полный changelog можно просмотреть здесь
Version: 4.2.2
Release: alt1
Summary: A language for data analysis and graphics
License: GPLv2
Group: Sciences/Mathematics
Packager: Kirill Maslinsky <kirill at altlinux.org>
URL: http://www.r-project.org
Source: R-%version.tar
Patch: R-%version-%release.patch
Patch1: R-base-4.1.3-alt-fix-build-libcurl8.patch
ExcludeArch: i586
# Automatically added by buildreq on Thu Jan 19 2023
# optimized out: alt-os-release fontconfig ghostscript-classic glib2-devel glibc-kernheaders-generic glibc-kernheaders-x86 gnu-config libICE-devel libSM-devel libX11-devel libXext-devel libXt-devel libcairo-devel libgfortran-devel libgpg-error libharfbuzz-devel libicu-devel libopenblas-devel libpng-devel libquadmath-devel libsasl2-3 libstdc++-devel perl perl-Encode perl-Text-Unidecode perl-Unicode-EastAsianWidth perl-Unicode-Normalize perl-libintl perl-parent pkg-config python3 python3-base sh4 tcl-devel tex-common texlive texlive-collection-basic texlive-dist tzdata xorg-proto-devel zlib-devel
BuildRequires: bzlib-devel gcc-c++ gcc-fortran ghostscript-common java-headless libXmu-devel libcurl-devel libgomp-devel libjpeg-devel liblapack-devel liblzma-devel libpango-devel libpcre2-devel libreadline-devel libtiff-devel libtre-devel makeinfo texi2dvi tk-devel tex-common texlive texlive-collection-basic texlive-dist
BuildRequires: libopenblas-devel
BuildPreReq: liblapack-devel libicu-devel libgomp-devel
%description
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
R is designed as a true computer language with control-flow
constructions for iteration and alternation, and it allows users to
add additional functionality by defining new functions. For
computationally intensive tasks, C, C++ and Fortran code can be
linked and called at run time.
S is the statistician's Matlab and R is to S what Octave is to Matlab.
%prep
%setup -q -n R-%version
%patch -p1
%patch1 -p1
rm src/extra/blas/*.f src/modules/lapack/*.f
%build
%define verid %(v=%version; IFS=.; set $v; echo "$1.$2")
%define Rhome %_libdir/R
%define Rbindir %Rhome/bin
%define Rdocdir %_docdir/R-%verid
export lt_cv_prog_cc_static_works=no \
ac_cv_path_R_ZIPCMD=zip ac_cv_path_R_UNZIPCMD=unzip \
ac_cv_path_R_BROWSER=xdg-open ac_cv_path_R_PDFVIEWER=xdg-open \
ac_cv_path_PAGER='less -isR' ac_cv_prog_R_PRINTCMD=lpr
%add_optflags -fno-strict-aliasing
%ifarch ppc64le
%define longdouble --disable-long-double
%else
%define longdouble --enable-long-double
%endif
%configure \
--enable-prebuilt-html \
--enable-R-shlib --with-x \
--disable-rpath \
--with-system-tre \
--with-gnu-ld \
%longdouble \
--with-blas=openblas --with-lapack=lapack \
--with-tcl-config=%_libdir/tclConfig.sh --with-tk-config=%_libdir/tkConfig.sh \
--libdir='${prefix}/%_lib' rincludedir='${prefix}/include/R' \
rdocdir='${prefix}/share/doc/R-%verid'
%make_build
%make_build pdf info
%install
%makeinstall_std install-pdf install-info
mv %buildroot{%Rhome/lib,%_libdir}/libR.so
# this symlink is needed for R-studio
ln -s $(relative %_libdir/libR.so %Rhome/lib/libR.so) %buildroot%Rhome/lib/libR.so
# make compatibility symlink and provides
ln -s libR.so %buildroot%_libdir/libR-2.11.so
%filter_from_provides /^libR\.so/{p;s/R/R-2.11/}
ln -s `relative %Rdocdir %Rhome/doc` %buildroot%Rhome/doc
ln -s `relative %_includedir/R %Rhome/include` %buildroot%Rhome/include
cmp %buildroot%_bindir/R %buildroot%Rhome/bin/R
ln -snfv `relative %Rhome/bin/R %_bindir/R` %buildroot%_bindir/R
cmp %buildroot%_bindir/Rscript %buildroot%Rhome/bin/Rscript
ln -snfv `relative %Rhome/bin/Rscript %_bindir/Rscript` %buildroot%_bindir/Rscript
fgrep -r %buildroot %buildroot && exit 1
mkdir -p %buildroot/etc/R
mv %buildroot%Rhome/etc/* %buildroot/etc/R/
rmdir %buildroot%Rhome/etc
ln -s `relative /etc/R %Rhome/etc` %buildroot%Rhome/etc
mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=R
Comment=R - a language for statistical computing
Icon=R
Exec=R
Terminal=true
Categories=Science;Math;
EOF
# use system libtool
[ -f %buildroot%Rhome/bin/libtool ]
ln -snfv `relative %_bindir/libtool %Rhome/bin/libtool` %buildroot%Rhome/bin/libtool
%define _perl_lib_path %Rhome/share/perl
%add_findprov_skiplist %Rhome/share/perl/*.pl
rm -fv %buildroot%_infodir/dir*
%check
export TZ="UTC"
make check
%files
%doc doc/NEWS README
%_bindir/R
%_bindir/Rscript
%_man1dir/R.*
%_man1dir/Rscript.*
%_libdir/libR.so
%_libdir/libR-2.11.so
%_desktopdir/%name.desktop
%dir %Rhome
%dir %Rhome/lib
%Rhome/lib/*
%dir %Rbindir
%Rbindir/R
%Rbindir/Rscript
%Rbindir/BATCH
%Rbindir/Rcmd
%Rbindir/Rd2pdf
%Rbindir/Rdconv
%Rbindir/Rprof
%Rbindir/pager
%Rbindir/Stangle
%Rbindir/Sweave
%Rbindir/javareconf
%Rbindir/rtags
%dir %Rbindir/exec
%Rbindir/exec/R
%dir /etc/R
%config(noreplace) /etc/R/*
%Rhome/etc
%define R_library_path %Rhome/library
%dir %R_library_path
%define R_library() \
%dir %R_library_path/%1 \
%R_library_path/%1/* \
%doc %R_library_path/%1/html
# avoid dependency on R-devel
%add_findreq_skiplist %R_library_path/*/include/*.h
# Priority: base
%R_library base
%R_library datasets
%R_library grDevices
%R_library graphics
%R_library grid
%R_library methods
%R_library splines
%R_library stats
%R_library stats4
%R_library tools
%R_library utils
%R_library compiler
# Priority: recommended
%R_library KernSmooth
%R_library MASS
%R_library Matrix
%R_library boot
%R_library class
%R_library cluster
%R_library codetools
%R_library foreign
%R_library lattice
%R_library mgcv
%R_library nlme
%R_library nnet
%R_library rpart
%R_library spatial
%R_library survival
%R_library parallel
%R_library_path/translations
%dir %Rhome/modules
%Rhome/modules/*.so*
%dir %Rhome/share
%Rhome/share/*
%dir %Rdocdir
%doc %Rdocdir/[A-Z]*
%exclude %Rdocdir/COPYING*
%Rhome/doc
%package -n R-full
Summary: Meta-package that installs all components of R Statitical Environment
Group: Development/Other
Requires: R-devel = %version-%release R-tcltk = %version-%release R-doc-html = %version-%release gcc-c++ gcc-fortran liblapack-devel make
%description -n R-full
Meta-package that installs all components of R Statitical Environment
%files -n R-full
%package -n R-devel
Summary: Development files for the R Statistical Environment
Group: Development/Other
Requires(pre,postun): R-base = %version-%release
%description -n R-devel
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-devel
%dir %Rbindir
%Rbindir/COMPILE
%Rbindir/INSTALL
%Rbindir/LINK
%Rbindir/REMOVE
%Rbindir/Rdiff
%Rbindir/SHLIB
%Rbindir/build
%Rbindir/check
%Rbindir/config
%Rbindir/libtool
%Rbindir/mkinstalldirs
%dir %_includedir/R
%_includedir/R/*.h
%dir %_includedir/R/R_ext
%_includedir/R/R_ext/*.h
%Rhome/include
%dir %Rhome
%_pkgconfigdir/libR.pc
%package -n R-tcltk
Summary: Tcl/Tk Interface for the R Statistical Environment
Group: Sciences/Mathematics
Requires: R-base = %version-%release
%description -n R-tcltk
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
This package provides access to the platform-independent Tcl scripting
language and Tk GUI elements.
%files -n R-tcltk
%add_tcl_lib_path %R_library_path/tcltk
%dir %R_library_path
%R_library tcltk
%package -n R-doc-html
Summary: HTML manuals for the R Statistical Environment
Group: Sciences/Mathematics
Requires: R-base = %version-%release
Requires: xdg-utils
%description -n R-doc-html
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-doc-html
%dir %Rdocdir
%dir %Rdocdir/html/
%doc %Rdocdir/html/*
%dir %Rdocdir/manual/
%doc %Rdocdir/manual/*.html
%dir %Rdocdir/manual/images/
%doc %Rdocdir/manual/images/*.png
%package -n R-doc-pdf
Summary: PDF manuals for the R Statistical Environment
Group: Sciences/Mathematics
Conflicts: R-base > %version, R-base < %version
Requires: xdg-utils
%description -n R-doc-pdf
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-doc-pdf
%dir %Rdocdir
%dir %Rdocdir/manual/
%doc %Rdocdir/manual/*.pdf
%package -n R-doc-info
Summary: Info manuals for the R Statistical Environment
Group: Sciences/Mathematics
Conflicts: R-base > %version, R-base < %version
%description -n R-doc-info
R is `GNU S' - A language and environment for statistical computing
and graphics. R is similar to the award-winning S system, which was
developed at Bell Laboratories by John Chambers et al. It provides a
wide variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).
%files -n R-doc-info
%_infodir/R-*.info*
%changelog
…
Полный changelog можно просмотреть здесь