]>
Commit | Line | Data |
---|---|---|
9d0bf5de JR |
1 | Summary: IDE for R |
2 | Summary(pl.UTF-8): IDE dla R | |
3 | Name: rstudio | |
2e23eafe | 4 | Version: 0.97.551 |
ec6e9eef | 5 | Release: 4 |
9d0bf5de JR |
6 | License: AGPLv3 |
7 | Group: Applications | |
2e23eafe JR |
8 | Source0: https://github.com/rstudio/rstudio/tarball/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: cff627f3140337f5ea43104f2af176a5 | |
df8a39a0 JR |
10 | Source1: https://s3.amazonaws.com/rstudio-buildtools/gwt-2.5.0.rc1.zip |
11 | # Source1-md5: 5775d186c5f5c23f4d1d3617d3becd09 | |
9d0bf5de JR |
12 | Source2: https://s3.amazonaws.com/rstudio-buildtools/gin-1.5.zip |
13 | # Source2-md5: 2409168cc18bf5f341e107e6887fe359 | |
86556505 JR |
14 | Source3: https://s3.amazonaws.com/rstudio-buildtools/mathjax-20.zip |
15 | # Source3-md5: 480ede551eeffec08162a7a913eee906 | |
16 | Source4: https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip | |
17 | # Source4-md5: 0e03798b8e53096c4a906bde05e32378 | |
1a5a515a | 18 | Patch0: boost-1.53.patch |
9d0bf5de JR |
19 | URL: http://rstudio.org/ |
20 | BuildRequires: QtWebKit-devel | |
21 | BuildRequires: QtXmlPatterns-devel | |
22 | BuildRequires: R >= 2.11.1 | |
23 | BuildRequires: cmake >= 2.8.0 | |
24 | BuildRequires: java-junit | |
25 | BuildRequires: openssl-devel | |
26 | BuildRequires: pam-devel | |
27 | BuildRequires: pango-devel | |
28 | Requires: R >= 2.11.1 | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
446bd661 ER |
32 | RStudio(tm) is a free and open source integrated development |
33 | environment (IDE) for R. You can run it on your desktop (Windows, Mac, | |
34 | or Linux) or even over the web using RStudio Server. | |
9d0bf5de JR |
35 | |
36 | %prep | |
37cb1a8d | 37 | %setup -q -n %{name}-%{name}-ca19c52 |
1a5a515a | 38 | %patch0 -p1 |
9d0bf5de JR |
39 | mkdir -p src/gwt/lib/gwt |
40 | mkdir -p src/gwt/lib/gin/1.5 | |
41 | unzip -qq %{SOURCE1} -d src/gwt/lib/gwt | |
42 | unzip -qq %{SOURCE2} -d src/gwt/lib/gin/1.5 | |
df8a39a0 | 43 | mv src/gwt/lib/gwt/gwt-2.5.0.rc1 src/gwt/lib/gwt/2.5.0.rc1 |
86556505 JR |
44 | unzip -qq %{SOURCE3} -d dependencies/common |
45 | mkdir -p dependencies/common/dictionaries | |
46 | unzip -qq %{SOURCE4} -d dependencies/common/dictionaries | |
9d0bf5de JR |
47 | |
48 | %build | |
49 | install -d build | |
50 | cd build | |
51 | %cmake \ | |
52 | -DRSTUDIO_TARGET=Desktop \ | |
53 | -DCMAKE_BUILD_TYPE=Release \ | |
54 | -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \ | |
55 | ../ | |
56 | ||
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT%{_bindir} | |
62 | ||
63 | %{__make} -C build install/fast \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | ln -s %{_libdir}/%{name}/bin/rstudio $RPM_BUILD_ROOT%{_bindir} | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc COPYING NOTICE README.md | |
74 | %attr(755,root,root) %{_bindir}/* | |
75 | %dir %{_libdir}/%{name} | |
76 | %{_libdir}/%{name}/R | |
77 | %dir %{_libdir}/%{name}/bin | |
1a5a515a | 78 | %attr(755,root,root) %{_libdir}/%{name}/bin/diagnostics |
9d0bf5de JR |
79 | %attr(755,root,root) %{_libdir}/%{name}/bin/r* |
80 | %dir %{_libdir}/%{name}/bin/postback | |
81 | %attr(755,root,root) %{_libdir}/%{name}/bin/postback/* | |
82 | %{_libdir}/%{name}/resources | |
83 | %{_libdir}/%{name}/www | |
84 | %{_libdir}/%{name}/rstudio.png | |
85 | %{_desktopdir}/rstudio.desktop | |
86 | %{_iconsdir}/hicolor/*x*/apps/* | |
87 | %{_iconsdir}/hicolor/*x*/mimetypes/* | |
88 | %{_datadir}/mime/packages/*.xml | |
89 | %{_pixmapsdir}/rstudio.png |