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