%global packname RPostgres
%global packver 1.3.2
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.3.2
Release: 6%{?dist}
Summary: Rcpp Interface to PostgreSQL
License: GPLv3
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-bit64, R-blob >= 1.2.0, R-DBI >= 1.1.0, R-hms >= 0.5.0, R-lubridate, R-methods, R-Rcpp >= 0.11.4.2, R-withr
# Suggests: R-callr, R-covr, R-DBItest >= 1.7.0, R-knitr, R-rmarkdown, R-testthat
# LinkingTo: R-plogr >= 0.2.0, R-Rcpp
# Enhances:
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-bit64
BuildRequires: R-blob >= 1.2.0
BuildRequires: R-DBI >= 1.1.0
BuildRequires: R-hms >= 0.5.0
BuildRequires: R-lubridate
BuildRequires: R-methods
BuildRequires: R-Rcpp-devel >= 0.11.4.2
BuildRequires: R-withr
BuildRequires: R-BH-devel
BuildRequires: R-plogr-devel >= 0.2.0
BuildRequires: R-callr
BuildRequires: R-DBItest >= 1.7.0
BuildRequires: R-knitr
BuildRequires: R-rmarkdown
BuildRequires: R-testthat
BuildRequires: pkgconfig(libpq)
%description
Fully DBI-compliant Rcpp-backed interface to PostgreSQL
, an open-source relational database.
%prep
%setup -q -c -n %{packname}
# Don't need coverage; it's not packaged either.
sed -i 's/covr, //g' %{packname}/DESCRIPTION
%build
%install
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
%check
%{_bindir}/R CMD check %{packname}
%files
%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
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%changelog
* Sat Sep 3 2022 Tom Callaway - 1.3.2-6
- rebuild for R 4.2.1
* Wed Jul 20 2022 Fedora Release Engineering - 1.3.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering - 1.3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering - 1.3.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jun 17 2021 Tom Callaway - 1.3.2-2
- Rebuilt for R 4.1.0
* Sun Apr 25 2021 Elliott Sales de Andrade - 1.3.2-1
- Update to latest version (#1948467)
* Tue Feb 23 2021 Elliott Sales de Andrade - 1.3.1-1
- Update to latest version (#1913646)
* Mon Feb 08 2021 Pavel Raiskup - 1.3.0-3
- rebuild for libpq ABI fix rhbz#1908268
* Mon Jan 25 2021 Fedora Release Engineering - 1.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sun Jan 10 2021 Elliott Sales de Andrade - 1.3.0-1
- Update to latest version (#1913646)
* Wed Sep 30 2020 Elliott Sales de Andrade - 1.2.1-1
- Update to latest version (#1883221)
* Fri Jun 26 2020 Elliott Sales de Andrade - 1.2.0-1
- initial package for Fedora