add libR and libR-devel packages [release 3.6.3-3mamba;Thu Jun 18 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 17:53:45 +01:00
parent ebb5e438e9
commit 606420308a

102
R.spec
View File

@ -2,7 +2,7 @@
%define majversion %(echo %version | cut -d. -f 1)
Name: R
Version: 3.6.3
Release: 1mamba
Release: 3mamba
Summary: R is a free software environment for statistical computing and graphics
Group: Applications/Mathematics
Vendor: openmamba
@ -16,26 +16,31 @@ License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: gcc-fortran
BuildRequires: glibc-devel
BuildRequires: libcairo-devel
BuildRequires: libglib-devel
BuildRequires: ldconfig
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: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libcurl-devel
BuildRequires: libglib-devel
BuildRequires: libgomp-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libicu-devel
BuildRequires: libjpeg-devel
BuildRequires: liblzma-devel
BuildRequires: libncurses-devel
BuildRequires: libpango-devel
BuildRequires: libpcre-devel
BuildRequires: libpcre2-devel
BuildRequires: libpng-devel
BuildRequires: libreadline-devel
BuildRequires: libtiff-devel
BuildRequires: libtirpc-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
BuildRequires: pkg-config
## AUTOBUILDREQ-END
BuildRequires: tetex-latex
BuildRequires: libtk
@ -44,10 +49,11 @@ BuildRequires: liblapack-devel
BuildRequires: libX11-devel >= 1.1.1
BuildRequires: libpcre-devel
BuildRequires: latex-font-inconsolata
%ifnarch arm
%ifnarch arm aarch64
BuildRequires: libquadmath-devel
%endif
Requires: latex-font-inconsolata
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires(post):%{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -63,6 +69,24 @@ The S language is often the vehicle of choice for research in statistical method
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.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#%patch0 -p1
@ -84,7 +108,7 @@ export R_BROWSER="%{_bindir}/xdg-open"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeoldinstall install-info
%makeinstall install-info
rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_infodir}/dir.old
@ -140,7 +164,6 @@ for info_file in %info_files
do %install_info $info_file.info
done
#%endif
/sbin/ldconfig
## Update package indices
#%{_bindir}/%{name} CMD perl %{_libdir}/%{name}/share/perl/build-help.pl \
@ -157,34 +180,57 @@ done
#%endif
:
%postun -p /sbin/ldconfig
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -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
%{_infodir}/R-*.info*.gz
%doc COPYING
%files -n lib%{name}
%defattr(-,root,root)
%{_sysconfdir}/ld.so.conf.d/R.conf
%dir %{_libdir}/R
%{_libdir}/R/SVN-REVISION
%dir %{_libdir}/R/bin
%{_libdir}/R/bin/*
%dir %{_libdir}/R/etc
%{_libdir}/R/etc/*
%dir %{_libdir}/R/lib
%{_libdir}/R/lib/*.so
%dir %{_libdir}/R/modules
%{_libdir}/R/modules/*.so
%dir %{_libdir}/R/library
%{_libdir}/R/library/*
%dir %{_libdir}/R/share
%{_libdir}/R/share/*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_libdir}/R/include
%{_libdir}/R/include/*
%dir %{_libdir}/R/doc
%{_libdir}/R/doc/*
%{_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
* Thu Jun 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.3-3mamba
- add libR and libR-devel packages
* Thu Jun 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.3-2mamba
- fix paths in pkgconfig file
* Mon May 04 2020 Automatic Build System <autodist@mambasoft.it> 3.6.3-1mamba
- automatic update by autodist