Browse Source

updated: R

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2765 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 13 years ago
parent
commit
58685d505e
1 changed files with 43 additions and 10 deletions
  1. 43 10
      R/R/R-vl.spec

+ 43 - 10
R/R/R-vl.spec

@@ -1,5 +1,5 @@
-%define pkg_version 2.11.0
-%define pkg_release 3%{?_dist_release}
+%define pkg_version 2.12.1
+%define pkg_release 2%{?_dist_release}
 
 Summary:          A language for data analysis and graphics
 Summary(ja):      データ解析・グラフィック化の言語
@@ -8,20 +8,28 @@ Version:          %{pkg_version}
 Release:          %{pkg_release}
 Source0:          ftp://cran.r-project.org/pub/R/src/base/R-2/%{name}-%{version}.tar.gz
 #Patch0:           R-release.diff.gz
-License:          GPL2
+License:          GPLv2+
 Group:            Applications/Engineering
 URL:              http://www.r-project.org
 
 Requires: libgfortran
 
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: gcc-c++
 BuildRequires: gcc-gfortran libgfortran
-#BuildRequires: tetex texinfo tcl tk
-BuildRequires: texlive texinfo tcl tk
-BuildRequires: libpng-devel libjpeg-devel
+%if %{?_dist_release} == "vl5"
+BuildRequires: tetex
+%else
+BuildRequires: texlive
+BuildRequires: texlive-collection-basic 
+BuildRequires: texlive-collection-texinfo
+%endif
+BuildRequires: texinfo tcl tk
+BuildRequires: libpng-devel libjpeg-devel libtiff-devel
 BuildRequires: readline-devel libtermcap-devel
-BuildRequires: zlib-devel bzip2-devel XOrg-devel
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: zlib-devel bzip2-devel 
+BuildRequires: libSM-devel libX11-devel libICE-devel libXt-devel libXmu-devel
+BuildRequires: cairo-devel pango-devel
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -96,14 +104,27 @@ from the R project.  This packages provides the header files.
 %description -l ja -n libRmath-devel
 libRmathのヘッダファイル(Rmath.h)
 
+%package -n libRmath-static
+Summary: Static R Standalone math library
+Summary(ja): libRmath の静的ライブラリ
+Group: Development/Libraries
+Requires: libRmath-devel = %{version}-%{release}
+
+%description -n libRmath-static
+A standalone library of mathematical and statistical functions derived
+from the R project.  This package provides the static libRmath library.
+
+
 %prep
 %{__rm} -rf ${RPM_BUILD_ROOT}
 %setup -q 
 #%patch0 -p1 
 
 %build
-export R_BROWSER="%{_bindir}/firefox"
-%configure
+export R_PDFVIEWER="%{_bindir}/xdg-open"
+export R_PRINTCMD="lpr"
+export R_BROWSER="%{_bindir}/xdg-open"
+%configure --enable-R-shlib
 %{__make} %{?_smp_mflags}
 (cd src/nmath/standalone; %{__make} %{?_smp_mflags})
 LANG=C make check-all
@@ -154,6 +175,10 @@ chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/R
 %{_libdir}/pkgconfig/*.pc
 %{_includedir}/Rmath.h
 
+%files -n libRmath-static
+%defattr(-, root, root)
+%{_libdir}/libRmath.a
+
 %clean
 %{__rm} -rf ${RPM_BUILD_ROOT}
 
@@ -192,6 +217,14 @@ chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/R
 
 
 %changelog
+* Fri Feb 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.12.1-2
+- synchronized to VinePlus/5 package
+  * Tue Dec 21 2010 Toshiaki Ara <ara_t@384.jp> 2.12.1-1vl5
+  - Updated to 2.12.1
+- added --enable-R-shlib option to %%configure
+- added static subpackage
+- use BR: texlive instead of tetex on VineSeed 
+
 * Sun Sep 26 2010 Shu KONNO <owa@bg.wakwak.com> 2.11.0-3
 - rebuilt with rpm-4.8.1 for pkg-config