libuv/libuv.spec

86 lines
1.9 KiB
RPMSpec
Raw Normal View History

# Run the tests by default
%bcond_without tests
Name: libuv
Epoch: 1
Version: 1.45.0
Release: %autorelease
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
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
Source3: libuv.abignore
2012-11-15 15:21:55 +00:00
BuildRequires: autoconf automake libtool
BuildRequires: gcc
BuildRequires: make
2012-11-15 15:21:55 +00:00
# -- Patches -- #
# 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
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
%package static
Summary: Platform layer for node.js - static library
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
%description static
Static library (.a) version of libuv.
2012-11-15 15:21:55 +00:00
%prep
%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
%configure --disable-silent-rules
%make_build
2012-11-15 15:21:55 +00:00
%install
%make_install
2015-02-19 20:15:26 +00:00
rm -f %{buildroot}%{_libdir}/libuv.la
mkdir -p %{buildroot}%{_libdir}/libuv/
install -Dm0644 -t %{buildroot}%{_libdir}/libuv/ %{SOURCE3}
2012-11-15 15:21:55 +00:00
%check
%if %{with tests}
%make_build check
%endif
2012-11-15 15:21:55 +00:00
%ldconfig_scriptlets
2012-11-15 15:21:55 +00:00
%files
%doc README.md AUTHORS CONTRIBUTING.md MAINTAINERS.md SUPPORTED_PLATFORMS.md
%doc ChangeLog
2016-03-10 14:57:06 +00:00
%license LICENSE
%{_libdir}/%{name}.so.*
%{_libdir}/libuv/libuv.abignore
2012-11-15 15:21:55 +00:00
%files devel
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/uv.h
%{_includedir}/uv/
2012-11-15 15:21:55 +00:00
%files static
%{_libdir}/%{name}.a
2012-11-15 15:21:55 +00:00
%changelog
%autochangelog