Merge branch 'master' into epel7
This commit is contained in:
commit
751ae29d02
5
.gitignore
vendored
5
.gitignore
vendored
@ -25,3 +25,8 @@
|
|||||||
/libuv-v0.10.29.tar.gz
|
/libuv-v0.10.29.tar.gz
|
||||||
/libuv-v0.10.33.tar.gz
|
/libuv-v0.10.33.tar.gz
|
||||||
/libuv-v0.10.34.tar.gz
|
/libuv-v0.10.34.tar.gz
|
||||||
|
/libuv-v1.4.0.tar.gz
|
||||||
|
/libuv-v1.7.5.tar.gz
|
||||||
|
/libuv-v1.8.0.tar.gz
|
||||||
|
/libuv-v1.9.0.tar.gz
|
||||||
|
/libuv-v1.9.1.tar.gz
|
||||||
|
@ -6,6 +6,6 @@ includedir=@includedir@
|
|||||||
Name: libuv
|
Name: libuv
|
||||||
Description: Development libraries for libuv
|
Description: Development libraries for libuv
|
||||||
Version: @version@
|
Version: @version@
|
||||||
Libs: -L${libdir} -luv -lrt -ldl
|
Libs: -L${libdir} -luv -lrt -lpthread -lnsl -ldl
|
||||||
Cflags: -I{includedir}
|
Cflags: -I{includedir}
|
||||||
URL: http://libuv.org/
|
URL: http://libuv.org/
|
||||||
|
73
libuv.spec
73
libuv.spec
@ -1,22 +1,18 @@
|
|||||||
#we only need major.minor in the SONAME in the stable (even numbered) series
|
|
||||||
#this should be changed to %%{version} in unstable (odd numbered) releases
|
|
||||||
%global sover 0.10
|
|
||||||
|
|
||||||
Name: libuv
|
Name: libuv
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 0.10.34
|
Version: 1.9.1
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Platform layer for node.js
|
Summary: Platform layer for node.js
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
# the licensing breakdown is described in detail in the LICENSE file
|
# the licensing breakdown is described in detail in the LICENSE file
|
||||||
License: MIT and BSD and ISC
|
License: MIT and BSD and ISC
|
||||||
URL: http://libuv.org/
|
URL: http://libuv.org/
|
||||||
Source0: http://libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz
|
Source0: http://dist.libuv.org/dist/v%{version}/libuv-v%{version}.tar.gz
|
||||||
Source2: libuv.pc.in
|
Source2: libuv.pc.in
|
||||||
|
|
||||||
BuildRequires: gyp
|
BuildRequires: autoconf automake libtool
|
||||||
BuildRequires: util-linux
|
|
||||||
Requires(post): /sbin/ldconfig
|
Requires(post): /sbin/ldconfig
|
||||||
Requires(postun): /sbin/ldconfig
|
Requires(postun): /sbin/ldconfig
|
||||||
|
|
||||||
@ -48,53 +44,13 @@ Static library (.a) version of libuv.
|
|||||||
%setup -q -n %{name}-v%{version}
|
%setup -q -n %{name}-v%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS='%{optflags}'
|
./autogen.sh
|
||||||
export CXXFLAGS='%{optflags}'
|
%configure
|
||||||
%{__python} gyp_uv.py -Dcomponent=shared_library -Dlibrary=shared_library
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
|
|
||||||
|
|
||||||
mv out out-shared
|
|
||||||
|
|
||||||
# build a static version for rust
|
|
||||||
%{__python} gyp_uv.py
|
|
||||||
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
|
|
||||||
mv out out-static
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Copy the shared lib into the libdir
|
make DESTDIR=%{buildroot} install
|
||||||
mkdir -p %{buildroot}/%{_libdir}/
|
rm -f %{buildroot}%{_libdir}/libuv.la
|
||||||
cp out-shared/Release/obj.target/libuv.so %{buildroot}/%{_libdir}/libuv.so.%{sover}
|
|
||||||
pushd %{buildroot}/%{_libdir}/
|
|
||||||
ln -s libuv.so.%{sover} libuv.so.0
|
|
||||||
ln -s libuv.so.%{sover} libuv.so
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Copy the headers into the include path
|
|
||||||
mkdir -p %{buildroot}/%{_includedir}/uv-private
|
|
||||||
|
|
||||||
cp include/uv.h \
|
|
||||||
%{buildroot}/%{_includedir}
|
|
||||||
|
|
||||||
cp \
|
|
||||||
include/uv-private/ngx-queue.h \
|
|
||||||
include/uv-private/tree.h \
|
|
||||||
include/uv-private/uv-linux.h \
|
|
||||||
include/uv-private/uv-unix.h \
|
|
||||||
%{buildroot}/%{_includedir}/uv-private
|
|
||||||
|
|
||||||
# Create the pkgconfig file
|
|
||||||
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
|
||||||
|
|
||||||
sed -e "s#@prefix@#%{_prefix}#g" \
|
|
||||||
-e "s#@exec_prefix@#%{_exec_prefix}#g" \
|
|
||||||
-e "s#@libdir@#%{_libdir}#g" \
|
|
||||||
-e "s#@includedir@#%{_includedir}#g" \
|
|
||||||
-e "s#@version@#%{version}#g" \
|
|
||||||
%SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
|
|
||||||
|
|
||||||
#install the static version
|
|
||||||
cp out-static/Release/obj.target/libuv.a %{buildroot}/%{_libdir}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Tests are currently disabled because some require network access
|
# Tests are currently disabled because some require network access
|
||||||
@ -106,20 +62,23 @@ cp out-static/Release/obj.target/libuv.a %{buildroot}/%{_libdir}
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md AUTHORS LICENSE
|
%doc README.md AUTHORS
|
||||||
|
%license LICENSE
|
||||||
%{_libdir}/libuv.so.*
|
%{_libdir}/libuv.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc README.md AUTHORS LICENSE
|
|
||||||
%{_libdir}/libuv.so
|
%{_libdir}/libuv.so
|
||||||
%{_libdir}/pkgconfig/libuv.pc
|
%{_libdir}/pkgconfig/libuv.pc
|
||||||
%{_includedir}/uv.h
|
%{_includedir}/uv*.h
|
||||||
%{_includedir}/uv-private
|
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
%{_libdir}/libuv.a
|
%{_libdir}/libuv.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 18 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.9.1-1
|
||||||
|
- Update to 1.9.1
|
||||||
|
- https://github.com/libuv/libuv/blob/v1.9.1/ChangeLog
|
||||||
|
|
||||||
* Mon Dec 07 2015 Dan Horák <dan[at]danny.cz> - 1:0.10.34-2
|
* Mon Dec 07 2015 Dan Horák <dan[at]danny.cz> - 1:0.10.34-2
|
||||||
- update BR
|
- update BR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user