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