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