]>
Commit | Line | Data |
---|---|---|
da1e9fa4 JP |
1 | %define rstudio_hash 0260f9dc68869536e20a5c26334a81c96ae19cee |
2 | ||
9d0bf5de JR |
3 | Summary: IDE for R |
4 | Summary(pl.UTF-8): IDE dla R | |
5 | Name: rstudio | |
adf0cc64 | 6 | Version: 1.1.143 |
672357c1 | 7 | Release: 5 |
6d6b4763 JB |
8 | License: AGPL v3 |
9 | Group: Development/Tools | |
10 | Source0: https://github.com/rstudio/rstudio/archive/v%{version}/%{name}-%{version}.tar.gz | |
adf0cc64 | 11 | # Source0-md5: ae531eed17e70a6d4f2d8560696b466e |
57694567 JR |
12 | Source1: https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip |
13 | # Source1-md5: 0e03798b8e53096c4a906bde05e32378 | |
baa039bb JR |
14 | Source2: https://s3.amazonaws.com/rstudio-buildtools/gwt-2.7.0.zip |
15 | # Source2-md5: a8f3704a597b392910ea060284f21a03 | |
57694567 JR |
16 | Source3: https://s3.amazonaws.com/rstudio-buildtools/gin-1.5.zip |
17 | # Source3-md5: 2409168cc18bf5f341e107e6887fe359 | |
baa039bb JR |
18 | Source4: https://s3.amazonaws.com/rstudio-buildtools/mathjax-26.zip |
19 | # Source4-md5: 94fcab0aead8f730cd21e26dcb5a330d | |
57694567 JR |
20 | Source8: packrat_0.4.1.24_bbdab984134678db91b8f372e2550e59f266de37.tar.xz |
21 | # Source8-md5: 7607927c4adf507d67d2ba18d38c7bb0 | |
baa039bb JR |
22 | Source9: rmarkdown_1.4.0.9001_b7434dcc5abe87cb27f01cbffb9ca94e1539d322.tar.xz |
23 | # Source9-md5: 3555af924d08fa900789c61eaa837087 | |
57694567 JR |
24 | Source10: shinyapps_0.3.61_d3ab9e1cdd02f0067d69fe6fc816a61c8a5f2218.tar.xz |
25 | # Source10-md5: 3f5ce12f86b00a2e77067d7769fffe08 | |
baa039bb JR |
26 | Source11: rsconnect_0.7.0-2_fa486121f8f75701e2044f33d2901e610160322f.tar.xz |
27 | # Source11-md5: 938ca5efbed1ead619de42488ed30760 | |
d629e245 JB |
28 | Patch0: %{name}-includes.patch |
29 | Patch1: %{name}-openssl.patch | |
30 | Patch2: %{name}-boost.patch | |
6d6b4763 | 31 | Patch3: websocketpp-boost.patch |
c53a063a | 32 | Patch4: boost1.75.patch |
8cd69309 | 33 | Patch5: gcc11.patch |
9d0bf5de | 34 | URL: http://rstudio.org/ |
6d6b4763 JB |
35 | BuildRequires: Qt5Core-devel >= 5.4.0 |
36 | BuildRequires: Qt5DBus-devel >= 5.4.0 | |
37 | BuildRequires: Qt5Gui-devel >= 5.4.0 | |
38 | BuildRequires: Qt5Network-devel >= 5.4.0 | |
39 | BuildRequires: Qt5OpenGL-devel >= 5.4.0 | |
40 | BuildRequires: Qt5Positioning-devel >= 5.4.0 | |
41 | BuildRequires: Qt5PrintSupport-devel >= 5.4.0 | |
42 | BuildRequires: Qt5Qml-devel >= 5.4.0 | |
43 | BuildRequires: Qt5Quick-devel >= 5.4.0 | |
44 | BuildRequires: Qt5Sensors-devel >= 5.4.0 | |
45 | BuildRequires: Qt5Sql-devel >= 5.4.0 | |
46 | BuildRequires: Qt5Svg-devel >= 5.4.0 | |
47 | BuildRequires: Qt5WebKit-devel >= 5.4.0 | |
48 | BuildRequires: Qt5Widgets-devel >= 5.4.0 | |
49 | BuildRequires: Qt5Xml-devel >= 5.4.0 | |
50 | BuildRequires: Qt5XmlPatterns-devel >= 5.4.0 | |
9d0bf5de | 51 | BuildRequires: R >= 2.11.1 |
6bc276e5 | 52 | BuildRequires: ant |
6d6b4763 | 53 | BuildRequires: boost-devel >= 1.63.0 |
4c3e022e | 54 | BuildRequires: clang-devel >= 3.5.0 |
6d6b4763 | 55 | BuildRequires: cmake >= 2.8.8 |
9d0bf5de | 56 | BuildRequires: java-junit |
6d6b4763 JB |
57 | BuildRequires: jdk |
58 | BuildRequires: libstdc++-devel | |
59 | BuildRequires: libuuid-devel | |
9d0bf5de JR |
60 | BuildRequires: openssl-devel |
61 | BuildRequires: pam-devel | |
74881e45 | 62 | BuildRequires: pandoc |
6d6b4763 JB |
63 | BuildRequires: qt5-build >= 5.4.0 |
64 | BuildRequires: zlib-devel | |
65 | Requires: Qt5WebKit >= 5.4.0 | |
66 | Requires: Qt5Widgets >= 5.4.0 | |
9d0bf5de | 67 | Requires: R >= 2.11.1 |
78c56072 JR |
68 | Requires: pandoc |
69 | Requires: clang >= 3.5.0 | |
9d0bf5de JR |
70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
71 | ||
72 | %description | |
6d6b4763 JB |
73 | RStudio is a free and open source integrated development environment |
74 | (IDE) for R. You can run it on your desktop (Windows, Mac, or Linux) | |
75 | or even over the web using RStudio Server. | |
76 | ||
77 | %description -l pl.UTF-8 | |
78 | RStudio to wolnodostępne, mające otwarte źródła zintegrowane | |
79 | środowisko programistyczne (IDE) dla języka R. Można je uruchamiać na | |
80 | własnym komputerze (w systemie Windows, Mac lub Linux), a także przez | |
81 | sieć przy użyciu serwera RStudio. | |
9d0bf5de JR |
82 | |
83 | %prep | |
57694567 | 84 | %setup -q |
d629e245 JB |
85 | %patch0 -p1 |
86 | %patch1 -p1 | |
87 | %patch2 -p1 | |
6d6b4763 JB |
88 | cd src/cpp/ext |
89 | %patch3 -p1 | |
90 | cd ../../.. | |
c53a063a | 91 | %patch4 -p1 |
8cd69309 | 92 | %patch5 -p1 |
6d6b4763 | 93 | |
57694567 JR |
94 | mkdir -p dependencies/common/dictionaries |
95 | unzip -qq %{SOURCE1} -d dependencies/common/dictionaries | |
9d0bf5de JR |
96 | mkdir -p src/gwt/lib/gwt |
97 | mkdir -p src/gwt/lib/gin/1.5 | |
57694567 JR |
98 | unzip -qq %{SOURCE2} -d src/gwt/lib/gwt |
99 | unzip -qq %{SOURCE3} -d src/gwt/lib/gin/1.5 | |
baa039bb | 100 | %{__mv} src/gwt/lib/gwt/gwt-2.7.0 src/gwt/lib/gwt/2.7.0 |
57694567 | 101 | unzip -qq %{SOURCE4} -d dependencies/common |
57694567 JR |
102 | |
103 | xz -dc %{SOURCE8} | tar xf - -C dependencies/common/ | |
104 | xz -dc %{SOURCE9} | tar xf - -C dependencies/common/ | |
105 | xz -dc %{SOURCE10} | tar xf - -C dependencies/common/ | |
baa039bb | 106 | xz -dc %{SOURCE11} | tar xf - -C dependencies/common/ |
57694567 | 107 | |
74881e45 JR |
108 | # rstudio wants 1.12.4.2, let it think that |
109 | mkdir -p dependencies/common/pandoc/1.12.4.2 | |
110 | ln -s %{_bindir}/pandoc dependencies/common/pandoc/1.12.4.2/pandoc | |
111 | ln -s %{_bindir}/pandoc dependencies/common/pandoc/1.12.4.2/pandoc-static | |
112 | ||
4c3e022e JR |
113 | mkdir -p dependencies/common/libclang/3.5/include/ |
114 | ln -s /usr/include/clang-c dependencies/common/libclang/3.5/include/ | |
115 | mkdir -p dependencies/common/libclang/builtin-headers | |
116 | ln -s /usr/lib64/clang/3.5.0/include dependencies/common/libclang/builtin-headers/3.5 | |
4c3e022e | 117 | |
86ba1454 JR |
118 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \ |
119 | src/cpp/desktop/rstudio-backtrace.sh.in \ | |
120 | src/cpp/session/postback/askpass-passthrough \ | |
121 | src/cpp/session/postback/rpostback-askpass \ | |
122 | src/cpp/session/postback/rpostback-editfile \ | |
123 | src/cpp/session/postback/rpostback-gitssh \ | |
124 | src/cpp/session/postback/rpostback-pdfviewer \ | |
125 | src/cpp/session/r-ldpath.in | |
126 | ||
9d0bf5de JR |
127 | %build |
128 | install -d build | |
129 | cd build | |
6d6b4763 | 130 | %cmake .. \ |
9d0bf5de | 131 | -DCMAKE_BUILD_TYPE=Release \ |
6d6b4763 JB |
132 | -DCMAKE_C_FLAGS_RELEASE="${CFLAGS:-%{rpmcflags} -DNDEBUG -DQT_NO_DEBUG}" \ |
133 | -DCMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS:-%{rpmcxxflags} -DNDEBUG -DQT_NO_DEBUG}" \ | |
9d0bf5de | 134 | -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \ |
6d6b4763 | 135 | -DQT_QMAKE_EXECUTABLE=/usr/bin/qt5-qmake \ |
da1e9fa4 JP |
136 | -DRSTUDIO_TARGET=Desktop \ |
137 | -DRSTUDIO_GIT_REVISION_HASH=%{rstudio_hash} | |
9d0bf5de JR |
138 | |
139 | %{__make} | |
140 | ||
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | install -d $RPM_BUILD_ROOT%{_bindir} | |
144 | ||
145 | %{__make} -C build install/fast \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
148 | ln -s %{_libdir}/%{name}/bin/rstudio $RPM_BUILD_ROOT%{_bindir} | |
149 | ||
150 | %clean | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
153 | %files | |
154 | %defattr(644,root,root,755) | |
6d6b4763 JB |
155 | %doc COPYING NEWS.md NOTICE README.md |
156 | %attr(755,root,root) %{_bindir}/rstudio | |
9d0bf5de JR |
157 | %dir %{_libdir}/%{name} |
158 | %{_libdir}/%{name}/R | |
159 | %dir %{_libdir}/%{name}/bin | |
1a5a515a | 160 | %attr(755,root,root) %{_libdir}/%{name}/bin/diagnostics |
9d0bf5de JR |
161 | %attr(755,root,root) %{_libdir}/%{name}/bin/r* |
162 | %dir %{_libdir}/%{name}/bin/postback | |
163 | %attr(755,root,root) %{_libdir}/%{name}/bin/postback/* | |
164 | %{_libdir}/%{name}/resources | |
165 | %{_libdir}/%{name}/www | |
4c3e022e | 166 | %{_libdir}/%{name}/www-symbolmaps |
9d0bf5de JR |
167 | %{_libdir}/%{name}/rstudio.png |
168 | %{_desktopdir}/rstudio.desktop | |
6d6b4763 JB |
169 | %{_iconsdir}/hicolor/*x*/apps/rstudio.png* |
170 | %{_iconsdir}/hicolor/*x*/mimetypes/application-x-r-data.png | |
171 | %{_iconsdir}/hicolor/*x*/mimetypes/application-x-r-project.png | |
172 | %{_datadir}/mime/packages/rstudio.xml | |
9d0bf5de | 173 | %{_pixmapsdir}/rstudio.png |