%global packname ids %global rlibdir %{_datadir}/R/library Name: R-%{packname} Version: 1.0.1 Release: 1%{?dist} Summary: Generate Random Identifiers License: MIT + file LICENSE URL: https://CRAN.R-project.org/package=%{packname} Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz # Here's the R view of the dependencies world: # Depends: # Imports: R-openssl, R-uuid # Suggests: R-knitr, R-rcorpora, R-rmarkdown, R-testthat # LinkingTo: # Enhances: BuildArch: noarch BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-openssl BuildRequires: R-uuid %description Generate random or human readable and pronounceable identifiers. %prep %setup -q -c -n %{packname} %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 %files %dir %{rlibdir}/%{packname} %license %{rlibdir}/%{packname}/LICENSE %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 %changelog * Thu Oct 05 2023 Will Crawford - 1.0.1-1 - initial package for Fedora