SHA256
3
0
forked from pool/libuv
libuv/libuv.spec
Ismail Dönmez 36910319bc Accepting request 641296 from home:adamm:branches:devel:libraries:c_c++
- Update to version 1.23.2:
  * unix: return 0 retrieving rss on cygwin
  * unix: initialize uv_interface_address_t.phys_addr
  * test: handle uv_os_setpriority() windows edge case
  * tty, win: fix read stop for raw mode
  * Revert "Revert "unix,fs: fix for potential partial reads/writes""
  * unix,readv: always permit partial reads to return
  * win,tty: fix uv_tty_close()
  * doc: remove extraneous "on
  * unix,win: fix threadpool race condition
  * unix: rework thread barrier implementation
  * unix: signal done to last thread barrier waiter
  * unix: optimize uv_fs_readlink() memory allocation
  For complete changelog please see
  https://github.com/libuv/libuv/releases
* install license as %license
* fix_tests.patch: fix unit tests on OBS

OBS-URL: https://build.opensuse.org/request/show/641296
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libuv?expand=0&rev=25
2018-10-12 07:37:45 +00:00

96 lines
2.9 KiB
RPMSpec

#
# 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
%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