]>
Commit | Line | Data |
---|---|---|
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 |
6 | Summary: Multi-platform support library with a focus on asynchronous I/O |
7 | Summary(pl.UTF-8): Wieloplatformowa biblioteka wspierająca skupiająca się na asynchronicznym we/wy | |
35f93c77 | 8 | Name: libuv |
5bc47d32 | 9 | Version: 1.9.1 |
4d93b4ca | 10 | Release: 1 |
9b353dfd ER |
11 | # the licensing breakdown is described in detail in the LICENSE file |
12 | License: MIT and BSD and ISC | |
7ae020e7 | 13 | Group: Libraries |
d95c2c81 | 14 | Source0: http://dist.libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz |
5bc47d32 | 15 | # Source0-md5: 654bf6783ac7fc10435c84ec86720a6e |
351466ac | 16 | URL: http://libuv.org/ |
7ae020e7 | 17 | BuildRequires: autoconf >= 2.57 |
351466ac | 18 | BuildRequires: automake >= 1:1.12 |
5bc47d32 | 19 | BuildRequires: libtool >= 2:2 |
fcb1ba24 | 20 | BuildRequires: pkgconfig |
35f93c77 ER |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
35f93c77 | 23 | %description |
5bc47d32 JB |
24 | libuv is a multi-platform support library with a focus on asynchronous |
25 | I/O. It was primarily developed for use by Node.js, but it's also used | |
26 | by Luvit, Julia, pyuv and others. | |
35f93c77 | 27 | |
7ae020e7 | 28 | %description -l pl.UTF-8 |
5bc47d32 JB |
29 | libuv to wieloplatformowa biblioteka wspierająca, skupiająca się na |
30 | asynchronicznych operacjach wejścia-wyjścia. Była rozwijana głównie z | |
31 | myślą o wykorzystaniu w Node.js, ale obecnie jest używana także przez | |
32 | projekty takie jak Luvit, Julia, pyuv i inne. | |
7ae020e7 | 33 | |
35f93c77 | 34 | %package devel |
7ae020e7 JB |
35 | Summary: Header files for libuv library |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libuv | |
37 | Group: Development/Libraries | |
35f93c77 ER |
38 | Requires: %{name} = %{version}-%{release} |
39 | ||
40 | %description devel | |
9b353dfd | 41 | Development libraries for libuv. |
35f93c77 | 42 | |
7ae020e7 JB |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe biblioteki libuv. | |
45 | ||
46 | %package static | |
47 | Summary: Static libuv library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka libuv | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static libuv library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna 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. |
62 | echo "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 | |
81 | rm -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 | |
89 | rm -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 |