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