2022-01-05 22:07:39 +00:00
|
|
|
# Run the tests by default
|
|
|
|
%bcond_without tests
|
2020-05-18 14:00:49 +00:00
|
|
|
|
2016-11-19 08:37:02 +00:00
|
|
|
Name: libuv
|
|
|
|
Epoch: 1
|
2022-01-05 22:07:39 +00:00
|
|
|
Version: 1.43.0
|
|
|
|
Release: %autorelease
|
2016-11-19 08:37:02 +00:00
|
|
|
Summary: Platform layer for node.js
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2013-05-29 09:25:06 +00:00
|
|
|
# the licensing breakdown is described in detail in the LICENSE file
|
2016-11-19 08:37:02 +00:00
|
|
|
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
|
2020-04-17 15:35:25 +00:00
|
|
|
Source3: libuv.abignore
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2016-11-19 08:37:02 +00:00
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
BuildRequires: gcc
|
2021-01-05 03:01:00 +00:00
|
|
|
BuildRequires: make
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2019-10-21 13:09:26 +00:00
|
|
|
# -- Patches -- #
|
|
|
|
|
2022-01-05 22:07:39 +00:00
|
|
|
# Disable some tests that fail in the network-free Koji builders
|
|
|
|
Patch0001: 0001-Fedora-Skip-tests-that-can-t-run-in-Koji.patch
|
|
|
|
|
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}
|
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
|
2018-01-19 13:37:45 +00:00
|
|
|
%autosetup -n %{name}-v%{version} -p1
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
%build
|
2015-02-19 20:15:26 +00:00
|
|
|
./autogen.sh
|
2017-10-03 12:44:34 +00:00
|
|
|
%configure --disable-silent-rules
|
2016-11-19 08:37:02 +00:00
|
|
|
%make_build
|
2014-07-03 21:08:26 +00:00
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%install
|
2016-11-19 08:37:02 +00:00
|
|
|
%make_install
|
2015-02-19 20:15:26 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/libuv.la
|
2014-07-03 21:08:26 +00:00
|
|
|
|
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}
|
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}
|
|
|
|
%make_build check
|
|
|
|
%endif
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2018-01-31 16:18:17 +00:00
|
|
|
%ldconfig_scriptlets
|
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
|
2016-03-10 14:57:06 +00:00
|
|
|
%license LICENSE
|
2016-11-19 08:37:02 +00:00
|
|
|
%{_libdir}/%{name}.so.*
|
2020-04-17 15:35:25 +00:00
|
|
|
%{_libdir}/libuv/libuv.abignore
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
%files devel
|
2016-11-19 08:37:02 +00:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2018-07-06 13:29:39 +00:00
|
|
|
%{_includedir}/uv.h
|
|
|
|
%{_includedir}/uv/
|
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
|
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
|