2024-01-05 17:53:45 +01:00
|
|
|
### AUTOUPDATE-OFF: 4
|
2024-01-05 17:53:45 +01:00
|
|
|
%define majversion %(echo %version | cut -d. -f 1)
|
|
|
|
Name: R
|
2024-01-05 17:53:45 +01:00
|
|
|
Version: 3.1.3
|
2024-01-05 17:53:45 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: R is a free software environment for statistical computing and graphics
|
|
|
|
Group: Applications/Mathematics
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
|
|
URL: http://www.r-project.org/
|
|
|
|
Source: http://cran.r-project.org/src/base/R-%{majversion}/R-%{version}.tar.gz
|
|
|
|
Source1: %{name}.png
|
|
|
|
Patch0: R-2.15.2-texinfo-5.0.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: gcc-fortran
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libcairo-devel
|
|
|
|
BuildRequires: libglib-devel
|
|
|
|
BuildRequires: libICE-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libncurses-devel
|
|
|
|
BuildRequires: libpango-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libreadline-devel
|
|
|
|
BuildRequires: libSM-devel
|
|
|
|
BuildRequires: libtcl-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtk-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
BuildRequires: libXmu-devel
|
|
|
|
BuildRequires: libXScrnSaver-devel
|
|
|
|
BuildRequires: libXt-devel
|
|
|
|
BuildRequires: libz-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: tetex-latex
|
|
|
|
BuildRequires: libtk
|
|
|
|
BuildRequires: paper-utils
|
|
|
|
BuildRequires: liblapack-devel
|
|
|
|
BuildRequires: libX11-devel >= 1.1.1
|
|
|
|
BuildRequires: libpcre-devel
|
|
|
|
BuildRequires: latex-font-inconsolata
|
2024-01-05 17:53:45 +01:00
|
|
|
%ifnarch arm
|
|
|
|
BuildRequires: libquadmath-devel
|
|
|
|
%endif
|
2024-01-05 17:53:45 +01:00
|
|
|
Requires: latex-font-inconsolata
|
|
|
|
Requires(post):%{__install_info}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
R is a language and environment for statistical computing and graphics.
|
|
|
|
It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues.
|
|
|
|
R can be considered as a different implementation of S.
|
|
|
|
There are some important differences, but much code written for S runs unaltered under R.
|
|
|
|
|
|
|
|
R provides a wide variety of statistical (linear and nonlinear modelling,
|
|
|
|
classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible.
|
|
|
|
The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.
|
|
|
|
|
|
|
|
One of R's strengths is the ease with which well-designed publication-quality plots can be produced, including mathematical symbols and formulae where needed. Great care has been taken over the defaults for the minor design choices in graphics, but the user retains full control.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
echo 'R_LIBS_SITE=${R_LIBS_SITE-'"'/usr/local/lib/R/site-library:/usr/local/lib/R/library:%{_libdir}/R/library:%{_datadir}/R/library'"'}' >> etc/Renviron.in
|
|
|
|
export R_PDFVIEWER="%{_bindir}/xdg-open"
|
|
|
|
export R_PRINTCMD="lpr"
|
|
|
|
export R_BROWSER="%{_bindir}/xdg-open"
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
--enable-R-shlib \
|
|
|
|
LIBS="-lncurses" \
|
|
|
|
ac_cv_path_INSTALL_INFO=/sbin/install-info
|
|
|
|
|
|
|
|
|
|
|
|
%make R_LIBS_USER=`pwd`/library
|
|
|
|
%make pdf info
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeoldinstall install-info
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir.old
|
|
|
|
|
|
|
|
# Fix location of R_HOME_DIR in shell wrapper
|
|
|
|
sed -e "s@R_HOME_DIR=.*@R_HOME_DIR=%{_libdir}/%{name}@" < bin/%{name} \
|
|
|
|
> %{buildroot}%{_libdir}/R/bin/%{name}
|
|
|
|
sed -e "s@R_HOME_DIR=.*@R_HOME_DIR=%{_libdir}/%{name}@" < bin/%{name} \
|
|
|
|
> %{buildroot}%{_bindir}/%{name}
|
|
|
|
chmod 755 %{buildroot}%{_libdir}/%{name}/bin/%{name}
|
|
|
|
chmod 755 %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
# Remove package indices. They are rebuilt by the %post script
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{name}/doc/html/function.html
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{name}/doc/html/packages.html
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{name}/doc/html/search/index.txt
|
|
|
|
|
|
|
|
# Remove duplicated documentation files
|
|
|
|
(cd %{buildroot}%{_libdir}/R; \
|
|
|
|
rm -f COPYING NEWS doc/AUTHORS doc/COPYING doc/COPYING.LIB \
|
|
|
|
doc/COPYRIGHTS doc/NEWS doc/THANKS
|
|
|
|
)
|
|
|
|
|
|
|
|
# Create the system menu entry
|
|
|
|
install -D -m 644 %{S:1} \
|
|
|
|
%{buildroot}%{_datadir}/icons/crystalsvg/16x16/apps/%{name}.png
|
|
|
|
install -d %{buildroot}%{_datadir}/applications
|
|
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=%{name}
|
|
|
|
GenericName=Development environment for statistical computing
|
|
|
|
GenericName[it]=Ambiente di sviluppo per l'analisi statistica
|
|
|
|
Exec=%{name}
|
|
|
|
Icon=%{name}
|
|
|
|
Terminal=1
|
|
|
|
Type=Application
|
|
|
|
X-KDE-StartupNotify=true
|
|
|
|
Categories=Application;Development;
|
|
|
|
EOF
|
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/R.conf << _EOF
|
|
|
|
%{_libdir}/%{name}/lib
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%define info_files %{name}-admin %{name}-data %{name}-exts %{name}-FAQ %{name}-intro %{name}-ints %{name}-lang
|
|
|
|
|
|
|
|
%post
|
|
|
|
#%ifnarch x86_64
|
2024-01-05 17:53:45 +01:00
|
|
|
for info_file in %info_files
|
|
|
|
do %install_info $info_file.info
|
|
|
|
done
|
2024-01-05 17:53:45 +01:00
|
|
|
#%endif
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
## Update package indices
|
|
|
|
#%{_bindir}/%{name} CMD perl %{_libdir}/%{name}/share/perl/build-help.pl \
|
|
|
|
# --htmllists &>/dev/null
|
|
|
|
#cat %{_libdir}/%{name}/library/*/CONTENTS \
|
|
|
|
# > %{_libdir}/%{name}/doc/html/search/index.txt 2>/dev/null
|
|
|
|
:
|
|
|
|
|
2024-01-05 17:53:45 +01:00
|
|
|
%preun
|
2024-01-05 17:53:45 +01:00
|
|
|
#%ifnarch x86_64
|
2024-01-05 17:53:45 +01:00
|
|
|
for info_file in %info_files
|
|
|
|
do %uninstall_info $info_file.info
|
|
|
|
done
|
2024-01-05 17:53:45 +01:00
|
|
|
#%endif
|
2024-01-05 17:53:45 +01:00
|
|
|
:
|
2024-01-05 17:53:45 +01:00
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/ld.so.conf.d/R.conf
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/Rscript
|
|
|
|
%{_libdir}/%{name}
|
|
|
|
%{_datadir}/icons/crystalsvg/16x16/apps/%{name}.png
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
# FIXME: tetex + x86_64 = problems
|
|
|
|
#%ifnarch x86_64
|
|
|
|
#%{_infodir}/*
|
|
|
|
#%endif
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
#%doc NEWS ONEWS OONEWS README
|
|
|
|
#%doc doc/FAQ
|
2024-01-05 17:53:45 +01:00
|
|
|
%{_infodir}/R-FAQ.info.gz
|
|
|
|
%{_infodir}/R-admin.info.gz
|
|
|
|
%{_infodir}/R-data.info.gz
|
|
|
|
%{_infodir}/R-exts.info-1.gz
|
|
|
|
%{_infodir}/R-exts.info-2.gz
|
|
|
|
%{_infodir}/R-exts.info.gz
|
|
|
|
%{_infodir}/R-intro.info.gz
|
|
|
|
%{_infodir}/R-ints.info.gz
|
|
|
|
%{_infodir}/R-lang.info.gz
|
2024-01-05 17:53:45 +01:00
|
|
|
%{_libdir}/pkgconfig/libR.pc
|
|
|
|
%doc doc/manual/R-admin.pdf
|
|
|
|
%doc doc/manual/R-FAQ.pdf
|
|
|
|
%doc doc/manual/R-lang.pdf
|
|
|
|
%doc doc/manual/R-data.pdf
|
|
|
|
%doc doc/manual/R-intro.pdf
|
|
|
|
%doc COPYING
|
|
|
|
#%doc doc/COPYING doc/THANKS doc/COPYRIGHTS doc/AUTHORS
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:53:45 +01:00
|
|
|
* Mon Mar 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.3-1mamba
|
|
|
|
- update to 3.1.3
|
|
|
|
|
2024-01-05 17:53:45 +01:00
|
|
|
* Fri Nov 21 2014 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:53:45 +01:00
|
|
|
* Sun Jul 13 2014 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:53:45 +01:00
|
|
|
* Wed May 28 2014 Automatic Build System <autodist@mambasoft.it> 3.1.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Sep 30 2013 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:53:45 +01:00
|
|
|
* Thu Jun 13 2013 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue May 07 2013 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Mar 07 2013 Automatic Build System <autodist@mambasoft.it> 2.15.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Oct 27 2012 Automatic Build System <autodist@mambasoft.it> 2.15.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Aug 15 2012 Automatic Build System <autodist@mambasoft.it> 2.15.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Jun 11 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.15.0-2mamba
|
|
|
|
- Add R library path to configuration file for R packages
|
|
|
|
|
|
|
|
* Sat Jun 09 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.15.0-1mamba
|
|
|
|
- update to 2.15.0
|
|
|
|
|
|
|
|
* Fri Mar 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.2-1mamba
|
|
|
|
- update to 2.12.2
|
|
|
|
- rebuilt with --enable-R-shlib
|
|
|
|
|
|
|
|
* Tue Feb 22 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11.1-4mamba
|
|
|
|
- use /etc/ld.conf.d pluggable directory to set library directory
|
|
|
|
- remove index creation in post scripts
|
|
|
|
|
|
|
|
* Wed Jan 12 2011 Automatic Build System <autodist@mambasoft.it> 2.11.1-3mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jun 29 2010 Automatic Build System <autodist@mambasoft.it> 2.11.1-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 2.11.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Apr 27 2010 Automatic Build System <autodist@mambasoft.it> 2.11.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 26 2010 Automatic Build System <autodist@mambasoft.it> 2.10.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Oct 28 2009 Automatic Build System <autodist@mambasoft.it> 2.10.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Aug 28 2009 Automatic Build System <autodist@mambasoft.it> 2.9.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Jul 04 2009 Automatic Build System <autodist@mambasoft.it> 2.9.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Jun 25 2009 Automatic Build System <autodist@mambasoft.it> 2.9.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jan 21 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Sep 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.2-1mamba
|
|
|
|
- update to 2.7.2
|
|
|
|
|
|
|
|
* Sat May 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.0-1mamba
|
|
|
|
- update to 2.5.0
|
|
|
|
|
|
|
|
* Sun Feb 18 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.1-2qilnx
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Tue Feb 06 2007 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.4.1-1qilnx
|
|
|
|
- update to version 2.4.1 by autospec
|
|
|
|
|
|
|
|
* Sat Nov 18 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.4.0-1qilnx
|
|
|
|
- package created by autospec
|