117 lines
3.5 KiB
RPMSpec
117 lines
3.5 KiB
RPMSpec
%global packname httpuv
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
Name: R-%{packname}
|
|
Version: 1.4.3
|
|
Release: 1%{?dist}
|
|
Summary: HTTP and WebSocket Server Library
|
|
|
|
# Main: GPLv2+; http-parser: MIT; sha1: Public Domain
|
|
License: GPLv2+ and MIT and Public Domain
|
|
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
Patch0001: 0001-Use-unbundled-libuv.patch
|
|
|
|
# Here's the R view of the dependencies world:
|
|
# Depends: R-methods
|
|
# Imports: R-Rcpp >= 0.11.0, R-utils, R-promises, R-later >= 0.7.2
|
|
# Suggests: R-testthat, R-callr
|
|
# LinkingTo:
|
|
# Enhances:
|
|
|
|
Requires: R-methods
|
|
Requires: R-Rcpp >= 0.11.0
|
|
Requires: R-utils
|
|
Requires: R-promises
|
|
Requires: R-later >= 0.7.2
|
|
BuildRequires: R-devel
|
|
BuildRequires: tex(latex)
|
|
BuildRequires: R-methods
|
|
BuildRequires: R-Rcpp-devel >= 0.11.0
|
|
BuildRequires: R-utils
|
|
BuildRequires: R-promises
|
|
BuildRequires: R-later-devel >= 0.7.2
|
|
BuildRequires: R-testthat
|
|
BuildRequires: R-callr
|
|
BuildRequires: R-BH-devel
|
|
# Hopefully will be removable in the later releases, but for now it includes
|
|
# some patches:
|
|
# https://github.com/rstudio/httpuv/pull/93#issuecomment-340802818
|
|
Provides: bundled(http-parser) = 2.7.1
|
|
BuildRequires: libuv-devel >= 1.18.0
|
|
|
|
%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}
|
|
%patch0001 -p1
|
|
rm -r src/libuv
|
|
sed -i '/libuv/d' MD5
|
|
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.md
|
|
%{rlibdir}/%{packname}/INDEX
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
%{rlibdir}/%{packname}/Meta
|
|
%{rlibdir}/%{packname}/R
|
|
%{rlibdir}/%{packname}/help
|
|
%{rlibdir}/%{packname}/demo
|
|
%dir %{rlibdir}/%{packname}/libs
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
|
|
|
|
|
%changelog
|
|
* Fri May 11 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.3-1
|
|
- Update to latest version
|
|
|
|
* Mon May 07 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.2-1
|
|
- Update to latest version
|
|
|
|
* Mon Apr 30 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.1-1
|
|
- Update to latest version
|
|
- Unbundle libuv
|
|
|
|
* Fri Mar 09 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.6.2-2
|
|
- Fix license and changelog
|
|
|
|
* Fri Mar 09 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
|
|
|
|
* Thu Nov 09 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.5-2
|
|
- Apply patch for CVE-2015-0278
|
|
|
|
* Tue Oct 31 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.5-1
|
|
- initial package for Fedora
|