|
@@ -1,4 +1,4 @@
|
|
-%define pkg_version 1.1.463
|
|
+%define pkg_version 1.2.5001
|
|
%define pkg_release 1%{?_dist_release}
|
|
%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
Summary: An integrated development environment (IDE) for R
|
|
Summary: An integrated development environment (IDE) for R
|
|
@@ -12,36 +12,31 @@ Group: Applications/Edutainment
|
|
URL: https://www.rstudio.com/
|
|
URL: https://www.rstudio.com/
|
|
Source0: rstudio-%{version}.tar.gz
|
|
Source0: rstudio-%{version}.tar.gz
|
|
|
|
|
|
-Source1: core-dictionaries.zip
|
|
+Source11: core-dictionaries.zip
|
|
-Source2: mathjax-26.zip
|
|
+Source12: mathjax-26.zip
|
|
-# Source3: rsconnect_0.4.3.tar.gz
|
|
+
|
|
-# Source4: rmarkdown_1.0.9002.tar.gz
|
|
+# document for setting when RStudio crashs
|
|
|
|
+Source101: Caution
|
|
|
|
+Source102: Caution.ja
|
|
|
|
|
|
# patch to avoid download necessary files
|
|
# patch to avoid download necessary files
|
|
-Patch1: rstudio-dependencies_common_not_download.patch
|
|
+Patch1: rstudio-1.2-dependencies_common_not_download.patch
|
|
|
|
|
|
# patches to use system pandoc
|
|
# patches to use system pandoc
|
|
-Patch2: rstudio-rsession-dev.conf.patch
|
|
+Patch2: rstudio-1.2-rsession-dev.conf.patch
|
|
-Patch3: rstudio-SessionOptions.cpp.patch
|
|
+Patch3: rstudio-1.2-SessionOptions.cpp.patch
|
|
-Patch4: rstudio-session_CMakeLists.txt.patch
|
|
+Patch4: rstudio-1.2-session_CMakeLists.txt.patch
|
|
-
|
|
|
|
-# patch to use system qt5
|
|
|
|
-Patch5: rstudio-desktop_CMakeLists.txt.patch
|
|
|
|
-
|
|
|
|
-# patch to change default settings
|
|
|
|
-Patch10: rstudio-change_default_settings.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
BuildRequires: rstudio-gwt
|
|
BuildRequires: rstudio-gwt
|
|
-BuildRequires: rstudio-chromedriver
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: cmake
|
|
-BuildRequires: R >= 3.4
|
|
+BuildRequires: R >= 3.6
|
|
BuildRequires: pandoc pandoc-citeproc
|
|
BuildRequires: pandoc pandoc-citeproc
|
|
|
|
|
|
-# java-1.7.0-openjdk-devel is needed
|
|
+# java-1.8.0-openjdk-devel is needed
|
|
-BuildRequires: java-1.7.0-openjdk-devel
|
|
+BuildRequires: java-1.8.0-openjdk-devel
|
|
-BuildRequires: ant
|
|
+BuildRequires: ant >= 1.9
|
|
BuildRequires: xml-commons-apis
|
|
BuildRequires: xml-commons-apis
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: openssl-devel
|
|
@@ -49,6 +44,7 @@ BuildRequires: pam-devel
|
|
BuildRequires: pango-devel
|
|
BuildRequires: pango-devel
|
|
BuildRequires: bzip2-devel zlib-devel
|
|
BuildRequires: bzip2-devel zlib-devel
|
|
|
|
|
|
|
|
+# libboost >= 1.63.0
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libboost
|
|
BuildRequires: libboost
|
|
BuildRequires: libboost-atomic
|
|
BuildRequires: libboost-atomic
|
|
@@ -63,21 +59,19 @@ BuildRequires: libboost-system
|
|
BuildRequires: libboost-thread
|
|
BuildRequires: libboost-thread
|
|
BuildRequires: libboost-chrono
|
|
BuildRequires: libboost-chrono
|
|
|
|
|
|
|
|
+# qt5 >= 5.12.1
|
|
BuildRequires: qt5-qtbase-devel
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
+BuildRequires: qt5-qtdeclarative-devel
|
|
BuildRequires: qt5-qtlocation-devel
|
|
BuildRequires: qt5-qtlocation-devel
|
|
BuildRequires: qt5-qtsensors-devel
|
|
BuildRequires: qt5-qtsensors-devel
|
|
BuildRequires: qt5-qtsvg-devel
|
|
BuildRequires: qt5-qtsvg-devel
|
|
-BuildRequires: qt5-qtxmlpatterns-devel
|
|
|
|
BuildRequires: qt5-qtwebchannel-devel
|
|
BuildRequires: qt5-qtwebchannel-devel
|
|
-BuildRequires: qt5-qtwebkit-devel
|
|
+BuildRequires: qt5-qtwebengine-devel
|
|
|
|
+BuildRequires: qt5-qtxmlpatterns-devel
|
|
|
|
|
|
-Requires: R >= 3.4
|
|
+Requires: R >= 3.6
|
|
Requires: pandoc pandoc-citeproc
|
|
Requires: pandoc pandoc-citeproc
|
|
-Requires: java >= 1.7
|
|
+Requires: java-1.8.0-openjdk
|
|
-Requires: libuuid
|
|
|
|
-Requires: openssl
|
|
|
|
-Requires: pam
|
|
|
|
-Requires: pango
|
|
|
|
|
|
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -91,12 +85,37 @@ with R. It includes a console, syntax-highlighting editor that supports
|
|
direct code execution, as well as tools for plotting, history, debugging
|
|
direct code execution, as well as tools for plotting, history, debugging
|
|
and workspace management.
|
|
and workspace management.
|
|
|
|
|
|
|
|
+
|
|
|
|
+[Caution]
|
|
|
|
+If RStudio crashs, please use 'Software Rendering'.
|
|
|
|
+ Within Tools -> Global Options... -> General -> Advanced
|
|
|
|
+Select 'Software' among Rendering engine in OS Integration,
|
|
|
|
+ and restart RStudio.
|
|
|
|
+
|
|
|
|
+In detail, please see
|
|
|
|
+ https://support.rstudio.com/hc/en-us/articles/360017886674-Troubleshooting-RStudio-Rendering-Errors
|
|
|
|
+
|
|
|
|
+
|
|
%description -l ja
|
|
%description -l ja
|
|
RStudio™ はRのための新しい統合開発環境(IDE)です。RStudioは、あなたがRを
|
|
RStudio™ はRのための新しい統合開発環境(IDE)です。RStudioは、あなたがRを
|
|
最大限利用する手助けとなるよう直感的なユーザインターフェイスと強力な
|
|
最大限利用する手助けとなるよう直感的なユーザインターフェイスと強力な
|
|
コーディングツールを結合させたものです。
|
|
コーディングツールを結合させたものです。
|
|
|
|
|
|
|
|
|
|
|
|
+【注意】
|
|
|
|
+もしRStudioがクラッシュする場合には
|
|
|
|
+'Software Rendering'を使用して下さい。
|
|
|
|
+
|
|
|
|
+メニューの
|
|
|
|
+ Tools -> Global Options... -> General -> Advanced
|
|
|
|
+のタブに存在する OS Integration の Rendering engine で
|
|
|
|
+ 'Software' を選択してから Rstudio を再起動して下さい。
|
|
|
|
+
|
|
|
|
+詳しくは
|
|
|
|
+ https://support.rstudio.com/hc/en-us/articles/360017886674-Troubleshooting-RStudio-Rendering-Errors
|
|
|
|
+を参照して下さい。
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%setup -q
|
|
%setup -q
|
|
@@ -109,45 +128,53 @@ RStudio™ はRのための新しい統合開発環境(IDE)です。RStudioは
|
|
%patch3
|
|
%patch3
|
|
%patch4
|
|
%patch4
|
|
|
|
|
|
-# patch to use system qt5
|
|
|
|
-%patch5
|
|
|
|
-
|
|
|
|
-# patch to change default settings
|
|
|
|
-%patch10
|
|
|
|
-
|
|
|
|
%{__cp} /usr/src/rstudio-gwt/* \
|
|
%{__cp} /usr/src/rstudio-gwt/* \
|
|
%{_builddir}/%{name}-%{version}/dependencies/common
|
|
%{_builddir}/%{name}-%{version}/dependencies/common
|
|
-%{__cp} /usr/src/rstudio-chromedriver/* \
|
|
|
|
- %{_builddir}/%{name}-%{version}/dependencies/common
|
|
|
|
|
|
|
|
%{__cp} \
|
|
%{__cp} \
|
|
- %{SOURCE1} %{SOURCE2} \
|
|
+ %{SOURCE11} %{SOURCE12} \
|
|
%{_builddir}/%{name}-%{version}/dependencies/common
|
|
%{_builddir}/%{name}-%{version}/dependencies/common
|
|
|
|
|
|
pushd dependencies/common
|
|
pushd dependencies/common
|
|
sh install-gwt;
|
|
sh install-gwt;
|
|
sh install-dictionaries;
|
|
sh install-dictionaries;
|
|
sh install-mathjax;
|
|
sh install-mathjax;
|
|
- sh install-libclang;
|
|
|
|
- # %{__tar} xzf %{SOURCE3}
|
|
|
|
- # %{__tar} xzf %{SOURCE4}
|
|
|
|
- sh install-packages;
|
|
|
|
popd
|
|
popd
|
|
|
|
|
|
-cmake . \
|
|
+%build
|
|
|
|
+IFS=. read -ra VER <<< %{version}
|
|
|
|
+export RSTUDIO_VERSION_MAJOR=${VER[0]}
|
|
|
|
+export RSTUDIO_VERSION_MINOR=${VER[1]}
|
|
|
|
+export RSTUDIO_VERSION_PATCH=${VER[2]}
|
|
|
|
+
|
|
|
|
+%{__mkdir_p} build
|
|
|
|
+pushd build
|
|
|
|
+cmake .. \
|
|
-DRSTUDIO_TARGET=Desktop \
|
|
-DRSTUDIO_TARGET=Desktop \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
+ -DQT_QMAKE_EXECUTABLE=%{_bindir}/qmake-qt5 \
|
|
-DCMAKE_INSTALL_PREFIX=%{_libdir}/rstudio
|
|
-DCMAKE_INSTALL_PREFIX=%{_libdir}/rstudio
|
|
%{__make} %{?_smp_mflags}
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
+popd
|
|
|
|
|
|
%install
|
|
%install
|
|
|
|
+pushd build
|
|
%{make_install}
|
|
%{make_install}
|
|
|
|
+popd
|
|
|
|
|
|
# make "/usr/bin/rstudio"
|
|
# make "/usr/bin/rstudio"
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
|
|
echo "%{_libdir}/rstudio/bin/rstudio" > ${RPM_BUILD_ROOT}%{_bindir}/rstudio
|
|
echo "%{_libdir}/rstudio/bin/rstudio" > ${RPM_BUILD_ROOT}%{_bindir}/rstudio
|
|
%{__chmod} +x ${RPM_BUILD_ROOT}%{_bindir}/rstudio
|
|
%{__chmod} +x ${RPM_BUILD_ROOT}%{_bindir}/rstudio
|
|
|
|
|
|
|
|
+
|
|
|
|
+# document for setting when RStudio crashs
|
|
|
|
+%{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
|
|
|
|
+%{__cp} \
|
|
|
|
+ %{SOURCE101} %{SOURCE102} \
|
|
|
|
+ ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
|
|
|
|
+
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
@@ -158,15 +185,20 @@ echo "%{_libdir}/rstudio/bin/rstudio" > ${RPM_BUILD_ROOT}%{_bindir}/rstudio
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
|
|
+%doc COPYING NOTICE *.md
|
|
%{_bindir}/
|
|
%{_bindir}/
|
|
%{_libdir}/rstudio/
|
|
%{_libdir}/rstudio/
|
|
%{_datadir}/applications/rstudio.desktop
|
|
%{_datadir}/applications/rstudio.desktop
|
|
%{_datadir}/icons/
|
|
%{_datadir}/icons/
|
|
%{_datadir}/mime/
|
|
%{_datadir}/mime/
|
|
%{_datadir}/pixmaps/
|
|
%{_datadir}/pixmaps/
|
|
|
|
+%{_docdir}/%{name}-%{version}/Caution*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Oct 29 2019 Toshiaki Ara <ara_t@384.jp> 1.2.5000-1
|
|
|
|
+- update to 1.2.5001
|
|
|
|
+
|
|
* Fri Nov 16 2018 Toshiaki Ara <ara_t@384.jp> 1.1.463-1
|
|
* Fri Nov 16 2018 Toshiaki Ara <ara_t@384.jp> 1.1.463-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|