R-littler-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %define pkg_name littler
  2. %define pkg_version 0.3.0
  3. %define pkg_release 2%{?_dist_release}
  4. Summary: GNU R script language and command-line frontend
  5. Summary(ja): GNU R スクリプト言語およびコマンドラインフロントエンド
  6. Name: R-%{pkg_name}
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. License: GPLv2+ or later
  10. Group: Applications/Edutainment
  11. URL: https://cran.ism.ac.jp/
  12. Source0: https://cran.ism.ac.jp/src/contrib/%{pkg_name}_%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: R
  15. BuildRequires: zlib-devel bzip2-devel
  16. BuildRequires: libicu-devel
  17. Requires: R
  18. Obsoletes: littler
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: ara_t
  22. %description
  23. littler provides hash-bang (i.e. script starting with #!/some/path)
  24. capability for GNU R, as well as simple command-line and piping use.
  25. %description -l ja
  26. 'r' (別名 'littler') プログラムは統計計算およびグラフィック向けの
  27. GNU R言語環境 への軽量なバイナリラッパーを提供します。
  28. %prep
  29. %{__rm} -rf ${RPM_BUILD_ROOT}
  30. %build
  31. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_libdir}/R/library
  32. R CMD INSTALL %{_sourcedir}/%{pkg_name}_%{version}.tar.gz \
  33. -l ${RPM_BUILD_ROOT}%{_libdir}/R/library
  34. %install
  35. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
  36. cd ${RPM_BUILD_ROOT}
  37. %{__ln_s} %{_libdir}/R/library/%{pkg_name}/bin/r usr/bin
  38. %clean
  39. %{__rm} -rf ${RPM_BUILD_ROOT}
  40. %files
  41. %defattr(-, root, root)
  42. %{_bindir}/
  43. %{_libdir}/R/library
  44. %changelog
  45. * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 0.3.0-2
  46. - correct SPEC file
  47. * Wed Jan 27 2016 Toshiaki Ara <ara_t@384.jp> 0.3.0-1
  48. - rename package from littler to R-littler
  49. - add Obsoletes: littler
  50. * Tue Jan 26 2016 Toshiaki Ara <ara_t@384.jp> 0.3.0-1
  51. - update 0.3.0
  52. * Tue Dec 03 2013 Toshiaki Ara <ara_t@384.jp> 0.1.5-1
  53. - new package