libuv/libuv.spec
Marcus Meissner a0e30f384b Accepting request 535145 from home:pluskalm:branches:devel:libraries:c_c++
- Update to version 1.15.0:
  * win: fix buffer size in uv__getpwuid_r()
  * unix: use fchmod() in uv_fs_copyfile()
  * unix: support copying empty files
  * unix: truncate destination in uv_fs_copyfile()
  * linux: increase thread stack size with musl libc
  * test: clean up semaphore after use
  * unix: check for NULL in uv_os_unsetenv for parameter name
  * For extensive list of changes since last release see provided
    ChangeLog
- Small spec file cleanup

OBS-URL: https://build.opensuse.org/request/show/535145
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libuv?expand=0&rev=20
2017-10-19 11:28:19 +00:00

92 lines
2.7 KiB
RPMSpec

#
# spec file for package libuv
#
# Copyright (c) 2017 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.15.0
Release: 0
Summary: Asychronous I/O support library
License: MIT
Group: Development/Libraries/C and C++
Url: http://libuv.org
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
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 -n %{name}-v%{version}
%build
./autogen.sh
%configure \
--disable-static
make %{?_smp_mflags} V=1
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
# Tests sadly fail
#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 LICENSE README.md
%{_libdir}/libuv.so
%{_includedir}/uv*
%{_libdir}/pkgconfig/libuv.pc
%changelog