R-httpuv/R-httpuv.spec

89 lines
2.6 KiB
RPMSpec
Raw Normal View History

2017-11-09 22:50:05 +00:00
%global packname httpuv
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
2018-03-10 00:46:03 +00:00
Version: 1.3.6.2
Release: 1%{?dist}
2017-11-09 22:50:05 +00:00
Summary: HTTP and WebSocket Server Library
2018-03-10 00:46:03 +00:00
# Main: GPLv2+; http-parser & libuv: MIT; sha1: Public Domain
License: GPLv2+ and MIT and Public Domain
2017-11-09 22:50:05 +00:00
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
# https://github.com/libuv/libuv/pull/215; CVE-2015-0278
Patch0001: 215.patch
# Here's the R view of the dependencies world:
# Depends: R-methods
# Imports: R-Rcpp R-utils
# Suggests:
# LinkingTo:
# Enhances:
Requires: R-methods
Requires: R-Rcpp R-utils
BuildRequires: R-devel tex(latex) R-methods
BuildRequires: R-Rcpp-devel R-utils
# Hopefully will be removable in the next release, which also upgrades the
# internal copies.
Provides: bundled(http-parser) = 2.0.0
Provides: bundled(libuv) = 0.10.13
%description
Provides low-level socket and protocol support for handling HTTP and
WebSocket requests directly from within R. It is primarily intended as a
building block for other packages, rather than making it particularly easy
to create complete web applications using httpuv alone. httpuv is built on
top of the libuv and http-parser C libraries, both of which were developed
by Joyent, Inc.
%prep
%setup -q -c -n %{packname}
pushd %{packname}/src/libuv
%patch0001 -p1
popd
%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
%check
%{_bindir}/R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%license %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/libs
%changelog
2018-03-10 00:46:03 +00:00
* Fri Mar 02 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.6.2-1
- Update to latest version
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-03-10 00:46:03 +00:00
* Thu Nov 09 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.5-2
2017-11-09 22:50:05 +00:00
- Apply patch for CVE-2015-0278
2018-03-10 00:46:03 +00:00
* Tue Oct 31 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.5-1
2017-11-09 22:50:05 +00:00
- initial package for Fedora