rstudio-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. %define pkg_version 1.2.5001
  2. %define pkg_release 1%{?_dist_release}
  3. Summary: An integrated development environment (IDE) for R
  4. Summary(ja): Rのための統合開発環境
  5. Name: rstudio
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. License: AGPLv3
  9. Group: Applications/Edutainment
  10. URL: https://www.rstudio.com/
  11. Source0: rstudio-%{version}.tar.gz
  12. Source11: core-dictionaries.zip
  13. Source12: mathjax-26.zip
  14. # document for setting when RStudio crashs
  15. Source101: Caution
  16. Source102: Caution.ja
  17. # patch to avoid download necessary files
  18. Patch1: rstudio-1.2-dependencies_common_not_download.patch
  19. # patches to use system pandoc
  20. Patch2: rstudio-1.2-rsession-dev.conf.patch
  21. Patch3: rstudio-1.2-SessionOptions.cpp.patch
  22. Patch4: rstudio-1.2-session_CMakeLists.txt.patch
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. BuildRequires: rstudio-gwt
  25. BuildRequires: cmake
  26. BuildRequires: R >= 3.6
  27. BuildRequires: pandoc pandoc-citeproc
  28. # java-1.8.0-openjdk-devel is needed
  29. BuildRequires: java-1.8.0-openjdk-devel
  30. BuildRequires: ant >= 1.9
  31. BuildRequires: xml-commons-apis
  32. BuildRequires: libuuid-devel
  33. BuildRequires: openssl-devel
  34. BuildRequires: pam-devel
  35. BuildRequires: pango-devel
  36. BuildRequires: bzip2-devel zlib-devel
  37. # libboost >= 1.63.0
  38. BuildRequires: libboost-devel
  39. BuildRequires: libboost
  40. BuildRequires: libboost-atomic
  41. BuildRequires: libboost-date-time
  42. BuildRequires: libboost-filesystem
  43. BuildRequires: libboost-iostreams
  44. BuildRequires: libboost-program-options
  45. BuildRequires: libboost-random
  46. BuildRequires: libboost-regex
  47. BuildRequires: libboost-signals
  48. BuildRequires: libboost-system
  49. BuildRequires: libboost-thread
  50. BuildRequires: libboost-chrono
  51. # qt5 >= 5.12.1
  52. BuildRequires: qt5-qtbase-devel
  53. BuildRequires: qt5-qtdeclarative-devel
  54. BuildRequires: qt5-qtlocation-devel
  55. BuildRequires: qt5-qtsensors-devel
  56. BuildRequires: qt5-qtsvg-devel
  57. BuildRequires: qt5-qtwebchannel-devel
  58. BuildRequires: qt5-qtwebengine-devel
  59. BuildRequires: qt5-qtxmlpatterns-devel
  60. Requires: R >= 3.6
  61. Requires: pandoc pandoc-citeproc
  62. Requires: java-1.8.0-openjdk
  63. Vendor: Project Vine
  64. Distribution: Vine Linux
  65. Packager: ara_t
  66. %description
  67. RStudio is a set of integrated tools designed to help you be more productive
  68. with R. It includes a console, syntax-highlighting editor that supports
  69. direct code execution, as well as tools for plotting, history, debugging
  70. and workspace management.
  71. [Caution]
  72. If RStudio crashs, please use 'Software Rendering'.
  73. Within Tools -> Global Options... -> General -> Advanced
  74. Select 'Software' among Rendering engine in OS Integration,
  75. and restart RStudio.
  76. In detail, please see
  77. https://support.rstudio.com/hc/en-us/articles/360017886674-Troubleshooting-RStudio-Rendering-Errors
  78. %description -l ja
  79. RStudio™ はRのための新しい統合開発環境(IDE)です。RStudioは、あなたがRを
  80. 最大限利用する手助けとなるよう直感的なユーザインターフェイスと強力な
  81. コーディングツールを結合させたものです。
  82. 【注意】
  83. もしRStudioがクラッシュする場合には
  84. 'Software Rendering'を使用して下さい。
  85. メニューの
  86. Tools -> Global Options... -> General -> Advanced
  87. のタブに存在する OS Integration の Rendering engine で
  88. 'Software' を選択してから Rstudio を再起動して下さい。
  89. 詳しくは
  90. https://support.rstudio.com/hc/en-us/articles/360017886674-Troubleshooting-RStudio-Rendering-Errors
  91. を参照して下さい。
  92. %prep
  93. %{__rm} -rf ${RPM_BUILD_ROOT}
  94. %setup -q
  95. # patch to avoid download necessary files
  96. %patch1
  97. # patches to use system pandoc
  98. %patch2
  99. %patch3
  100. %patch4
  101. %{__cp} /usr/src/rstudio-gwt/* \
  102. %{_builddir}/%{name}-%{version}/dependencies/common
  103. %{__cp} \
  104. %{SOURCE11} %{SOURCE12} \
  105. %{_builddir}/%{name}-%{version}/dependencies/common
  106. pushd dependencies/common
  107. sh install-gwt;
  108. sh install-dictionaries;
  109. sh install-mathjax;
  110. popd
  111. %build
  112. IFS=. read -ra VER <<< %{version}
  113. export RSTUDIO_VERSION_MAJOR=${VER[0]}
  114. export RSTUDIO_VERSION_MINOR=${VER[1]}
  115. export RSTUDIO_VERSION_PATCH=${VER[2]}
  116. %{__mkdir_p} build
  117. pushd build
  118. cmake .. \
  119. -DRSTUDIO_TARGET=Desktop \
  120. -DCMAKE_BUILD_TYPE=Release \
  121. -DQT_QMAKE_EXECUTABLE=%{_bindir}/qmake-qt5 \
  122. -DCMAKE_INSTALL_PREFIX=%{_libdir}/rstudio
  123. %{__make} %{?_smp_mflags}
  124. popd
  125. %install
  126. pushd build
  127. %{make_install}
  128. popd
  129. # make "/usr/bin/rstudio"
  130. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
  131. echo "%{_libdir}/rstudio/bin/rstudio" > ${RPM_BUILD_ROOT}%{_bindir}/rstudio
  132. %{__chmod} +x ${RPM_BUILD_ROOT}%{_bindir}/rstudio
  133. # document for setting when RStudio crashs
  134. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
  135. %{__cp} \
  136. %{SOURCE101} %{SOURCE102} \
  137. ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
  138. %clean
  139. %{__rm} -rf ${RPM_BUILD_ROOT}
  140. %post -p %{_syssbindir}/ldconfig
  141. %postun -p %{_syssbindir}/ldconfig
  142. %files
  143. %defattr(-, root, root)
  144. %doc COPYING NOTICE *.md
  145. %{_bindir}/
  146. %{_libdir}/rstudio/
  147. %{_datadir}/applications/rstudio.desktop
  148. %{_datadir}/icons/
  149. %{_datadir}/mime/
  150. %{_datadir}/pixmaps/
  151. %{_docdir}/%{name}-%{version}/Caution*
  152. %changelog
  153. * Tue Oct 29 2019 Toshiaki Ara <ara_t@384.jp> 1.2.5000-1
  154. - update to 1.2.5001
  155. * Fri Nov 16 2018 Toshiaki Ara <ara_t@384.jp> 1.1.463-1
  156. - new upstream release
  157. * Sun Aug 19 2018 Toshiaki Ara <ara_t@384.jp> 1.1.456-1
  158. - new upstream release
  159. - drop SOURCE13 and SOURCE14
  160. * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> 1.1.412-1
  161. - new upstream release
  162. - add BuildRequires: libboost-random
  163. - add BuildRequires: qt5-qtwebchannel-devel
  164. - update Patches
  165. * Thu Aug 04 2016 Toshiaki Ara <ara_t@384.jp> 0.99.1274-2
  166. - correct package desctiption
  167. * Thu Aug 04 2016 Toshiaki Ara <ara_t@384.jp> 0.99.1274-1
  168. - new package