%global packname BH %global packver 1.69.0 %global packrel 1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: %{packver}.%{packrel} Release: 2%{?dist} Source0: %{url}&version=%{packver}-%{packrel}#/%{packname}_%{packver}-%{packrel}.tar.gz License: Boost URL: https://cran.r-project.org/package=%{packname} Summary: Boost C++ Header Files for R BuildRequires: R-devel >= 3.0.0, tetex-latex BuildArch: noarch Requires: R-core >= 3.0.0 %description Boost provides free peer-reviewed portable C++ source libraries. A large part of Boost is provided as C++ template code which is resolved entirely at compile-time without linking. This package aims to provide the most useful subset of Boost libraries for template use among CRAN package. By placing these libraries in this package, we offer a more efficient distribution system for CRAN as replication of this code in the sources of other packages is avoided. %package devel Requires: R-core >= 3.0.0 Summary: Boost C++ Header Files for R %description devel Boost provides free peer-reviewed portable C++ source libraries. A large part of Boost is provided as C++ template code which is resolved entirely at compile-time without linking. This package aims to provide the most useful subset of Boost libraries for template use among CRAN package. By placing these libraries in this package, we offer a more efficient distribution system for CRAN as replication of this code in the sources of other packages is avoided. %prep %setup -q -c -n %{packname} # Remove spurious exec permissions for i in `find %{packname}/inst/include/boost |grep hpp`; do chmod -x $i; done %build %install mkdir -p $RPM_BUILD_ROOT%{rlibdir} %{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -rf $RPM_BUILD_ROOT%{rlibdir}/R.css %check %{_bindir}/R CMD check %{packname} %files devel %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/NEWS.Rd %{rlibdir}/%{packname}/DESCRIPTION %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/include %changelog * Wed Jul 24 2019 Fedora Release Engineering - 1.69.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 6 2019 Tom Callaway - 1.69.0.1-1 - update to 1.69.0-1 * Thu Jan 31 2019 Fedora Release Engineering - 1.66.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.66.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Mar 14 2018 Tom Callaway - 1.66.0.1-1 - update to 1.66.0-1 * Wed Feb 07 2018 Fedora Release Engineering - 1.62.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.62.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed May 31 2017 Tom Callaway - 1.62.0.1-2 - remove spurious exec permissions * Tue May 30 2017 Tom Callaway - 1.62.0.1-1 - initial package