From d820a95c8ece8040442da16e9634794e57c86f61 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 20:45:44 +0000 Subject: Add spec-file for the distribution --- diff --git a/SPECS/libuv.spec b/SPECS/libuv.spec index 0ea24f6..2c42a0a 100644 --- a/SPECS/libuv.spec +++ b/SPECS/libuv.spec @@ -1,7 +1,12 @@ +# Some of the tests do not work with the network-free environment in Koji +# The packager should run `fedpkg local --with tests` on their machine +# before pushing to Koji +%bcond_with tests + Name: libuv Epoch: 1 -Version: 1.23.1 -Release: 1%{?dist} +Version: 1.38.0 +Release: 2%{?dist} Summary: Platform layer for node.js # the licensing breakdown is described in detail in the LICENSE file @@ -9,10 +14,19 @@ License: MIT and BSD and ISC URL: http://libuv.org/ Source0: http://dist.libuv.org/dist/v%{version}/libuv-v%{version}.tar.gz Source2: %{name}.pc.in +Source3: libuv.abignore BuildRequires: autoconf automake libtool BuildRequires: gcc +%if %{with tests} +# don't remove network tests +%else +# -- Patches -- # +Patch1: 0001-Disable-failing-network-tests.patch +%endif +Patch2: libuv-unix-don-t-use-_POSIX_PATH_MAX.patch + %description libuv is a new platform layer for Node. Its purpose is to abstract IOCP on Windows and libev on Unix systems. We intend to eventually contain all platform @@ -32,6 +46,7 @@ Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release} %description static Static library (.a) version of libuv. + %prep %autosetup -n %{name}-v%{version} -p1 @@ -44,12 +59,17 @@ Static library (.a) version of libuv. %make_install rm -f %{buildroot}%{_libdir}/libuv.la +mkdir -p %{buildroot}%{_libdir}/libuv/ +install -Dm0644 -t %{buildroot}%{_libdir}/libuv/ %{SOURCE3} + %check # Tests are currently disabled because some require network access # Working with upstream to split these out #./run-tests #./run-benchmarks +make check + %ldconfig_scriptlets %files @@ -57,6 +77,7 @@ rm -f %{buildroot}%{_libdir}/libuv.la %doc ChangeLog %license LICENSE %{_libdir}/%{name}.so.* +%{_libdir}/libuv/libuv.abignore %files devel %{_libdir}/%{name}.so @@ -68,6 +89,26 @@ rm -f %{buildroot}%{_libdir}/libuv.la %{_libdir}/%{name}.a %changelog +* Wed Sep 23 2020 Honza Horak - 1:1.38.0-2 +- Fix max path size by not using _POSIX_PATH_MAX + Resolves: #1879330 + Fixes: CVE-2020-8252 + +* Tue Jun 09 2020 Zuzana Svetlikova - 1:1.38.0-1 +- Update, disable failing tests + +* Thu May 28 2020 Zuzana Svetlikova - 1:1.37.0-3 +- Run tests + +* Mon May 11 2020 Zuzana Svetlikova - 1:1.37.0-2 +- Resolves: RHBZ#1817821 +- bump for build + +* Mon May 04 2020 Zuzana Svetlikova - 1:1.37.0-1 +- Resolves: RHBZ#1817821 +- Update to 1.37.0 +- Add abidiff ignore file + * Mon Oct 08 2018 Jan Staněk - 1:1.23.1-1 - Update to 1.23.1 - Resolves: rhbz#1637000