rstudio-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. %define pkg_version 1.1.463
  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. Source1: core-dictionaries.zip
  13. Source2: mathjax-26.zip
  14. # Source3: rsconnect_0.4.3.tar.gz
  15. # Source4: rmarkdown_1.0.9002.tar.gz
  16. # patch to avoid download necessary files
  17. Patch1: rstudio-dependencies_common_not_download.patch
  18. # patches to use system pandoc
  19. Patch2: rstudio-rsession-dev.conf.patch
  20. Patch3: rstudio-SessionOptions.cpp.patch
  21. Patch4: rstudio-session_CMakeLists.txt.patch
  22. # patch to use system qt5
  23. Patch5: rstudio-desktop_CMakeLists.txt.patch
  24. # patch to change default settings
  25. Patch10: rstudio-change_default_settings.patch
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. BuildRequires: rstudio-gwt
  28. BuildRequires: rstudio-chromedriver
  29. BuildRequires: cmake
  30. BuildRequires: R >= 3.4
  31. BuildRequires: pandoc pandoc-citeproc
  32. # java-1.7.0-openjdk-devel is needed
  33. BuildRequires: java-1.7.0-openjdk-devel
  34. BuildRequires: ant
  35. BuildRequires: xml-commons-apis
  36. BuildRequires: libuuid-devel
  37. BuildRequires: openssl-devel
  38. BuildRequires: pam-devel
  39. BuildRequires: pango-devel
  40. BuildRequires: bzip2-devel zlib-devel
  41. BuildRequires: libboost-devel
  42. BuildRequires: libboost
  43. BuildRequires: libboost-atomic
  44. BuildRequires: libboost-date-time
  45. BuildRequires: libboost-filesystem
  46. BuildRequires: libboost-iostreams
  47. BuildRequires: libboost-program-options
  48. BuildRequires: libboost-random
  49. BuildRequires: libboost-regex
  50. BuildRequires: libboost-signals
  51. BuildRequires: libboost-system
  52. BuildRequires: libboost-thread
  53. BuildRequires: libboost-chrono
  54. BuildRequires: qt5-qtbase-devel
  55. BuildRequires: qt5-qtlocation-devel
  56. BuildRequires: qt5-qtsensors-devel
  57. BuildRequires: qt5-qtsvg-devel
  58. BuildRequires: qt5-qtxmlpatterns-devel
  59. BuildRequires: qt5-qtwebchannel-devel
  60. BuildRequires: qt5-qtwebkit-devel
  61. Requires: R >= 3.4
  62. Requires: pandoc pandoc-citeproc
  63. Requires: java >= 1.7
  64. Requires: libuuid
  65. Requires: openssl
  66. Requires: pam
  67. Requires: pango
  68. Vendor: Project Vine
  69. Distribution: Vine Linux
  70. Packager: ara_t
  71. %description
  72. RStudio is a set of integrated tools designed to help you be more productive
  73. with R. It includes a console, syntax-highlighting editor that supports
  74. direct code execution, as well as tools for plotting, history, debugging
  75. and workspace management.
  76. %description -l ja
  77. RStudio™ はRのための新しい統合開発環境(IDE)です。RStudioは、あなたがRを
  78. 最大限利用する手助けとなるよう直感的なユーザインターフェイスと強力な
  79. コーディングツールを結合させたものです。
  80. %prep
  81. %{__rm} -rf ${RPM_BUILD_ROOT}
  82. %setup -q
  83. # patch to avoid download necessary files
  84. %patch1
  85. # patches to use system pandoc
  86. %patch2
  87. %patch3
  88. %patch4
  89. # patch to use system qt5
  90. %patch5
  91. # patch to change default settings
  92. %patch10
  93. %{__cp} /usr/src/rstudio-gwt/* \
  94. %{_builddir}/%{name}-%{version}/dependencies/common
  95. %{__cp} /usr/src/rstudio-chromedriver/* \
  96. %{_builddir}/%{name}-%{version}/dependencies/common
  97. %{__cp} \
  98. %{SOURCE1} %{SOURCE2} \
  99. %{_builddir}/%{name}-%{version}/dependencies/common
  100. pushd dependencies/common
  101. sh install-gwt;
  102. sh install-dictionaries;
  103. sh install-mathjax;
  104. sh install-libclang;
  105. # %{__tar} xzf %{SOURCE3}
  106. # %{__tar} xzf %{SOURCE4}
  107. sh install-packages;
  108. popd
  109. cmake . \
  110. -DRSTUDIO_TARGET=Desktop \
  111. -DCMAKE_BUILD_TYPE=Release \
  112. -DCMAKE_INSTALL_PREFIX=%{_libdir}/rstudio
  113. %{__make} %{?_smp_mflags}
  114. %install
  115. %{make_install}
  116. # make "/usr/bin/rstudio"
  117. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
  118. echo "%{_libdir}/rstudio/bin/rstudio" > ${RPM_BUILD_ROOT}%{_bindir}/rstudio
  119. %{__chmod} +x ${RPM_BUILD_ROOT}%{_bindir}/rstudio
  120. %clean
  121. %{__rm} -rf ${RPM_BUILD_ROOT}
  122. %post -p %{_syssbindir}/ldconfig
  123. %postun -p %{_syssbindir}/ldconfig
  124. %files
  125. %defattr(-, root, root)
  126. %{_bindir}/
  127. %{_libdir}/rstudio/
  128. %{_datadir}/applications/rstudio.desktop
  129. %{_datadir}/icons/
  130. %{_datadir}/mime/
  131. %{_datadir}/pixmaps/
  132. %changelog
  133. * Fri Nov 16 2018 Toshiaki Ara <ara_t@384.jp> 1.1.463-1
  134. - new upstream release
  135. * Sun Aug 19 2018 Toshiaki Ara <ara_t@384.jp> 1.1.456-1
  136. - new upstream release
  137. - drop SOURCE13 and SOURCE14
  138. * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> 1.1.412-1
  139. - new upstream release
  140. - add BuildRequires: libboost-random
  141. - add BuildRequires: qt5-qtwebchannel-devel
  142. - update Patches
  143. * Thu Aug 04 2016 Toshiaki Ara <ara_t@384.jp> 0.99.1274-2
  144. - correct package desctiption
  145. * Thu Aug 04 2016 Toshiaki Ara <ara_t@384.jp> 0.99.1274-1
  146. - new package