Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 25ee36dbe938013ebd4dd1ba4f21f0f8 > files > 1

R-cran-adapt-1.0.4-2mdv2008.1.src.rpm

%define modulename adapt
%define realver 1.0-4
%define r_library %{_libdir}/R/library
%define _requires_exceptions libR.so

Summary:	Multidimensional numerical integration for R
Name:		R-cran-%{modulename}
Version:	%(echo %realver|tr '-' '.')
Release:	%mkrel 2
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{modulename}/index.html
Source0:	http://cran.r-project.org/src/contrib/%{modulename}_%{realver}.tar.gz
BuildRequires:	R-base
BuildRequires:	gcc-gfortran
Requires:	R-base
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
Adaptive quadrature in up to 20 dimensions.

%prep
%setup -q -c

%build

R CMD build %{modulename}

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

mkdir -p %{buildroot}/%{r_library}

# (tpg) install
R CMD INSTALL %{modulename} --library=%{buildroot}/%{r_library}

# (tpg) provided by R-base
rm -rf %{buildroot}/%{r_library}/R.css

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{r_library}/%{modulename}


%changelog
* Fri Feb 29 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.4-2mdv2008.1
+ Revision: 176960
- remove requires on libR.so

* Sun Feb 17 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.4-1mdv2008.1
+ Revision: 169982
- complete spec file
- fix Url
- add source and spec file
- Created package structure for R-cran-adapt.