%global packname rneos %global packver 0.4-0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.4.0 Release: 2%{?dist} Summary: XML-RPC Interface to NEOS License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10.0 Requires: R-core >= 2.10.0 BuildArch: noarch BuildRequires: R-methods BuildRequires: R-CRAN-RCurl BuildRequires: R-CRAN-XML BuildRequires: R-stats Requires: R-methods Requires: R-CRAN-RCurl Requires: R-CRAN-XML Requires: R-stats %description Within this package the XML-RPC API to NEOS is implemented. This enables the user to pass optimization problems to NEOS and retrieve results within R. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %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} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/DESCRIPTION %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/R %doc %{rlibdir}/%{packname}/ExAMPL %doc %{rlibdir}/%{packname}/ExGAMS %{rlibdir}/%{packname}/INDEX