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