Commit cd9cb3d5 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Initial commit

parents
dir = $(shell pwd)
pkg = $(notdir $(dir))
spec_file = $(pkg).spec
sources: $(spec_file)
spectool -g $^
%global packname RSQLite
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.1.2
Release: 1%{?dist}
Summary: 'SQLite' Interface for R
Group: Applications/Engineering
License: LGPLv2+
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/%{packname}_1.1-2.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-DBI R-memoise R-methods R-Rcpp
# Suggests: R-DBItest R-knitr R-rmarkdown R-testthat
# LinkingTo:
# Enhances:
Requires: R-DBI R-memoise R-Rcpp
BuildRequires: R-devel tex(latex)
BuildRequires: R-DBI R-memoise R-Rcpp
BuildRequires: R-testthat
%description
Embeds the 'SQLite' database engine in R and provides an interface
compliant with the 'DBI' package. The source for the 'SQLite' engine
(version 3.8.8.2) is included.
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/db/datasets.sqlite
%{rlibdir}/%{packname}/libs/RSQLite.so
%changelog
* Wed May 17 2017 Klaus Zimmermann <klaus.zimmermann@smhi.se> 1.1.2-1
- initial package for Fedora
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment