initial package

This commit is contained in:
Tom Callaway 2014-06-02 11:42:06 -04:00
parent 9d6b874458
commit 71bc262caf

54
R-expm.spec Normal file
View File

@ -0,0 +1,54 @@
%global packname expm
%global packver 0.99
%global packrel 1.1
Name: R-%{packname}
Version: %{packver}.%{packrel}
Release: 1%{?dist}
Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{packver}-%{packrel}.tar.gz
License: GPLv2+
URL: http://cran.r-project.org/web/packages/expm
Group: Applications/Engineering
Summary: Computation of the matrix exponential and related quantities
BuildRequires: R-devel >= 3.1.0-5, tetex-latex, R-Matrix
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: R-core >= 3.1.0, R-Matrix
%description
Efficient calculation of the exponential of a matrix. The package
contains an R interface and a C API that package authors can use.
%prep
%setup -q -c -n %{packname}
%build
%install
# Specific installation procedure for R
mkdir -p $RPM_BUILD_ROOT%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{_libdir}/R/library %{packname}
%check
# Needs unpackaged 'RColorBrewer' 'sfsmisc'
# %%{_bindir}/R CMD check %%{packname}
%files
%dir %{_libdir}/R/library/%{packname}
%doc %{_libdir}/R/library/%{packname}/data
%doc %{_libdir}/R/library/%{packname}/doc
%doc %{_libdir}/R/library/%{packname}/html
%doc %{_libdir}/R/library/%{packname}/DESCRIPTION
%{_libdir}/R/library/%{packname}/INDEX
%{_libdir}/R/library/%{packname}/NAMESPACE
%{_libdir}/R/library/%{packname}/Meta
%{_libdir}/R/library/%{packname}/R
%{_libdir}/R/library/%{packname}/demo/
%{_libdir}/R/library/%{packname}/help
%dir %{_libdir}/R/library/%{packname}/po
%lang(fr) %{_libdir}/R/library/%{packname}/po/fr/
%{_libdir}/R/library/%{packname}/libs/%{packname}.so
%{_libdir}/R/library/%{packname}/test-tools.R
%changelog
* Thu May 8 2014 Tom Callaway <spot@fedoraproject.org> - 0.99.1.1-1
- initial package