Blame R-odbc.spec

dafc332
%global packname odbc
6bdc4ad
%global packver  1.3.2
dafc332
%global rlibdir  %{_libdir}/R/library
dafc332
dafc332
Name:             R-%{packname}
6bdc4ad
Version:          1.3.2
463f356
Release:          4%{?dist}
dafc332
Summary:          Connect to ODBC Compatible Databases (using the DBI Interface)
dafc332
dafc332
License:          MIT
dafc332
URL:              https://CRAN.R-project.org/package=%{packname}
dafc332
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
dafc332
dafc332
# Here's the R view of the dependencies world:
dafc332
# Depends:
dafc332
# Imports:   R-bit64, R-blob >= 1.2.0, R-DBI >= 1.0.0, R-hms, R-methods, R-rlang, R-Rcpp >= 0.12.11
dafc332
# Suggests:  R-covr, R-DBItest, R-magrittr, R-RSQLite, R-testthat, R-tibble
dafc332
# LinkingTo:
dafc332
# Enhances:
dafc332
dafc332
BuildRequires:    R-devel
dafc332
BuildRequires:    tex(latex)
dafc332
BuildRequires:    R-bit64
dafc332
BuildRequires:    R-blob >= 1.2.0
dafc332
BuildRequires:    R-DBI >= 1.0.0
dafc332
BuildRequires:    R-hms
dafc332
BuildRequires:    R-methods
dafc332
BuildRequires:    R-rlang
dafc332
BuildRequires:    R-Rcpp-devel >= 0.12.11
dafc332
BuildRequires:    R-DBItest
dafc332
BuildRequires:    R-magrittr
dafc332
BuildRequires:    R-RSQLite
dafc332
BuildRequires:    R-testthat
dafc332
BuildRequires:    R-tibble
c53baf5
BuildRequires:    cctz-devel
dafc332
BuildRequires:    pkgconfig(odbc)
dafc332
dafc332
%description
dafc332
A DBI-compatible interface to ODBC databases.
dafc332
dafc332
dafc332
%prep
dafc332
%setup -q -c -n %{packname}
dafc332
dafc332
# Don't need coverage; it's not packaged either.
dafc332
sed -i 's/covr, //g' %{packname}/DESCRIPTION
dafc332
c53baf5
# Remove bundled cctz.
c53baf5
rm -r %{packname}/src/cctz
c53baf5
c53baf5
# Link against system cctz.
c53baf5
sed -i \
c53baf5
    -e '/PKG_CXXFLAGS/s!-Icctz/include!-I/usr/include/cctz!' \
c53baf5
    -e '/PKG_LIBS/s!-Lcctz !!' \
c53baf5
    -e '/$(OBJECTS):/s!cctz/libcctz.a!!' \
c53baf5
    %{packname}/src/Makevars.in
dafc332
253c26b
dafc332
%build
dafc332
dafc332
dafc332
%install
dafc332
mkdir -p %{buildroot}%{rlibdir}
dafc332
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
dafc332
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
dafc332
rm -f %{buildroot}%{rlibdir}/R.css
dafc332
dafc332
dafc332
%check
dafc332
%{_bindir}/R CMD check %{packname}
dafc332
dafc332
dafc332
%files
dafc332
%dir %{rlibdir}/%{packname}
dafc332
%doc %{rlibdir}/%{packname}/html
dafc332
%{rlibdir}/%{packname}/DESCRIPTION
dafc332
%doc %{rlibdir}/%{packname}/NEWS.md
dafc332
%license %{rlibdir}/%{packname}/COPYING
dafc332
%license %{rlibdir}/%{packname}/LICENSE
dafc332
%{rlibdir}/%{packname}/INDEX
dafc332
%{rlibdir}/%{packname}/NAMESPACE
dafc332
%{rlibdir}/%{packname}/Meta
dafc332
%{rlibdir}/%{packname}/R
dafc332
%{rlibdir}/%{packname}/help
dafc332
%{rlibdir}/%{packname}/icons
dafc332
%dir %{rlibdir}/%{packname}/libs
dafc332
%{rlibdir}/%{packname}/libs/%{packname}.so
dafc332
dafc332
dafc332
%changelog
463f356
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-4
463f356
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
463f356
b5b7953
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-3
b5b7953
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b5b7953
2a4e079
* Thu Jun 17 2021 Tom Callaway <spot@fedoraproject.org> - 1.3.2-2
2a4e079
- Rebuilt for R 4.1.0
2a4e079
6bdc4ad
* Sat Apr 03 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.2-1
6bdc4ad
- Update to latest version (#1946026)
6bdc4ad
4500aae
* Sun Mar 21 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.1-1
4500aae
- Update to latest version (#1939634)
4500aae
06e2d37
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
06e2d37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
06e2d37
253c26b
* Thu Oct 29 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.0-1
253c26b
- Update to latest version (#1891997)
253c26b
c53baf5
* Fri Aug 28 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.3-2
c53baf5
- Unbundle cctz
c53baf5
dafc332
* Sun Aug 16 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.3-1
dafc332
- initial package for Fedora