2022-01-05 22:07:39 +00:00
|
|
|
# Run the tests by default
|
2023-11-14 19:34:30 +00:00
|
|
|
%bcond tests 1
|
2020-05-18 14:00:49 +00:00
|
|
|
|
2016-11-19 08:37:02 +00:00
|
|
|
Name: libuv
|
2023-09-25 16:31:38 +00:00
|
|
|
Epoch: 1
|
2023-11-08 14:23:19 +00:00
|
|
|
Version: 1.47.0
|
2022-01-05 22:07:39 +00:00
|
|
|
Release: %autorelease
|
2016-11-19 08:37:02 +00:00
|
|
|
Summary: Platform layer for node.js
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2023-09-24 14:45:36 +00:00
|
|
|
# Code is MIT
|
|
|
|
# Documentation is CC-BY-4.0
|
|
|
|
# src/inet.c is ISC
|
|
|
|
# include/uv/tree.h is BSD-2-Clause
|
2023-09-27 04:40:47 +00:00
|
|
|
License: MIT AND CC-BY-4.0 AND ISC AND BSD-2-Clause
|
2016-11-19 08:37:02 +00:00
|
|
|
URL: http://libuv.org/
|
|
|
|
Source0: http://dist.libuv.org/dist/v%{version}/libuv-v%{version}.tar.gz
|
2023-09-24 14:45:36 +00:00
|
|
|
Source1: https://dist.libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz.sign
|
|
|
|
# mkdir temp
|
|
|
|
# gpg --no-default-keyring --keyring temp/keyring.gpg --keyserver keyserver.ubuntu.com \
|
|
|
|
# --recv-keys D77B1E34243FBAF05F8E9CC34F55C8C846AB89B9 \
|
|
|
|
# FDF519364458319FA8233DC9410E5553AE9BC059 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
|
|
|
|
# 57353E0DBDAAA7E839B66A1AFF47D5E4AD8B4FDC AEAD0A4B686767751A0E4AEF34A25FB128246514 \
|
|
|
|
# CFBB9CA9A5BEAFD70E2B3C5A79A67C55A3679C8B C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
|
|
|
|
# 612F0EAD9401622379DF4402F28C3C8DA33C03BE \
|
|
|
|
# && gpg --no-default-keyring --keyring temp/keyring.gpg --output temp/keysuv.gpg --export
|
|
|
|
# cp temp/keysuv.gpg .
|
|
|
|
Source2: keysuv.gpg
|
2020-04-17 15:35:25 +00:00
|
|
|
Source3: libuv.abignore
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2023-11-14 19:34:30 +00:00
|
|
|
# Test fix for IPv6 interfaces with a NULL ifa_addr
|
|
|
|
# https://github.com/libuv/libuv/pull/4218
|
|
|
|
Patch: 0001-unix-ignore-ifaddrs-with-NULL-ifa_addr-4218.patch
|
|
|
|
|
|
|
|
# test: check if ipv6 link-local traffic is routable
|
|
|
|
# https://github.com/libuv/libuv/pull/4220
|
|
|
|
Patch: 0002-test-check-if-ipv6-link-local-traffic-is-routable.patch
|
|
|
|
|
2023-11-16 15:06:15 +00:00
|
|
|
# test: Use unsigned comparison for fs_type
|
|
|
|
# https://github.com/libuv/libuv/pull/4227
|
|
|
|
Patch: 0003-test_fs.c-Fix-issue-on-32-bit-systems-using-btrfs.patch
|
|
|
|
|
2023-09-24 14:45:36 +00:00
|
|
|
BuildRequires: cmake
|
2016-11-19 08:37:02 +00:00
|
|
|
BuildRequires: gcc
|
2023-09-24 14:45:36 +00:00
|
|
|
BuildRequires: gnupg2
|
|
|
|
# Documentation
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: python3-sphinx
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2022-01-05 22:07:39 +00:00
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%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
|
|
|
|
differences in this library.
|
|
|
|
|
|
|
|
%package devel
|
2016-11-19 08:37:02 +00:00
|
|
|
Summary: Development libraries for libuv
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
2023-10-26 01:25:11 +00:00
|
|
|
Requires: %{name}-static%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development libraries for libuv
|
|
|
|
|
2014-07-03 21:08:26 +00:00
|
|
|
%package static
|
2016-11-19 08:37:02 +00:00
|
|
|
Summary: Platform layer for node.js - static library
|
2017-10-03 12:43:33 +00:00
|
|
|
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
|
2014-07-03 21:08:26 +00:00
|
|
|
|
|
|
|
%description static
|
|
|
|
Static library (.a) version of libuv.
|
|
|
|
|
2019-10-21 13:09:26 +00:00
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%prep
|
2023-09-24 14:45:36 +00:00
|
|
|
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
2023-11-14 19:34:30 +00:00
|
|
|
%autosetup -n %{name}-v%{version} -p1
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
%build
|
2023-09-24 14:45:36 +00:00
|
|
|
%if %{with tests}
|
|
|
|
%cmake -DBUILD_TESTING=ON
|
|
|
|
%else
|
|
|
|
%cmake -DBUILD_TESTING=OFF
|
|
|
|
%endif
|
|
|
|
%cmake_build
|
|
|
|
# Build Documentation
|
|
|
|
cd docs
|
|
|
|
make man
|
|
|
|
cd ..
|
2014-07-03 21:08:26 +00:00
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%install
|
2023-09-24 14:45:36 +00:00
|
|
|
%cmake_install
|
|
|
|
# install documentation
|
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man1/
|
|
|
|
install -p -m 644 docs/build/man/libuv.1 %{buildroot}/%{_mandir}/man1/
|
2020-04-17 16:00:44 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/libuv/
|
2020-05-18 14:00:49 +00:00
|
|
|
install -Dm0644 -t %{buildroot}%{_libdir}/libuv/ %{SOURCE3}
|
2023-09-24 14:45:36 +00:00
|
|
|
# Remove packaged license files
|
|
|
|
rm %{buildroot}/%{_docdir}/libuv/LICENSE
|
|
|
|
rm %{buildroot}/%{_docdir}/libuv/LICENSE-extra
|
|
|
|
|
2020-04-17 15:35:25 +00:00
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%check
|
2020-05-18 14:00:49 +00:00
|
|
|
%if %{with tests}
|
2023-11-14 19:34:30 +00:00
|
|
|
env UV_TEST_TIMEOUT_MULTIPLIER=10 ./%{__cmake_builddir}/uv_run_tests
|
|
|
|
env UV_TEST_TIMEOUT_MULTIPLIER=10 ./%{__cmake_builddir}/uv_run_tests_a
|
2020-05-18 14:00:49 +00:00
|
|
|
%endif
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2017-01-19 13:53:43 +00:00
|
|
|
%doc README.md AUTHORS CONTRIBUTING.md MAINTAINERS.md SUPPORTED_PLATFORMS.md
|
|
|
|
%doc ChangeLog
|
2023-09-24 14:45:36 +00:00
|
|
|
%license LICENSE LICENSE-docs LICENSE-extra
|
|
|
|
%{_libdir}/%{name}.so.1
|
|
|
|
%{_libdir}/%{name}.so.1.*
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/libuv.abignore
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
%files devel
|
2023-09-24 14:45:36 +00:00
|
|
|
%{_includedir}/uv.h
|
|
|
|
%dir %{_includedir}/uv
|
|
|
|
%{_includedir}/uv/*.h
|
2016-11-19 08:37:02 +00:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2023-09-24 14:45:36 +00:00
|
|
|
%dir %{_libdir}/cmake/%{name}
|
|
|
|
%{_libdir}/cmake/%{name}/*.cmake
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2014-07-03 21:08:26 +00:00
|
|
|
%files static
|
2016-11-19 08:37:02 +00:00
|
|
|
%{_libdir}/%{name}.a
|
2023-09-24 14:45:36 +00:00
|
|
|
%{_libdir}/pkgconfig/%{name}-static.pc
|
2014-07-03 21:08:26 +00:00
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%changelog
|
2021-08-31 17:23:42 +00:00
|
|
|
%autochangelog
|