2013-03-11 20:15:53 +00:00
|
|
|
%global git_snapshot 5462dab
|
2012-11-15 15:21:55 +00:00
|
|
|
|
2013-03-12 23:08:26 +00:00
|
|
|
#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
|
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
Name: libuv
|
2013-02-28 16:56:41 +00:00
|
|
|
Epoch: 1
|
2013-03-31 23:17:00 +00:00
|
|
|
Version: 0.10.3
|
|
|
|
Release: 1%{?dist}
|
2012-11-15 15:21:55 +00:00
|
|
|
Summary: Platform layer for node.js
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
License: MIT
|
|
|
|
URL: http://nodejs.org/
|
2013-03-31 23:17:00 +00:00
|
|
|
Source0: http://libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz
|
2012-11-15 15:21:55 +00:00
|
|
|
Source2: libuv.pc.in
|
|
|
|
|
|
|
|
BuildRequires: gyp
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
|
|
|
|
# Bundling exception request:
|
|
|
|
# https://fedorahosted.org/fpc/ticket/231
|
|
|
|
Provides: 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
|
2013-02-28 16:56:41 +00:00
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2012-11-15 15:21:55 +00:00
|
|
|
Requires: pkgconfig
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development libraries for libuv
|
|
|
|
|
|
|
|
%prep
|
2013-03-31 23:17:00 +00:00
|
|
|
%setup -q -n %{name}-v%{version}
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
%build
|
2012-12-27 01:45:05 +00:00
|
|
|
export CFLAGS='%{optflags}'
|
|
|
|
export CXXFLAGS='%{optflags}'
|
2012-11-15 15:21:55 +00:00
|
|
|
./gyp_uv -Dcomponent=shared_library -Dlibrary=shared_library
|
|
|
|
|
|
|
|
# Modify the build so it produces a versioned shared library
|
|
|
|
pushd out
|
|
|
|
mv libuv.target.mk libuv.target.mk.orig
|
2013-03-12 23:08:26 +00:00
|
|
|
sed "s/libuv.so/libuv.so.%{sover}/g" libuv.target.mk.orig > libuv.target.mk
|
2012-11-15 15:21:55 +00:00
|
|
|
mv run-benchmarks.target.mk run-benchmarks.target.mk.orig
|
2013-03-12 23:08:26 +00:00
|
|
|
sed "s/libuv.so/libuv.so.%{sover}/g" run-benchmarks.target.mk.orig > run-benchmarks.target.mk
|
2012-11-15 15:21:55 +00:00
|
|
|
mv run-tests.target.mk run-tests.target.mk.orig
|
2013-03-12 23:08:26 +00:00
|
|
|
sed "s/libuv.so/libuv.so.%{sover}/g" run-tests.target.mk.orig > run-tests.target.mk
|
2012-11-15 15:21:55 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
|
|
|
|
|
|
|
|
%install
|
|
|
|
# Copy the shared lib into the libdir
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}/
|
2013-03-12 23:08:26 +00:00
|
|
|
cp out/Release/obj.target/libuv.so.%{sover} %{buildroot}/%{_libdir}/libuv.so.%{sover}
|
2012-11-15 15:21:55 +00:00
|
|
|
pushd %{buildroot}/%{_libdir}/
|
2013-03-12 23:08:26 +00:00
|
|
|
ln -s libuv.so.%{sover} libuv.so.0
|
|
|
|
ln -s libuv.so.%{sover} libuv.so
|
2012-11-15 15:21:55 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
# Copy the headers into the include path
|
|
|
|
mkdir -p %{buildroot}/%{_includedir}/uv-private
|
|
|
|
|
2013-03-31 23:17:00 +00:00
|
|
|
cp include/uv.h \
|
2012-11-15 15:21:55 +00:00
|
|
|
%{buildroot}/%{_includedir}
|
|
|
|
|
2012-12-27 01:45:05 +00:00
|
|
|
cp \
|
2013-03-31 23:17:00 +00:00
|
|
|
include/uv-private/ngx-queue.h \
|
|
|
|
include/uv-private/tree.h \
|
|
|
|
include/uv-private/uv-linux.h \
|
|
|
|
include/uv-private/uv-unix.h \
|
2012-11-15 15:21:55 +00:00
|
|
|
%{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
|
2013-03-31 23:17:00 +00:00
|
|
|
* Sun Mar 31 2013 tchollingsworth@gmail.com - 1:0.10.3-1
|
|
|
|
- rebase to 0.10.3
|
|
|
|
- upstream now does proper releases
|
|
|
|
|
2013-03-12 23:08:26 +00:00
|
|
|
* Tue Mar 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 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
|
|
|
|
|
2013-03-11 20:15:53 +00:00
|
|
|
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.0-1.git5462dab
|
|
|
|
- Upgrade to 0.10.0 release to match stable Node.js release
|
|
|
|
|
2013-02-28 16:56:41 +00:00
|
|
|
* Thu Feb 28 2013 Stephen Gallagher <sgallagh@redhat.com> - 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.
|
|
|
|
|
2013-02-21 17:19:14 +00:00
|
|
|
* Thu Feb 21 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.4-3.gitdc559a5
|
|
|
|
- Revert to version 0.9.4 (since 0.9.7 is breaking builds)
|
|
|
|
|
2013-02-14 05:25:40 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-2.git4ba03dd
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-22 12:26:13 +00:00
|
|
|
* Tue Jan 22 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.7-1.git4ba03dd
|
|
|
|
- Bump to version included with Node.js 0.9.7
|
|
|
|
|
2012-12-27 01:45:05 +00:00
|
|
|
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-0.1.gitdc559a5
|
|
|
|
- bump to version included with node 0.9.4
|
|
|
|
- drop upstreamed patch
|
|
|
|
- respect optflags
|
|
|
|
|
2012-11-19 21:26:21 +00:00
|
|
|
* Thu Nov 15 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.3.git09b0222
|
|
|
|
- Add patch to export uv_inet_*
|
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
* Wed Nov 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 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 <sgallagh@redhat.com> - 0.9.3-0.1.gitd56434a
|
|
|
|
- Initial package
|