%global packname BH %global packver 1.62.0 %global packrel 1 Name: R-%{packname} Version: %{packver}.%{packrel} Release: 1%{?dist} Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{packver}-%{packrel}.tar.gz License: Boost URL: http://cran.r-project.org/web/packages/%{packname}/index.html Group: Applications/Engineering 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} %build %install mkdir -p $RPM_BUILD_ROOT%{_datadir}/R/library %{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{_datadir}/R/library %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -rf $RPM_BUILD_ROOT%{_datadir}/R/library/R.css %check %{_bindir}/R CMD check %{packname} %files devel %dir %{_datadir}/R/library/%{packname} %doc %{_datadir}/R/library/%{packname}/html %{_datadir}/R/library/%{packname}/NEWS.Rd %{_datadir}/R/library/%{packname}/DESCRIPTION %{_datadir}/R/library/%{packname}/INDEX %{_datadir}/R/library/%{packname}/NAMESPACE %{_datadir}/R/library/%{packname}/Meta %{_datadir}/R/library/%{packname}/help %{_datadir}/R/library/%{packname}/include %changelog * Tue May 30 2017 Tom Callaway - 1.62.0.1-1 - initial package