From 5fd789726fe24525f4faf801efab2cb062b3ac0c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:30:55 +0000 Subject: import nodejs010-libuv-0.10.23-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07951b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libuv-v0.10.23.tar.gz diff --git a/.nodejs010-libuv.metadata b/.nodejs010-libuv.metadata new file mode 100644 index 0000000..40df618 --- /dev/null +++ b/.nodejs010-libuv.metadata @@ -0,0 +1 @@ +d955a3d05ee42d5fc841d4bdaabe3dd63996768a SOURCES/libuv-v0.10.23.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libuv.pc.in b/SOURCES/libuv.pc.in new file mode 100644 index 0000000..43236a5 --- /dev/null +++ b/SOURCES/libuv.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libuv +Description: Development libraries for libuv +Version: @version@ +Libs: -L${libdir} -luv -lrt -ldl +Cflags: +URL: http://nodejs.org/ diff --git a/SPECS/libuv.spec b/SPECS/libuv.spec new file mode 100644 index 0000000..fc7fd94 --- /dev/null +++ b/SPECS/libuv.spec @@ -0,0 +1,228 @@ +%{?scl:%scl_package libuv} +%{!?scl:%global pkg_name %{name}} + +%global git_snapshot 5462dab + +#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: %{?scl_prefix}libuv +Epoch: 1 +Version: 0.10.23 +Release: 2%{?dist} +Summary: Platform layer for node.js + +Group: Development/Tools +# the licensing breakdown is described in detail in the LICENSE file +License: MIT and BSD and ISC +URL: http://nodejs.org/ +Source0: http://libuv.org/dist/v%{version}/%{pkg_name}-v%{version}.tar.gz +Source2: libuv.pc.in + +%{?scl:Requires: %{scl}-runtime} +%{?scl:BuildRequires: %{scl}-runtime} +BuildRequires: v8314-gyp +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +# Bundling exception request: +# https://fedorahosted.org/fpc/ticket/231 +Provides: %{?scl_prefix}bundled(libev) = 4.04 + +%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 +Group: Development/Tools +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: pkgconfig +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description devel +Development libraries for libuv + +%prep +%setup -q -n %{pkg_name}-v%{version} + +%build +%{?scl:scl enable %{scl} "} +export CFLAGS='%{optflags}' +export CXXFLAGS='%{optflags}' +%{__python} gyp_uv.py -Dcomponent=shared_library -Dlibrary=shared_library + +make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release +%{?scl: "} + +%install +# Copy the shared lib into the libdir +mkdir -p %{buildroot}/%{_libdir}/ +cp out/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}.git%{git_snapshot}#g" \ + %SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc + +%check +# Tests are currently disabled because some require network access +# Working with upstream to split these out +#./run-tests +#./run-benchmarks + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc README.md AUTHORS LICENSE +%{_libdir}/libuv.so.* + +%files devel +%doc README.md AUTHORS LICENSE +%{_libdir}/libuv.so +%{_libdir}/pkgconfig/libuv.pc +%{_includedir}/uv.h +%{_includedir}/uv-private + +%changelog +* Fri Jan 31 2014 Tomas Hrcka - 1:0.10.23-2 +- new upstream release + +* Thu Dec 05 2013 Tomas Hrcka - 1:0.10.19-1.1 +- rebuilt with gyp from v8collection +- build requires scl-runtime + +* Tue Nov 12 2013 T.C. Hollingsworth - 1:0.10.19-1 +- new upstream release 0.10.19 + https://github.com/joyent/libuv/blob/v0.10.19/ChangeLog + +* Fri Oct 18 2013 T.C. Hollingsworth - 1:0.10.18-1 +- new upstream release 0.10.18 + https://github.com/joyent/libuv/blob/v0.10.18/ChangeLog + +* Wed Sep 25 2013 T.C. Hollingsworth - 1:0.10.17-1 +- new upstream release 0.10.17 + https://github.com/joyent/libuv/blob/v0.10.17/ChangeLog + +* Fri Sep 06 2013 T.C. Hollingsworth - 1:0.10.15-1 +- new upstream release 0.10.15 + https://github.com/joyent/libuv/blob/v0.10.15/ChangeLog + +* Tue Aug 27 2013 T.C. Hollingsworth - 1:0.10.14-1 +- new upstream release 0.10.14 + https://github.com/joyent/libuv/blob/v0.10.14/ChangeLog + +* Thu Jul 25 2013 T.C. Hollingsworth - 1:0.10.13-1 +- new upstream release 0.10.13 + https://github.com/joyent/libuv/blob/v0.10.13/ChangeLog + +* Wed Jul 10 2013 T.C. Hollingsworth - 1:0.10.12-1 +- new upstream release 0.10.12 + +* Wed Jun 19 2013 T.C. Hollingsworth - 1:0.10.11-1 +- new upstream release 0.10.11 + +* Fri May 31 2013 T.C. Hollingsworth - 1:0.10.9-1 +- new upstream release 0.10.9 + +* Wed May 29 2013 T.C. Hollingsworth - 1:0.10.8-2 +- fix License tag (RHBZ#968226) + +* Wed May 29 2013 T.C. Hollingsworth - 1:0.10.8-1 +- new upstream release 0.10.8 + +* Wed May 29 2013 T.C. Hollingsworth - 1:0.10.7-1 +- new upstream release 0.10.7 +- drop upstreamed patch from 0.10.5-2 + +* Wed May 15 2013 Tomas Hrcka - 1:0.10.5-1.1 +- updated to upstream stable version + +* Mon May 13 2013 T.C. Hollingsworth - 1:0.10.5-3 +- don't sed the soname in the spec anymore; the patch takes care of it now +- drop leftover global define for git revision + +* Mon May 13 2013 Stephen Gallagher - 1:0.10.5-2 +- Add patch to properly report soname version information + This patch will be included upstream in 0.10.6 and can be dropped then. +- Remove Bundles(ev) as this has not been true since 0.9.5 + +* Wed Apr 24 2013 T.C. Hollingsworth - 1:0.10.5-1 +- new upstream release 0.10.5 + +* Mon Apr 15 2013 T.C. Hollingsworth - 1:0.10.4-1 +- new upstream release 0.10.4 +- drop upstreamed patch + +* Fri Apr 05 2013 Stanislav Ochotnicky - 1:0.10.3-3 +- Add support for software collections + +* Thu Apr 04 2013 T.C. Hollingsworth - 1:0.10.3-2 +- backport patch that fixes FTBFS in nodejs-0.10.3 + +* Sun Mar 31 2013 tchollingsworth@gmail.com - 1:0.10.3-1 +- rebase to 0.10.3 +- upstream now does proper releases + +* Tue Mar 12 2013 T.C. Hollingsworth - 1:0.10.0-2.git5462dab +- drop the patchlevel from the SONAME since libuv will retain binary + compatibility for the life of the 0.10.x series + +* Mon Mar 11 2013 Stephen Gallagher - 1:0.10.0-1.git5462dab +- Upgrade to 0.10.0 release to match stable Node.js release + +* Thu Feb 28 2013 Stephen Gallagher - 1:0.9.4-4.gitdc559a5 +- Bump epoch for the version downgrade +- The 0.9.7 version hit the Rawhide repo due to the mass rebuild, we need a + clean upgrade path. + +* Thu Feb 21 2013 Stephen Gallagher - 0.9.4-3.gitdc559a5 +- Revert to version 0.9.4 (since 0.9.7 is breaking builds) + +* Thu Feb 14 2013 Fedora Release Engineering - 0.9.7-2.git4ba03dd +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jan 22 2013 Stephen Gallagher - 0.9.7-1.git4ba03dd +- Bump to version included with Node.js 0.9.7 + +* Wed Dec 26 2012 T.C. Hollingsworth - 0.9.4-0.1.gitdc559a5 +- bump to version included with node 0.9.4 +- drop upstreamed patch +- respect optflags + +* Thu Nov 15 2012 Stephen Gallagher - 0.9.3-0.3.git09b0222 +- Add patch to export uv_inet_* + +* Wed Nov 14 2012 Stephen Gallagher - 0.9.3-0.2.git09b0222 +- Fixes from package review +- Removed doubly-listed include directory +- Update git tarball to the latest upstream code + +* Thu Nov 08 2012 Stephen Gallagher - 0.9.3-0.1.gitd56434a +- Initial package