R-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. %define pkg_version 2.10.1
  2. %define pkg_release 1%{?_dist_release}
  3. Summary: A language for data analysis and graphics
  4. Summary(ja): データ解析・グラフィック化の言語
  5. Name: R
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. Source0: ftp://cran.r-project.org/pub/R/src/base/R-2/%{name}-%{version}.tar.gz
  9. #Patch0: R-release.diff.gz
  10. License: GPL2
  11. Group: Applications/Engineering
  12. URL: http://www.r-project.org
  13. BuildRequires: gcc-c++
  14. BuildRequires: gcc-gfortran
  15. BuildRequires: tetex texinfo tcl tk
  16. BuildRequires: libpng-devel libjpeg-devel
  17. BuildRequires: readline-devel libtermcap-devel
  18. BuildRequires: zlib-devel bzip2-devel XOrg-devel
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: Toshiaki Ara <ara_t@384.jp>
  23. %description
  24. 'GNU S' - A language and environment for statistical computing and
  25. graphics. R is similar to the award-winning S system, which was
  26. developed at Bell Laboratories by John Chambers et al. It provides
  27. a wide variety of statistical and graphical techniques (linear and
  28. nonlinear modelling, statistical tests, time series analysis,
  29. classification, clustering, ...).
  30. R is designed as a true computer language with control-flow
  31. constructions for iteration and alternation, and it allows users to
  32. add additional functionality by defining new functions.
  33. For computationally intensive tasks, C, C++ and Fortran code
  34. can be linked and called at run time.
  35. %description -l ja
  36. 'GNU S' - 統計解析とグラフィックスのプログラミング言語と環境。
  37. Rは、ベル研究所のJohn Chambersらが開発した輝けるS言語に似ており、
  38. 線形・非線型モデル、統計検定、時系列分析、クラスター分析など
  39. 幅広い統計解析・視覚化手法を提供する。
  40. Rは、条件分岐や反復計算などの制御構造を持つ正真正銘のコンピュータ言語
  41. として設計されており、ユーザが新たに関数を組み込むことが可能である。
  42. また、計算量が多いときにはC、 C++、Fortranなどのコードとリンクさせて
  43. 使用することができる。
  44. %package devel
  45. Summary: files for development of R packages.
  46. Summary(ja): Rパッケージ開発用ファイル
  47. Group: Development/Libraries
  48. Requires: R = %{version}-%{release}
  49. %description devel
  50. Install R-devel if you are going to develop or compile R packages.
  51. This is just a stub package containing the documentation on "Writing R
  52. Extensions". However, installing it will ensure that the build
  53. environment for R packages is correct.
  54. %description -l ja devel
  55. Rパッケージを開発したりコンパイルする場合には、このR-develを
  56. インストールします。R-exts.pdf ("Writing R Extensions": 英文)
  57. が含まれているだけのサブパッケージですが、正しくRパッケージを
  58. 開発するための助けになるでしょう。
  59. %package -n libRmath
  60. Summary: standalone math library from the R project
  61. Summary(ja): 単独で動作するRプロジェクトの数理ライブラリ
  62. Group: System Environment/Libraries
  63. %description -n libRmath
  64. A standalone library of mathematical and statistical functions derived
  65. from the R project. This packages provides the shared libRmath library.
  66. %description -l ja -n libRmath
  67. 単独で動作するRプロジェクトの数理統計ライブラリで、libRmath.soという
  68. 共有ライブラリを提供する。
  69. %package -n libRmath-devel
  70. Summary: standalone math library from the R project
  71. Summary(ja): libRmathの開発ライブラリ
  72. Group: Development/Libraries
  73. Requires: libRmath = %{version}-%{release}
  74. %description -n libRmath-devel
  75. A standalone library of mathematical and statistical functions derived
  76. from the R project. This packages provides the header files.
  77. %description -l ja -n libRmath-devel
  78. libRmathのヘッダファイル(Rmath.h)
  79. %prep
  80. %{__rm} -rf ${RPM_BUILD_ROOT}
  81. %setup -q
  82. #%patch0 -p1
  83. %build
  84. export R_BROWSER="%{_bindir}/firefox"
  85. %configure
  86. %{__make} %{?_smp_mflags}
  87. (cd src/nmath/standalone; %{__make} %{?_smp_mflags})
  88. LANG=C make check-all
  89. %{__make} pdf
  90. #We can only "make info" if we have an up to date version of texinfo
  91. %{?INFO: %{__make} info}
  92. %install
  93. %{__make} install DESTDIR=${RPM_BUILD_ROOT} install-pdf %{?INFO:install-info}
  94. %{__rm} -f ${RPM_BUILD_ROOT}%{_infodir}/dir
  95. %{__rm} -f ${RPM_BUILD_ROOT}%{_infodir}/dir.old
  96. #Install libRmath files
  97. (cd src/nmath/standalone; %{__make} install DESTDIR=${RPM_BUILD_ROOT})
  98. mkdir -p ${RPM_BUILD_ROOT}/etc/ld.so.conf.d
  99. echo "%{_libdir}/R/lib" > ${RPM_BUILD_ROOT}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
  100. #Fix lication of R_HOME_DIR in shell wrapper
  101. sed -e "s@R_HOME_DIR=.*@R_HOME_DIR=%{_libdir}/R@" bin/R \
  102. > ${RPM_BUILD_ROOT}%{_libdir}/R/bin/R
  103. chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/R/bin/R
  104. sed -e "s@R_HOME_DIR=.*@R_HOME_DIR=%{_libdir}/R@" bin/R \
  105. > ${RPM_BUILD_ROOT}%{_bindir}/R
  106. chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/R
  107. %files
  108. %defattr(-, root, root)
  109. %{_bindir}/R
  110. %{_bindir}/Rscript
  111. %{_libdir}/R
  112. %{?INFO:%{_infodir}/R-*.info*}
  113. %{_mandir}/man1/*
  114. /etc/ld.so.conf.d/*
  115. %files devel
  116. %defattr(-, root, root)
  117. %doc doc/manual/R-exts.pdf
  118. %files -n libRmath
  119. %defattr(-, root, root)
  120. %{_libdir}/libRmath.so
  121. %files -n libRmath-devel
  122. %defattr(-, root, root)
  123. %{_libdir}/pkgconfig/*.pc
  124. %{_includedir}/Rmath.h
  125. %clean
  126. %{__rm} -rf ${RPM_BUILD_ROOT}
  127. %post
  128. %if 0%{?INFO}
  129. # Create directory entries for info files
  130. # (optional doc files, so we must check that they are installed)
  131. for doc in admin data exts FAQ intro lang; do
  132. file=%{_infodir}/R-${doc}.info.gz
  133. if [ -e $file ]; then
  134. /sbin/install-info ${file} %{_infodir}/dir 2>/dev/null
  135. fi
  136. done
  137. %endif
  138. %{_syssbindir}/ldconfig
  139. %preun
  140. %if 0%{?INFO}
  141. if [ $1 = 0 ]; then
  142. # Delete directory entries for info files (if they were installed)
  143. for doc in admin data exts FAQ intro lang; do
  144. file=%{_infodir}/R-${doc}.info.gz
  145. if [ -e ${file} ]; then
  146. /sbin/install-info --delete R-${doc} %{_infodir}/dir 2>/dev/null
  147. fi
  148. done
  149. fi
  150. %endif
  151. %postun -p %{_syssbindir}/ldconfig
  152. %post -n libRmath -p %{_syssbindir}/ldconfig
  153. %postun -n libRmath -p %{_syssbindir}/ldconfig
  154. %changelog
  155. * Thu Dec 15 2009 Toshiaki Ara <ara_t@384.jp> 2.10.1-1vl5
  156. - Updated to 2.10.1
  157. * Thu Nov 06 2009 Toshiaki Ara <ara_t@384.jp> 2.10.0-3vl5
  158. - patched to 2.10.0
  159. * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10.0-2
  160. - spec in UTF-8
  161. * Thu Oct 27 2009 Toshiaki Ara <ara_t@384.jp> 2.10.0-1vl5
  162. - Updated to 2.10.0
  163. * Thu Sep 23 2009 Toshiaki Ara <ara_t@384.jp> 2.9.2-1vl5
  164. - Updated to 2.9.2
  165. - deleted BuildRequires: lapack-devel blas-devel
  166. - rewrote SPEC file
  167. * Thu Aug 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:2.5.1-0vl1
  168. - Updated to 2.5.1
  169. - added BuildRequires: gcc-gfortran for VineSeed
  170. - added BuildRequires: lapack-devel blas-devel
  171. - fixed %preun script
  172. * Wed Dec 20 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp> 1:2.4.1-0vl1
  173. - Updated to 2.4.1
  174. - Added INFO option
  175. - Exclude Japanese Rprofile.site
  176. * Mon Oct 30 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  177. - Updated to 2.4.0
  178. * Mon Oct 2 2006 Martyn Plummer <plummer@iarc.fr> 1:2.3.1-2
  179. - Added optimization flags
  180. * Tue Jun 6 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp> 1:2.3.1-0vl1
  181. - Packaged for VineLinux3.2
  182. * Tue May 9 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp> 1:2.3.0-0vl2
  183. - Use JAVA_HOME for R_JAVA_LD_LIBRARY_PATH
  184. * Mon May 8 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp> 1:2.3.0-0vl1
  185. - Packaged for VineLinux3.2
  186. - Slipped texinfo
  187. - Fixed preun error
  188. - Preset Japanese fonts
  189. * Thu Jan 12 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  190. - Packaged for VineLinux3.2
  191. * Tue Jan 3 2006 Martyn Plumer <plummber@iarc.fr> 1:2.2.1-1
  192. - Restored CAPABILITIES file lost in 2.2.1beta
  193. * Mon Dec 12 2005 Martyn Plummer <plummer@iarc.fr> 1:2.2.1beta-1
  194. - Configure uses --without-blas by default.
  195. - Install pdf manuals.
  196. - All toplevel documentation files are installed into _libdir/R
  197. as they may be required by R (qv note on AUTHORS and THANKS below).
  198. - Legacy scripts for rebuilding package indices removed.
  199. * Mon Sep 19 2005 Martyn Plummer <plummer@iarc.fr> 1:2.2.0-0
  200. - R now compiles with gcc 4.0.1 and default rpm optimization flags.
  201. * Wed Jul 13 2005 Martyn Plummer <plummer@iarc.fr> 1:2.1.1-2
  202. - The files AUTHORS and THANKS need to be installed into _libdir/R
  203. as they are required by the function contributors(). Previously
  204. they were installed only as documentation files.
  205. * Tue Jun 21 2005 Martyn Plummer <plummer@iarc.fr>
  206. - Corrected date error in SPEC file.
  207. * Sun Jun 19 2005 Martyn Plummer <plummer@iarc.fr>
  208. - Dropped support for Red Hat boxed set.
  209. - Synchronized with Fedora Extras 4 RPM by Tom Calloway
  210. including support for shared R library.
  211. - Added gfortran support. However, gcc 4.0.0 will not compile R correctly
  212. with the default optimization flags, so there is a temporary work-around.
  213. * Wed Jun 15 2005 Gernot Stocker <gernot.stocker@tugraz.at>
  214. - Adaptations for CentOS and Rocks-Linux, tested under Release 4.0
  215. * Sat Apr 30 2005 Joseph P. Skudlarek <Jskud@Jskud.com> 0:2.1.0-0.fdr.3
  216. - Install R-data.info file as well.
  217. - Make info processing conditional on texinfo version, not platform release,
  218. so that if a new enough version is installed, we will build and install info.
  219. * Mon Apr 18 2005 Martyn Plummer <plummer@iarc.fr> 0:2.1.0-0.fdr.1
  220. - Built R 2.1.0. R now supports internationalization, so the patch
  221. to set the locale to "C" is now dropped.
  222. - install.packages() exits gracefully with a helpful message if
  223. the file INSTALL is not present, so this is now included in the
  224. R-devel package.
  225. * Mon Mar 14 2005 Martyn Plummer <plummer@iarc.fr> 0:2.0.1-0.fdr.5
  226. - Added support for Scientific Linux (http://www.scientificlinux.org)
  227. A distribution based on RHEL. Thanks to Jon Peatfield.
  228. * Mon Feb 28 2005 Martyn Plummer <plummer@iarc.fr> 0:2.0.1-0.fdr.4
  229. - Fixed file ownership in R-devel and libRmath packages
  230. * Wed Feb 16 2005 Martyn Plummer <plummer@iarc.fr> 0:2.0.1-0.fdr.3
  231. - R-devel package is now a stub package with no files, except a documentation
  232. file (RPM won't accept sub-packages with no files). R now conflicts
  233. with earlier (i.e 0:2.0.1-0.fdr.2) versions of R-devel.
  234. - Created libRmath subpackage with shared library.
  235. * Mon Jan 31 2005 Martyn Plummer <plummer@iarc.fr> 0:2.0.1-0.fdr.2
  236. - Created R-devel and libRmath-devel subpackages
  237. * Mon Nov 15 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.1-0.fdr.1
  238. - Built R 2.0.1
  239. * Wed Nov 10 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.0-0.fdr.3
  240. - Set R_PRINTCMD at configure times so that by default getOption(printcmd)
  241. gives "lpr".
  242. - Define macro fcx for all Fedora distributions. This replaces Rinfo
  243. * Tue Oct 12 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.0-0.fdr.2
  244. - Info support is now conditional on the macro Rinfo, which is only
  245. defined for Fedora 1 and 2.
  246. * Thu Oct 7 2004 Martyn Plummer <plummer@iarc.fr> 0:2.0.0-0.fdr.1
  247. - Built R 2.0.0
  248. - There is no longer a BUGS file, so this is not installed as a
  249. documentation file.