2022-09-02 01:26:06 +00:00
|
|
|
%bcond_without bootstrap
|
2021-06-15 14:12:40 +00:00
|
|
|
|
2020-05-31 07:42:26 +00:00
|
|
|
%global packname httpuv
|
2022-09-02 01:26:06 +00:00
|
|
|
%global packver 1.6.5
|
2017-11-09 22:50:05 +00:00
|
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
|
|
|
|
Name: R-%{packname}
|
2022-09-02 01:26:06 +00:00
|
|
|
Version: %{packver}
|
|
|
|
Release: 1%{?dist}
|
2017-11-09 22:50:05 +00:00
|
|
|
Summary: HTTP and WebSocket Server Library
|
|
|
|
|
2018-04-30 09:01:58 +00:00
|
|
|
# Main: GPLv2+; http-parser: MIT; sha1: Public Domain
|
2018-04-30 08:50:24 +00:00
|
|
|
License: GPLv2+ and MIT and Public Domain
|
2019-01-23 00:55:21 +00:00
|
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
2020-05-31 07:42:26 +00:00
|
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
2022-09-02 01:26:06 +00:00
|
|
|
Patch0001: 0001-Use-unbundled-libuv-new.patch
|
2017-11-09 22:50:05 +00:00
|
|
|
|
|
|
|
# Here's the R view of the dependencies world:
|
2019-03-17 06:51:07 +00:00
|
|
|
# Depends:
|
2022-09-02 01:26:06 +00:00
|
|
|
# Imports: R-Rcpp >= 1.0.7, R-utils, R-R6, R-promises, R-later >= 0.8.0
|
2019-09-28 01:24:10 +00:00
|
|
|
# Suggests: R-testthat, R-callr, R-curl, R-websocket
|
2021-04-25 09:29:37 +00:00
|
|
|
# LinkingTo: R-Rcpp, R-later
|
2017-11-09 22:50:05 +00:00
|
|
|
# Enhances:
|
|
|
|
|
2018-04-30 08:50:24 +00:00
|
|
|
BuildRequires: R-devel
|
|
|
|
BuildRequires: tex(latex)
|
2022-09-02 01:26:06 +00:00
|
|
|
BuildRequires: R-Rcpp-devel >= 1.0.7
|
2018-04-30 08:50:24 +00:00
|
|
|
BuildRequires: R-utils
|
2019-03-17 06:51:07 +00:00
|
|
|
BuildRequires: R-R6
|
2018-04-30 08:50:24 +00:00
|
|
|
BuildRequires: R-promises
|
2019-03-17 06:51:07 +00:00
|
|
|
BuildRequires: R-later-devel >= 0.8.0
|
2021-06-15 14:12:40 +00:00
|
|
|
%if %{without bootstrap}
|
2018-04-30 08:50:24 +00:00
|
|
|
BuildRequires: R-testthat
|
|
|
|
BuildRequires: R-callr
|
2019-03-17 06:51:07 +00:00
|
|
|
BuildRequires: R-curl
|
2019-09-28 01:24:10 +00:00
|
|
|
BuildRequires: R-websocket
|
2021-06-15 14:12:40 +00:00
|
|
|
%endif
|
2018-04-30 09:01:58 +00:00
|
|
|
# Hopefully will be removable in the later releases, but for now it includes
|
|
|
|
# some patches:
|
|
|
|
# https://github.com/rstudio/httpuv/pull/93#issuecomment-340802818
|
2018-04-30 08:50:24 +00:00
|
|
|
Provides: bundled(http-parser) = 2.7.1
|
2020-05-31 07:42:26 +00:00
|
|
|
BuildRequires: libuv-devel >= 1.37.0
|
2017-11-09 22:50:05 +00:00
|
|
|
|
|
|
|
%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}
|
|
|
|
|
2018-04-30 09:01:58 +00:00
|
|
|
pushd %{packname}
|
2022-09-02 01:26:06 +00:00
|
|
|
%patch0001 -p1 -b .system
|
2018-04-30 09:01:58 +00:00
|
|
|
rm -r src/libuv
|
|
|
|
sed -i '/libuv/d' MD5
|
|
|
|
popd
|
|
|
|
|
2017-11-09 22:50:05 +00:00
|
|
|
|
|
|
|
%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
|
2021-06-15 14:12:40 +00:00
|
|
|
%if %{without bootstrap}
|
2019-09-28 01:24:10 +00:00
|
|
|
export LANG=C.UTF-8
|
2017-11-09 22:50:05 +00:00
|
|
|
%{_bindir}/R CMD check %{packname}
|
2021-06-15 14:12:40 +00:00
|
|
|
%endif
|
2017-11-09 22:50:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{rlibdir}/%{packname}
|
|
|
|
%doc %{rlibdir}/%{packname}/html
|
|
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
|
|
%license %{rlibdir}/%{packname}/LICENSE
|
2018-04-30 08:50:24 +00:00
|
|
|
%doc %{rlibdir}/%{packname}/NEWS.md
|
2017-11-09 22:50:05 +00:00
|
|
|
%{rlibdir}/%{packname}/INDEX
|
|
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
|
|
%{rlibdir}/%{packname}/Meta
|
|
|
|
%{rlibdir}/%{packname}/R
|
|
|
|
%{rlibdir}/%{packname}/help
|
|
|
|
%{rlibdir}/%{packname}/demo
|
2018-04-30 08:50:24 +00:00
|
|
|
%dir %{rlibdir}/%{packname}/libs
|
|
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
2017-11-09 22:50:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-09-02 01:26:06 +00:00
|
|
|
* Thu Sep 1 2022 Tom Callaway <spot@fedoraproject.org> - 1.6.5-1
|
|
|
|
- update to 1.6.5
|
|
|
|
- rebuild for R 4.2.1
|
|
|
|
- bootstrap on
|
|
|
|
|
2022-07-20 19:35:01 +00:00
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-19 20:06:24 +00:00
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-21 16:29:36 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-17 20:48:12 +00:00
|
|
|
* Thu Jun 17 2021 Tom Callaway <spot@fedoraproject.org> - 1.6.1-2
|
|
|
|
- bootstrap off
|
|
|
|
|
2021-06-15 14:12:40 +00:00
|
|
|
* Tue Jun 15 2021 Tom Callaway <spot@fedoraproject.org> - 1.6.1-1
|
|
|
|
- update to 1.6.1
|
|
|
|
- bootstrap
|
|
|
|
- Rebuilt for R 4.1.0
|
|
|
|
|
2021-04-25 09:29:37 +00:00
|
|
|
* Sun Apr 25 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.6.0-1
|
|
|
|
- Update to latest version (#1953099)
|
|
|
|
|
2021-02-23 07:00:46 +00:00
|
|
|
* Sun Feb 07 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.5-1
|
|
|
|
- Update to latest version (#1915692)
|
|
|
|
|
2021-01-25 23:04:29 +00:00
|
|
|
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-07 07:02:16 +00:00
|
|
|
* Mon Sep 07 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.4-3
|
|
|
|
- Fix websocket handshake on big-endian systems
|
|
|
|
|
2020-07-27 11:01:02 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-07 20:32:12 +00:00
|
|
|
* Sun Jun 7 2020 Tom Callaway <spot@fedoraproject.org> - 1.5.4-1
|
|
|
|
- update to 1.5.4
|
|
|
|
- rebuild for R 4
|
|
|
|
|
2020-05-31 07:42:26 +00:00
|
|
|
* Sun May 31 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.3.1-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2020-01-28 10:15:03 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-09-28 01:24:10 +00:00
|
|
|
* Fri Sep 27 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.2-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2019-08-12 05:00:52 +00:00
|
|
|
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.1-3
|
|
|
|
- Remove explicit dependencies provided by automatic dependency generator
|
|
|
|
|
2019-07-24 16:37:07 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-04-07 06:19:23 +00:00
|
|
|
* Sun Apr 07 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.1-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2019-03-17 06:51:07 +00:00
|
|
|
* Sun Mar 17 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.0-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2019-02-21 07:19:08 +00:00
|
|
|
* Thu Feb 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.5.1-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2019-01-31 12:15:43 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-22 21:18:54 +00:00
|
|
|
* Sun Jul 22 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.5-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2018-07-12 19:29:04 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-22 04:21:20 +00:00
|
|
|
* Fri Jun 22 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.4.1-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2018-05-17 18:40:24 +00:00
|
|
|
* Thu May 17 2018 Tom Callaway <spot@fedoraproject.org> - 1.4.3-2
|
|
|
|
- rebuild for R 3.5.0
|
|
|
|
|
2018-05-12 03:23:21 +00:00
|
|
|
* Fri May 11 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.3-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2018-05-08 02:01:52 +00:00
|
|
|
* Mon May 07 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.2-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2018-04-30 08:50:24 +00:00
|
|
|
* Mon Apr 30 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.1-1
|
|
|
|
- Update to latest version
|
2018-04-30 09:01:58 +00:00
|
|
|
- Unbundle libuv
|
2018-04-30 08:50:24 +00:00
|
|
|
|
2018-03-10 01:01:11 +00:00
|
|
|
* 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
|
2018-03-10 00:46:03 +00:00
|
|
|
- Update to latest version
|
|
|
|
|
2018-02-07 01:16:47 +00:00
|
|
|
* 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
|