libuv/libuv.spec

96 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libuv
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define somajor 1
Name: libuv
Version: 1.23.2
Release: 0
Summary: Asychronous I/O support library
License: MIT
Group: Development/Libraries/C and C++
Url: http://libuv.org
# Using URL from upstream project fails due to ipv6 redirect
# Source0: http://dist.libuv.org/dist/v%{version}/libuv-v%{version}.tar.gz
# Source1: http://dist.libuv.org/dist/v%{version}/libuv-v%{version}.tar.gz.sign
# Source2: %{name}.keyring
Source0: https://github.com/libuv/libuv/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: fix_tests.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
%description
libuv is a support library with a focus on asynchronous I/O. It was
primarily developed for use by Node.js, but it is also used by
Mozilla's Rust language, Luvit, Julia, pyuv, and others.
%package -n libuv%{somajor}
Summary: Asychronous I/O support library
Group: System/Libraries
%description -n libuv%{somajor}
libuv is a support library with a focus on asynchronous I/O. It was
primarily developed for use by Node.js, but it is also used by
Mozilla's Rust language, Luvit, Julia, pyuv, and others.
%package devel
Summary: Development libraries for libuv
Group: Development/Libraries/C and C++
BuildRequires: glibc-devel
Requires: libuv%{somajor} = %{version}
%description devel
Development files for libuv.
libuv is a support library with a focus on asynchronous I/O. It was
primarily developed for use by Node.js, but it is also used by
Mozilla's Rust language, Luvit, Julia, pyuv, and others.
%prep
Accepting request 560211 from home:avindra - Update to version 1.18.0 * unix,win: add uv_os_getpid() * unix: remove incorrect assertion in uv_shutdown() * aix: fix -Wmaybe-uninitialized warning * win,doc: remove note about SIGWINCH on Windows * doc: fix IRC URL in CONTRIBUTING.md - 1.17.0 * ibmi: add support for new platform * unix: keep track of bound sockets sent via spawn * unix: avoid malloc() call in uv_spawn() * zos: add strnlen() implementation * test: add threadpool init/teardown test * test: avoid malloc() in threadpool test * test: lower number of tasks in threadpool test * test: fix test-spawn compilation * doc: clarify the description of uv_loop_alive() * win: issue memory barrier in uv_thread_join() * win: map UV_FS_O_EXLOCK to a share mode of 0 * win: fix build on case-sensitive file systems * win: fix test runner build with mingw64 * win: remove unused variable in test/test-fs.c - 1.16.1 * unix: move net/if.h include * win: fix undeclared NDIS_IF_MAX_STRING_SIZE - 1.16.0 * unix,win: add fs open flags, map O_DIRECT|O_DSYNC * win, fs: fix non-symlink reparse points * test: fix -Wstrict-prototypes warnings * unix, windows: map ENOTTY errno * unix: fall back to fsync() if F_FULLFSYNC fails * unix: do not close invalid kqueue fd after fork * zos: reset epoll data after fork * zos: skip fork_threadpool_queue_work_simple * test: keep platform_output as first test * unix,win: add uv_os_getppid() * test: fix const qualification compiler warning * doc: mark uv_default_loop() as not thread safe * win, pipe: null-initialize stream->shutdown_req * tty, win: get SetWinEventHook pointer at startup * test: no extra new line in skipped test output * pipe: allow access from other users * unix,win: add uv_if_{indextoname,indextoiid} * win: fix non-English dlopen error message * win: change st_blksize from `2048` to `4096` - Small spec file cleanup OBS-URL: https://build.opensuse.org/request/show/560211 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libuv?expand=0&rev=23
2017-12-28 10:32:12 +01:00
%setup -q
%patch1 -p1
%build
./autogen.sh
%configure \
--disable-static
make %{?_smp_mflags} V=1
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n libuv%{somajor} -p /sbin/ldconfig
%postun -n libuv%{somajor} -p /sbin/ldconfig
%files -n libuv%{somajor}
%{_libdir}/libuv.so.%{somajor}*
%files devel
%doc AUTHORS CONTRIBUTING.md ChangeLog README.md
%license LICENSE
%{_libdir}/libuv.so
%{_includedir}/uv*
%{_libdir}/pkgconfig/libuv.pc
%changelog