]> git.pld-linux.org Git - packages/libuv.git/blame - libuv.spec
- updated to 1.9.1, updated descriptions
[packages/libuv.git] / libuv.spec
CommitLineData
ed65a017
ER
1#
2# Conditional build:
7ae020e7 3%bcond_without static_libs # static library
ed65a017
ER
4%bcond_with tests # build with tests (require network access)
5
5bc47d32
JB
6Summary: Multi-platform support library with a focus on asynchronous I/O
7Summary(pl.UTF-8): Wieloplatformowa biblioteka wspierająca skupiająca się na asynchronicznym we/wy
35f93c77 8Name: libuv
5bc47d32 9Version: 1.9.1
4d93b4ca 10Release: 1
9b353dfd
ER
11# the licensing breakdown is described in detail in the LICENSE file
12License: MIT and BSD and ISC
7ae020e7 13Group: Libraries
d95c2c81 14Source0: http://dist.libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz
5bc47d32 15# Source0-md5: 654bf6783ac7fc10435c84ec86720a6e
351466ac 16URL: http://libuv.org/
7ae020e7 17BuildRequires: autoconf >= 2.57
351466ac 18BuildRequires: automake >= 1:1.12
5bc47d32 19BuildRequires: libtool >= 2:2
fcb1ba24 20BuildRequires: pkgconfig
35f93c77
ER
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
35f93c77 23%description
5bc47d32
JB
24libuv is a multi-platform support library with a focus on asynchronous
25I/O. It was primarily developed for use by Node.js, but it's also used
26by Luvit, Julia, pyuv and others.
35f93c77 27
7ae020e7 28%description -l pl.UTF-8
5bc47d32
JB
29libuv to wieloplatformowa biblioteka wspierająca, skupiająca się na
30asynchronicznych operacjach wejścia-wyjścia. Była rozwijana głównie z
31myślą o wykorzystaniu w Node.js, ale obecnie jest używana także przez
32projekty takie jak Luvit, Julia, pyuv i inne.
7ae020e7 33
35f93c77 34%package devel
7ae020e7
JB
35Summary: Header files for libuv library
36Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libuv
37Group: Development/Libraries
35f93c77
ER
38Requires: %{name} = %{version}-%{release}
39
40%description devel
9b353dfd 41Development libraries for libuv.
35f93c77 42
7ae020e7
JB
43%description devel -l pl.UTF-8
44Pliki nagłówkowe biblioteki libuv.
45
46%package static
47Summary: Static libuv library
48Summary(pl.UTF-8): Statyczna biblioteka libuv
49Group: Development/Libraries
50Requires: %{name}-devel = %{version}-%{release}
51
52%description static
53Static libuv library.
54
55%description static -l pl.UTF-8
56Statyczna biblioteka libuv.
57
35f93c77
ER
58%prep
59%setup -q -n %{name}-v%{version}
35f93c77 60
351466ac
ER
61# serial-tests is available in v1.12 and newer.
62echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" > m4/libuv-extra-automake-flags.m4
35f93c77 63
351466ac
ER
64%build
65%{__libtoolize}
66%{__aclocal} -I m4
67%{__autoconf}
68%{__automake}
69%configure \
7ae020e7 70 ac_cv_lib_nsl_gethostbyname=no \
351466ac 71 --disable-silent-rules \
7ae020e7 72 %{!?with_static_libs:--disable-static}
351466ac 73%{__make}
35f93c77
ER
74
75%if %{with tests}
ed65a017
ER
76./run-tests
77./run-benchmarks
35f93c77
ER
78%endif
79
80%install
81rm -rf $RPM_BUILD_ROOT
351466ac
ER
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
35f93c77 84
351466ac
ER
85# obsoleted by .pc file
86%{__rm} $RPM_BUILD_ROOT%{_libdir}/libuv.la
35f93c77
ER
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
93
94%files
95%defattr(644,root,root,755)
7ae020e7 96%doc AUTHORS ChangeLog LICENSE README.md
35f93c77 97%attr(755,root,root) %{_libdir}/libuv.so.*.*.*
7ae020e7 98%attr(755,root,root) %ghost %{_libdir}/libuv.so.1
35f93c77
ER
99
100%files devel
101%defattr(644,root,root,755)
7ae020e7 102%attr(755,root,root) %{_libdir}/libuv.so
35f93c77
ER
103%{_pkgconfigdir}/libuv.pc
104%{_includedir}/uv.h
351466ac
ER
105%{_includedir}/uv-errno.h
106%{_includedir}/uv-linux.h
107%{_includedir}/uv-threadpool.h
108%{_includedir}/uv-unix.h
109%{_includedir}/uv-version.h
7ae020e7
JB
110
111%if %{with static_libs}
112%files static
113%defattr(644,root,root,755)
114%{_libdir}/libuv.a
115%endif
This page took 0.086876 seconds and 4 git commands to generate.