]> git.pld-linux.org Git - packages/rstudio.git/blame - rstudio.spec
- up to 1.1.143
[packages/rstudio.git] / rstudio.spec
CommitLineData
9d0bf5de
JR
1Summary: IDE for R
2Summary(pl.UTF-8): IDE dla R
3Name: rstudio
adf0cc64
JR
4Version: 1.1.143
5Release: 1
9d0bf5de
JR
6License: AGPLv3
7Group: Applications
57694567 8Source0: https://github.com/rstudio/rstudio/archive/v%{version}.tar.gz?/%{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
9d0bf5de 32URL: http://rstudio.org/
baa039bb
JR
33BuildRequires: Qt5WebKit-devel
34BuildRequires: Qt5XmlPatterns-devel
9d0bf5de 35BuildRequires: R >= 2.11.1
57694567 36BuildRequires: boost-devel >= 1.50
4c3e022e 37BuildRequires: clang-devel >= 3.5.0
9d0bf5de
JR
38BuildRequires: cmake >= 2.8.0
39BuildRequires: java-junit
40BuildRequires: openssl-devel
41BuildRequires: pam-devel
74881e45 42BuildRequires: pandoc
9d0bf5de
JR
43BuildRequires: pango-devel
44Requires: R >= 2.11.1
78c56072
JR
45Requires: pandoc
46Requires: clang >= 3.5.0
892eefa5 47ExclusiveArch: %{ix86} %{x8664}
9d0bf5de
JR
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%description
446bd661
ER
51RStudio(tm) is a free and open source integrated development
52environment (IDE) for R. You can run it on your desktop (Windows, Mac,
53or Linux) or even over the web using RStudio Server.
9d0bf5de
JR
54
55%prep
57694567
JR
56%setup -q
57mkdir -p dependencies/common/dictionaries
58unzip -qq %{SOURCE1} -d dependencies/common/dictionaries
9d0bf5de
JR
59mkdir -p src/gwt/lib/gwt
60mkdir -p src/gwt/lib/gin/1.5
57694567
JR
61unzip -qq %{SOURCE2} -d src/gwt/lib/gwt
62unzip -qq %{SOURCE3} -d src/gwt/lib/gin/1.5
baa039bb 63%{__mv} src/gwt/lib/gwt/gwt-2.7.0 src/gwt/lib/gwt/2.7.0
57694567 64unzip -qq %{SOURCE4} -d dependencies/common
57694567
JR
65
66xz -dc %{SOURCE8} | tar xf - -C dependencies/common/
67xz -dc %{SOURCE9} | tar xf - -C dependencies/common/
68xz -dc %{SOURCE10} | tar xf - -C dependencies/common/
baa039bb 69xz -dc %{SOURCE11} | tar xf - -C dependencies/common/
57694567 70
74881e45
JR
71# rstudio wants 1.12.4.2, let it think that
72mkdir -p dependencies/common/pandoc/1.12.4.2
73ln -s %{_bindir}/pandoc dependencies/common/pandoc/1.12.4.2/pandoc
74ln -s %{_bindir}/pandoc dependencies/common/pandoc/1.12.4.2/pandoc-static
75
4c3e022e
JR
76mkdir -p dependencies/common/libclang/3.5/include/
77ln -s /usr/include/clang-c dependencies/common/libclang/3.5/include/
78mkdir -p dependencies/common/libclang/builtin-headers
79ln -s /usr/lib64/clang/3.5.0/include dependencies/common/libclang/builtin-headers/3.5
80#dependencies/common/libclang/builtin-headers/libc++/3.5
81%ifarch %{ix86}
82mkdir -p dependencies/common/libclang/3.5/linux/x86
83ln -s %{_libdir}/libclang.so dependencies/common/libclang/3.5/linux/x86/libclang.so
84%endif
85%ifarch %{x8664}
86mkdir -p dependencies/common/libclang/3.5/linux/x86_64
87ln -s %{_libdir}/libclang.so dependencies/common/libclang/3.5/linux/x86_64/libclang.so
88%endif
89
9d0bf5de
JR
90%build
91install -d build
92cd build
93%cmake \
baa039bb 94 -DQT_QMAKE_EXECUTABLE=/usr/bin/qt5-qmake \
57694567
JR
95 -DCMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS:-%{rpmcxxflags} -DNDEBUG -DQT_NO_DEBUG}" \
96 -DCMAKE_C_FLAGS_RELEASE="${CFLAGS:-%{rpmcflags} -DNDEBUG -DQT_NO_DEBUG}" \
9d0bf5de
JR
97 -DRSTUDIO_TARGET=Desktop \
98 -DCMAKE_BUILD_TYPE=Release \
99 -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \
100 ../
101
102%{__make}
103
104%install
105rm -rf $RPM_BUILD_ROOT
106install -d $RPM_BUILD_ROOT%{_bindir}
107
108%{__make} -C build install/fast \
109 DESTDIR=$RPM_BUILD_ROOT
110
111ln -s %{_libdir}/%{name}/bin/rstudio $RPM_BUILD_ROOT%{_bindir}
112
113%clean
114rm -rf $RPM_BUILD_ROOT
115
116%files
117%defattr(644,root,root,755)
118%doc COPYING NOTICE README.md
119%attr(755,root,root) %{_bindir}/*
120%dir %{_libdir}/%{name}
121%{_libdir}/%{name}/R
122%dir %{_libdir}/%{name}/bin
1a5a515a 123%attr(755,root,root) %{_libdir}/%{name}/bin/diagnostics
9d0bf5de
JR
124%attr(755,root,root) %{_libdir}/%{name}/bin/r*
125%dir %{_libdir}/%{name}/bin/postback
126%attr(755,root,root) %{_libdir}/%{name}/bin/postback/*
127%{_libdir}/%{name}/resources
128%{_libdir}/%{name}/www
4c3e022e 129%{_libdir}/%{name}/www-symbolmaps
9d0bf5de
JR
130%{_libdir}/%{name}/rstudio.png
131%{_desktopdir}/rstudio.desktop
132%{_iconsdir}/hicolor/*x*/apps/*
133%{_iconsdir}/hicolor/*x*/mimetypes/*
134%{_datadir}/mime/packages/*.xml
135%{_pixmapsdir}/rstudio.png
This page took 0.068949 seconds and 4 git commands to generate.