rstudio-server-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. %define pkg_version 1.2.5001
  2. %define pkg_release 1%{?_dist_release}
  3. Summary:Summary: An integrated development environment (IDE) for R
  4. Summary(ja): Rのための統合開発環境(サーバ版)
  5. Name: rstudio-server
  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. Source1: rserver.conf
  13. Source2: rsession.conf
  14. Source11: core-dictionaries.zip
  15. Source12: mathjax-26.zip
  16. # patch to avoid download necessary files
  17. Patch1: rstudio-1.2-dependencies_common_not_download.patch
  18. # patches to use system pandoc
  19. Patch2: rstudio-1.2-rsession-dev.conf.patch
  20. Patch3: rstudio-1.2-SessionOptions.cpp.patch
  21. Patch4: rstudio-1.2-session_CMakeLists.txt.patch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: cmake
  24. BuildRequires: rstudio-gwt >= 1.2
  25. BuildRequires: R >= 3.6
  26. BuildRequires: pandoc pandoc-citeproc
  27. # java-1.8.0-openjdk-devel is needed
  28. BuildRequires: java-1.8.0-openjdk-devel
  29. BuildRequires: ant >= 1.9
  30. BuildRequires: xml-commons-apis
  31. BuildRequires: libuuid-devel
  32. BuildRequires: openssl-devel
  33. BuildRequires: pam-devel
  34. BuildRequires: pango-devel
  35. BuildRequires: bzip2-devel zlib-devel
  36. # libboost >= 1.63.0
  37. BuildRequires: libboost-devel
  38. BuildRequires: libboost
  39. BuildRequires: libboost-atomic
  40. BuildRequires: libboost-date-time
  41. BuildRequires: libboost-filesystem
  42. BuildRequires: libboost-iostreams
  43. BuildRequires: libboost-program-options
  44. BuildRequires: libboost-random
  45. BuildRequires: libboost-regex
  46. BuildRequires: libboost-signals
  47. BuildRequires: libboost-system
  48. BuildRequires: libboost-thread
  49. BuildRequires: libboost-chrono
  50. Requires: R
  51. Requires: pandoc pandoc-citeproc
  52. Requires: java-1.8.0-openjdk
  53. Vendor: Project Vine
  54. Distribution: Vine Linux
  55. Packager: ara_t
  56. %description
  57. RStudio Server enables you to provide a browser based interface
  58. (the RStudio IDE) to a version of R running on a remote Linux server.
  59. Deploying R and RStudio on a server has a number of benefits, including:
  60. - The ability to access your R workspace from any computer in any location;
  61. Easy sharing of code, data, and other files with colleagues;
  62. - Allowing multiple users to share access to
  63. the more powerful compute resources (memory, processors, etc.)
  64. available on a well equipped server; and Centralized installation and
  65. configuration of R, R packages, TeX, and other supporting libraries.
  66. %description -l ja
  67. RStudio Serverは離れた場所にあるLinuxサーバ上で走っている
  68. Rのバージョンに対してブラウザベースのインタフェイス(the RStudio IDE)
  69. を提供します。
  70. サーバ上にRとRStudioを配置すると以下のような数多くの利点があります:
  71. - あなたのRの作業スペースにどんな場所にあるどんなコンピュータからも
  72. アクセスできます。
  73. 同僚とたやすくコードやデータその他のファイルを共有できます。
  74. - 複数のユーザが十分な装備を備えたサーバ上で利用可能な、
  75. より強力な計算資源(メモリ、CPUなど)を共有できます。
  76. RやRパッケージ、TeXその他のサポートライブラリを集権的にインストール、
  77. 設定することができます。
  78. %prep
  79. %{__rm} -rf ${RPM_BUILD_ROOT}
  80. %setup -q -n rstudio-%{version}
  81. # patch to avoid download necessary files
  82. %patch1
  83. # patches to use system pandoc
  84. %patch2
  85. %patch3
  86. %patch4
  87. %{__cp} /usr/src/rstudio-gwt/* \
  88. %{_builddir}/rstudio-%{version}/dependencies/common
  89. %{__cp} \
  90. %{SOURCE11} %{SOURCE12} \
  91. %{_builddir}/rstudio-%{version}/dependencies/common
  92. pushd dependencies/common
  93. sh install-gwt;
  94. sh install-dictionaries;
  95. sh install-mathjax;
  96. popd
  97. %build
  98. %{__mkdir_p} build
  99. pushd build
  100. cmake .. \
  101. -DRSTUDIO_TARGET=Server \
  102. -DCMAKE_BUILD_TYPE=Release \
  103. -DCMAKE_INSTALL_PREFIX=%{_libdir}/rstudio-server
  104. %{__make} %{?_smp_mflags}
  105. popd
  106. %install
  107. pushd build
  108. %{make_install}
  109. popd
  110. # make symbolic link
  111. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sbindir}
  112. %{__ln_s} %{_libdir}/rstudio-server/bin/rstudio-server \
  113. ${RPM_BUILD_ROOT}%{_sbindir}/
  114. # RStudio setting files
  115. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/rstudio
  116. %{__cp} %{SOURCE1} %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/rstudio/
  117. # PAM setting
  118. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d
  119. %{__cp} ${RPM_BUILD_ROOT}%{_libdir}/rstudio-server/extras/pam/rstudio \
  120. ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/
  121. # init.d setting
  122. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/init.d/
  123. %{__cp} ${RPM_BUILD_ROOT}%{_libdir}/rstudio-server/extras/init.d/redhat/rstudio-server \
  124. ${RPM_BUILD_ROOT}%{_sysconfdir}/init.d/
  125. %clean
  126. %{__rm} -rf ${RPM_BUILD_ROOT}
  127. %pre
  128. if [ "$1" -eq 1 ]; then
  129. /usr/sbin/useradd rstudio-server -M -s /sbin/nologin >/dev/null 2>&1 || :;
  130. fi;
  131. %post
  132. %{_syssbindir}/chkconfig --add rstudio-server
  133. %{__mkdir_p} %{_var}/{run,lock,log,lib}/rstudio-server
  134. %{__chmod} 600 %{_var}/{run,lock,log,lib}/rstudio-server
  135. %{__chown} rstudio-server:rstudio-server \
  136. %{_var}/{run,lock,log,lib}/rstudio-server
  137. %preun
  138. if [ "$1" -eq 0 ]; then
  139. %{_syssbindir}/service rstudio-server stop >/dev/null 2>&1 || :
  140. %{_syssbindir}/chkconfig --del rstudio-server ||:
  141. fi
  142. %postun
  143. %{__rm} -rf /var/{run,lock,log,lib}/rstudio-server
  144. %files
  145. %defattr(-, root, root)
  146. %doc COPYING NOTICE *.md
  147. %{_sysconfdir}/init.d/rstudio-server
  148. %{_sysconfdir}/pam.d/rstudio
  149. %{_sysconfdir}/rstudio/
  150. %{_libdir}/rstudio-server
  151. %{_sbindir}/
  152. %changelog
  153. * Mon Oct 28 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. * Thu Nov 01 2018 Toshiaki Ara <ara_t@384.jp> 1.1.456-2
  158. - rebuild with openssl-1.1.1
  159. * Sun Aug 19 2018 Toshiaki Ara <ara_t@384.jp> 1.1.456-1
  160. - new upstream release
  161. - drop SOURCE13 and SOURCE14
  162. * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> 1.1.412-1
  163. - new upstream release
  164. - add BuildRequires: libboost-random
  165. - update Patches
  166. * Fri Aug 05 2016 Toshiaki Ara <ara_t@384.jp> 0.99.1274-1
  167. - new package