[11391] | 1 | %define pkg_version 1.1.412 |
---|
| 2 | %define pkg_release 1%{?_dist_release} |
---|
[10745] | 3 | |
---|
| 4 | Summary: An integrated development environment (IDE) for R |
---|
| 5 | Summary(ja): Rのための統合開発環境 |
---|
| 6 | Name: rstudio |
---|
| 7 | Version: %{pkg_version} |
---|
| 8 | Release: %{pkg_release} |
---|
| 9 | |
---|
| 10 | License: AGPLv3 |
---|
| 11 | Group: Applications/Edutainment |
---|
| 12 | URL: https://www.rstudio.com/ |
---|
| 13 | Source0: rstudio-%{version}.tar.gz |
---|
| 14 | |
---|
| 15 | Source1: core-dictionaries.zip |
---|
| 16 | Source2: mathjax-26.zip |
---|
| 17 | Source3: rsconnect_0.4.3.tar.gz |
---|
| 18 | Source4: rmarkdown_1.0.9002.tar.gz |
---|
| 19 | |
---|
| 20 | # patch to avoid download necessary files |
---|
[11391] | 21 | Patch1: rstudio-dependencies_common_not_download.patch |
---|
| 22 | |
---|
[10745] | 23 | # patches to use system pandoc |
---|
[11391] | 24 | Patch2: rstudio-rsession-dev.conf.patch |
---|
| 25 | Patch3: rstudio-SessionOptions.cpp.patch |
---|
| 26 | Patch4: rstudio-session_CMakeLists.txt.patch |
---|
[10745] | 27 | |
---|
[11391] | 28 | # patch to use system qt5 |
---|
| 29 | Patch5: rstudio-desktop_CMakeLists.txt.patch |
---|
| 30 | |
---|
| 31 | # patch to change default settings |
---|
| 32 | Patch10: rstudio-change_default_settings.patch |
---|
| 33 | |
---|
[10745] | 34 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 35 | |
---|
| 36 | BuildRequires: rstudio-gwt |
---|
| 37 | BuildRequires: rstudio-chromedriver |
---|
[11391] | 38 | BuildRequires: cmake |
---|
| 39 | BuildRequires: R >= 3.4 |
---|
[10745] | 40 | BuildRequires: pandoc pandoc-citeproc |
---|
[11391] | 41 | |
---|
| 42 | # java-1.7.0-openjdk-devel is needed |
---|
[10745] | 43 | BuildRequires: java-1.7.0-openjdk-devel |
---|
| 44 | BuildRequires: ant |
---|
| 45 | BuildRequires: xml-commons-apis |
---|
| 46 | BuildRequires: libuuid-devel |
---|
| 47 | BuildRequires: openssl-devel |
---|
| 48 | BuildRequires: pam-devel |
---|
| 49 | BuildRequires: pango-devel |
---|
| 50 | BuildRequires: bzip2-devel zlib-devel |
---|
[11391] | 51 | |
---|
| 52 | BuildRequires: libboost-devel |
---|
| 53 | BuildRequires: libboost |
---|
| 54 | BuildRequires: libboost-atomic |
---|
| 55 | BuildRequires: libboost-date-time |
---|
| 56 | BuildRequires: libboost-filesystem |
---|
| 57 | BuildRequires: libboost-iostreams |
---|
| 58 | BuildRequires: libboost-program-options |
---|
| 59 | BuildRequires: libboost-random |
---|
| 60 | BuildRequires: libboost-regex |
---|
| 61 | BuildRequires: libboost-signals |
---|
| 62 | BuildRequires: libboost-system |
---|
| 63 | BuildRequires: libboost-thread |
---|
| 64 | BuildRequires: libboost-chrono |
---|
| 65 | |
---|
[10745] | 66 | BuildRequires: qt5-qtbase-devel |
---|
| 67 | BuildRequires: qt5-qtlocation-devel |
---|
| 68 | BuildRequires: qt5-qtsensors-devel |
---|
| 69 | BuildRequires: qt5-qtsvg-devel |
---|
| 70 | BuildRequires: qt5-qtxmlpatterns-devel |
---|
[11391] | 71 | BuildRequires: qt5-qtwebchannel-devel |
---|
[10745] | 72 | BuildRequires: qt5-qtwebkit-devel |
---|
| 73 | |
---|
[11391] | 74 | Requires: R >= 3.4 |
---|
[10745] | 75 | Requires: pandoc pandoc-citeproc |
---|
[11391] | 76 | Requires: java >= 1.7 |
---|
[10745] | 77 | Requires: libuuid |
---|
| 78 | Requires: openssl |
---|
| 79 | Requires: pam |
---|
| 80 | Requires: pango |
---|
| 81 | |
---|
[11391] | 82 | |
---|
[10745] | 83 | Vendor: Project Vine |
---|
| 84 | Distribution: Vine Linux |
---|
| 85 | Packager: ara_t |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %description |
---|
| 89 | RStudio is a set of integrated tools designed to help you be more productive |
---|
| 90 | with R. It includes a console, syntax-highlighting editor that supports |
---|
| 91 | direct code execution, as well as tools for plotting, history, debugging |
---|
| 92 | and workspace management. |
---|
| 93 | |
---|
| 94 | %description -l ja |
---|
| 95 | RStudio™ はRのための新しい統合開発環境(IDE)です。RStudioは、あなたがRを |
---|
| 96 | 最大限利用する手助けとなるよう直感的なユーザインターフェイスと強力な |
---|
| 97 | コーディングツールを結合させたものです。 |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %prep |
---|
| 101 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 102 | %setup -q |
---|
| 103 | |
---|
[11391] | 104 | # patch to avoid download necessary files |
---|
| 105 | %patch1 |
---|
| 106 | |
---|
| 107 | # patches to use system pandoc |
---|
| 108 | %patch2 |
---|
| 109 | %patch3 |
---|
| 110 | %patch4 |
---|
| 111 | |
---|
| 112 | # patch to use system qt5 |
---|
| 113 | %patch5 |
---|
| 114 | |
---|
| 115 | # patch to change default settings |
---|
| 116 | %patch10 |
---|
| 117 | |
---|
[10745] | 118 | %{__cp} /usr/src/rstudio-gwt/* \ |
---|
| 119 | %{_builddir}/%{name}-%{version}/dependencies/common |
---|
| 120 | %{__cp} /usr/src/rstudio-chromedriver/* \ |
---|
| 121 | %{_builddir}/%{name}-%{version}/dependencies/common |
---|
| 122 | |
---|
| 123 | %{__cp} \ |
---|
| 124 | %{SOURCE1} %{SOURCE2} \ |
---|
| 125 | %{_builddir}/%{name}-%{version}/dependencies/common |
---|
| 126 | |
---|
[11391] | 127 | pushd dependencies/common |
---|
[10745] | 128 | sh install-gwt; |
---|
| 129 | sh install-dictionaries; |
---|
| 130 | sh install-mathjax; |
---|
| 131 | sh install-libclang; |
---|
| 132 | %{__tar} xzf %{SOURCE3} |
---|
| 133 | %{__tar} xzf %{SOURCE4} |
---|
| 134 | sh install-packages; |
---|
[11391] | 135 | popd |
---|
[10745] | 136 | |
---|
| 137 | cmake . \ |
---|
| 138 | -DRSTUDIO_TARGET=Desktop \ |
---|
| 139 | -DCMAKE_BUILD_TYPE=Release \ |
---|
| 140 | -DCMAKE_INSTALL_PREFIX=%{_libdir}/rstudio |
---|
| 141 | %{__make} %{?_smp_mflags} |
---|
| 142 | |
---|
| 143 | %install |
---|
| 144 | %{make_install} |
---|
| 145 | |
---|
| 146 | # make "/usr/bin/rstudio" |
---|
| 147 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir} |
---|
| 148 | echo "%{_libdir}/rstudio/bin/rstudio" > ${RPM_BUILD_ROOT}%{_bindir}/rstudio |
---|
| 149 | %{__chmod} +x ${RPM_BUILD_ROOT}%{_bindir}/rstudio |
---|
| 150 | |
---|
| 151 | %clean |
---|
| 152 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 153 | |
---|
[11391] | 154 | %post -p %{_syssbindir}/ldconfig |
---|
[10745] | 155 | |
---|
[11391] | 156 | %postun -p %{_syssbindir}/ldconfig |
---|
| 157 | |
---|
| 158 | |
---|
[10745] | 159 | %files |
---|
| 160 | %defattr(-, root, root) |
---|
| 161 | %{_bindir}/ |
---|
| 162 | %{_libdir}/rstudio/ |
---|
| 163 | %{_datadir}/applications/rstudio.desktop |
---|
| 164 | %{_datadir}/icons/ |
---|
| 165 | %{_datadir}/mime/ |
---|
| 166 | %{_datadir}/pixmaps/ |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | %changelog |
---|
[11391] | 170 | * Fri Jan 12 2018 Toshiaki Ara <ara_t@384.jp> 1.1.412-1 |
---|
| 171 | - new upstream release |
---|
| 172 | - add BuildRequires: libboost-random |
---|
| 173 | - add BuildRequires: qt5-qtwebchannel-devel |
---|
| 174 | - update Patches |
---|
| 175 | |
---|
[10745] | 176 | * Thu Aug 04 2016 Toshiaki Ara <ara_t@384.jp> 0.99.1274-2 |
---|
| 177 | - correct package desctiption |
---|
| 178 | |
---|
| 179 | * Thu Aug 04 2016 Toshiaki Ara <ara_t@384.jp> 0.99.1274-1 |
---|
| 180 | - new package |
---|
| 181 | |
---|