Blob Blame History Raw
# Build with Requires disabled as first stage.
# https://pagure.io/releng/issue/8501#comment-580694
%bcond_without bootstrap

Name:           R-rpm-macros
Version:        1.0.0
Release:        1%{?dist}
Summary:        Macros to help produce R packages

License:        MIT
URL:            https://github.com/rpm-software-management/R-rpm-macros
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
%if %{with bootstrap}
Patch0001:      0001-Build-without-Requires.patch
%endif

BuildArch:      noarch

Requires:       R-core
Requires:       rpm

%description
This package contains the R RPM macros, that most implementations should rely
on.

You should not need to install this package manually as the R-devel package
requires it. So install the R-devel package instead.


%prep
%autosetup -p1


%install
%make_install PREFIX=%{_prefix}


%files
%doc README.md
%license LICENSE
%{_rpmconfigdir}/fileattrs/R.attr
%{_rpmconfigdir}/R-deps.R


%changelog
* Fri Jul 19 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.0-1
- Initial package