%global ver_major 0 %global ver_minor 98 %global ver_patch 1103 Name: rstudio Version: %{ver_major}.%{ver_minor}.%{ver_patch} Release: 1mamba Summary: RStudio is an integrated development environment (IDE) for R Group: Graphical Desktop/Applications/Scientific Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: http://www.rstudio.org Source0: https://github.com/rstudio/rstudio/tarball/v%{version}/%{name}-%{version}.tar.gz # see: dependencies/common/install-common # ./install-gwt Source1: https://s3.amazonaws.com/rstudio-buildtools/gwt-2.6.0.zip Source2: https://s3.amazonaws.com/rstudio-buildtools/gin-1.5.zip # ./install-dictionaries Source3: https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip # ./install-mathjax Source4: https://s3.amazonaws.com/rstudio-buildtools/mathjax-23.zip # ./install-pandoc Source5: https://s3.amazonaws.com/rstudio-buildtools/pandoc-1.12.4.2.zip # patch created by executing the command: # find . \( -name *.cpp -or -name *.hpp \) -exec sed \ # -e 's@= 2.11.1 #BuildRequires: java-junit3, java-junit48 #BuildRequires: jdk Requires: R >= 2.11.1 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description RStudio is an integrated development environment (IDE) for the R programming language. %prep %setup -q %patch0 -p1 install -d src/gwt/lib/gwt install -d src/gwt/lib/gin/1.5 unzip -qq %{S:1} -d src/gwt/lib/gwt unzip -qq %{S:2} -d src/gwt/lib/gin/1.5 mv src/gwt/lib/gwt/gwt-2.6.0 src/gwt/lib/gwt/2.6.0 install -d dependencies/common/dictionaries unzip -qq %{S:3} -d dependencies/common/dictionaries unzip -qq %{S:4} -d dependencies/common # see: src/cpp/session/CMakeLists.txt install -d dependencies/common/{pandoc,rmarkdown,packrat,shinyapps} %build export PATH="$PATH:%{_datadir}/ant/bin" export RSTUDIO_VERSION_MAJOR=%{ver_major} export RSTUDIO_VERSION_MINOR=%{ver_minor} export RSTUDIO_VERSION_PATCH=%{ver_patch} %cmake -d build \ -DRSTUDIO_TARGET=Desktop \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} BOOST_SIGNALS_NO_DEPRECATION_WARNING=1; \ export BOOST_SIGNALS_NO_DEPRECATION_WARNING \ %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" make -C build install/fast DESTDIR=%{buildroot} install -d %{buildroot}%{_bindir} ln -s %{_libdir}/%{name}/bin/rstudio %{buildroot}%{_bindir} # remove unpackaged files rm -f %{buildroot}%{_libdir}/rstudio/{COPYING,INSTALL,NOTICE,README.md,SOURCE,VERSION} rm -f %{buildroot}%{_libdir}/rstudio/www/.gitignore %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/%{name} %dir %{_libdir}/rstudio %{_libdir}/rstudio/rstudio.png %{_libdir}/rstudio/R/ %{_libdir}/rstudio/bin/ %{_libdir}/rstudio/resources/ # %{_libdir}/rstudio/resources/dictionaries # %{_libdir}/rstudio/resources/mathjax-23 # %{_libdir}/rstudio/resources/pdfjs # %{_libdir}/rstudio/resources/presentation # %{_libdir}/rstudio/resources/templates %{_libdir}/rstudio/www/ %{_libdir}/rstudio/www-symbolmaps/ %{_datadir}/applications/rstudio.desktop %{_datadir}/icons/hicolor/*/apps/rstudio.png %{_datadir}/icons/hicolor/*/mimetypes/application-x-r-*.png %{_datadir}/mime/packages/rstudio.xml %{_datadir}/pixmaps/rstudio.png %doc COPYING %changelog * Sun Mar 08 2015 Davide Madrisan 0.98.1103-1mamba - update to 0.98.1103 * Sun Nov 09 2014 Davide Madrisan 0.98.1091-1mamba - package created by autospec