[packages/libuv] - pl, standard Groups, added -static; release 2
qboosh
qboosh at pld-linux.org
Mon Jan 11 21:44:08 CET 2016
commit 7ae020e72c8d30edf1d74e949736e65bae957848
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jan 11 21:46:12 2016 +0100
- pl, standard Groups, added -static; release 2
libuv.spec | 49 ++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 40 insertions(+), 9 deletions(-)
---
diff --git a/libuv.spec b/libuv.spec
index ec6e226..466e20a 100644
--- a/libuv.spec
+++ b/libuv.spec
@@ -1,18 +1,20 @@
#
# Conditional build:
+%bcond_without static_libs # static library
%bcond_with tests # build with tests (require network access)
Summary: Platform layer for node.js
+Summary(pl.UTF-8): Zależna od platformy warstwa node.js
Name: libuv
Version: 1.6.1
-Release: 1
+Release: 2
# the licensing breakdown is described in detail in the LICENSE file
License: MIT and BSD and ISC
-Group: Development/Tools
+Group: Libraries
Source0: http://dist.libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz
# Source0-md5: 51cfa3d8adc05852982e3c742ec3c039
URL: http://libuv.org/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.57
BuildRequires: automake >= 1:1.12
BuildRequires: libtool
BuildRequires: pkgconfig
@@ -23,14 +25,36 @@ 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.
+%description -l pl.UTF-8
+libuv to nowa, zależna od platformy warstwa Node. Celem jest
+abstrakcja dla IOCP na Windows i libev na systemach uniksowych. W
+przyszłości ta biblioteka może zawierać wszystkie różnice
+międzyplatformowe.
+
%package devel
-Summary: Development libraries for libuv
-Group: Development/Tools
+Summary: Header files for libuv library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libuv
+Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development libraries for libuv.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libuv.
+
+%package static
+Summary: Static libuv library
+Summary(pl.UTF-8): Statyczna biblioteka libuv
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libuv library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libuv.
+
%prep
%setup -q -n %{name}-v%{version}
@@ -43,8 +67,9 @@ echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" > m4/libuv-extra-aut
%{__autoconf}
%{__automake}
%configure \
+ ac_cv_lib_nsl_gethostbyname=no \
--disable-silent-rules \
- --disable-static
+ %{!?with_static_libs:--disable-static}
%{__make}
%if %{with tests}
@@ -68,13 +93,13 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.md AUTHORS LICENSE
+%doc AUTHORS ChangeLog LICENSE README.md
%attr(755,root,root) %{_libdir}/libuv.so.*.*.*
-%ghost %{_libdir}/libuv.so.1
+%attr(755,root,root) %ghost %{_libdir}/libuv.so.1
%files devel
%defattr(644,root,root,755)
-%{_libdir}/libuv.so
+%attr(755,root,root) %{_libdir}/libuv.so
%{_pkgconfigdir}/libuv.pc
%{_includedir}/uv.h
%{_includedir}/uv-errno.h
@@ -82,3 +107,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/uv-threadpool.h
%{_includedir}/uv-unix.h
%{_includedir}/uv-version.h
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libuv.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libuv.git/commitdiff/7ae020e72c8d30edf1d74e949736e65bae957848
More information about the pld-cvs-commit
mailing list