|
|
4d9046e |
#we only need major.minor in the SONAME in the stable (even numbered) series
|
|
|
4d9046e |
#this should be changed to %%{version} in unstable (odd numbered) releases
|
|
|
4d9046e |
%global sover 0.10
|
|
|
4d9046e |
|
|
|
fb9e0e2 |
Name: libuv
|
|
|
42b49f8 |
Epoch: 1
|
|
|
7c1870c |
Version: 0.10.7
|
|
|
7c1870c |
Release: 1%{?dist}
|
|
|
fb9e0e2 |
Summary: Platform layer for node.js
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
Group: Development/Tools
|
|
|
fb9e0e2 |
License: MIT
|
|
|
fb9e0e2 |
URL: http://nodejs.org/
|
|
|
88d29d1 |
Source0: http://libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz
|
|
|
fb9e0e2 |
Source2: libuv.pc.in
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
BuildRequires: gyp
|
|
|
fb9e0e2 |
Requires(post): /sbin/ldconfig
|
|
|
fb9e0e2 |
Requires(postun): /sbin/ldconfig
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%description
|
|
|
fb9e0e2 |
libuv is a new platform layer for Node. Its purpose is to abstract IOCP on
|
|
|
fb9e0e2 |
Windows and libev on Unix systems. We intend to eventually contain all platform
|
|
|
fb9e0e2 |
differences in this library.
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%package devel
|
|
|
fb9e0e2 |
Summary: Development libraries for libuv
|
|
|
fb9e0e2 |
Group: Development/Tools
|
|
|
42b49f8 |
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
fb9e0e2 |
Requires: pkgconfig
|
|
|
fb9e0e2 |
Requires(post): /sbin/ldconfig
|
|
|
fb9e0e2 |
Requires(postun): /sbin/ldconfig
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%description devel
|
|
|
fb9e0e2 |
Development libraries for libuv
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%prep
|
|
|
88d29d1 |
%setup -q -n %{name}-v%{version}
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%build
|
|
|
e53c004 |
export CFLAGS='%{optflags}'
|
|
|
e53c004 |
export CXXFLAGS='%{optflags}'
|
|
|
fb9e0e2 |
./gyp_uv -Dcomponent=shared_library -Dlibrary=shared_library
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%install
|
|
|
fb9e0e2 |
# Copy the shared lib into the libdir
|
|
|
fb9e0e2 |
mkdir -p %{buildroot}/%{_libdir}/
|
|
|
ed8c209 |
cp out/Release/obj.target/libuv.so %{buildroot}/%{_libdir}/libuv.so.%{sover}
|
|
|
fb9e0e2 |
pushd %{buildroot}/%{_libdir}/
|
|
|
4d9046e |
ln -s libuv.so.%{sover} libuv.so.0
|
|
|
4d9046e |
ln -s libuv.so.%{sover} libuv.so
|
|
|
fb9e0e2 |
popd
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
# Copy the headers into the include path
|
|
|
fb9e0e2 |
mkdir -p %{buildroot}/%{_includedir}/uv-private
|
|
|
fb9e0e2 |
|
|
|
88d29d1 |
cp include/uv.h \
|
|
|
fb9e0e2 |
%{buildroot}/%{_includedir}
|
|
|
fb9e0e2 |
|
|
|
e53c004 |
cp \
|
|
|
88d29d1 |
include/uv-private/ngx-queue.h \
|
|
|
88d29d1 |
include/uv-private/tree.h \
|
|
|
88d29d1 |
include/uv-private/uv-linux.h \
|
|
|
88d29d1 |
include/uv-private/uv-unix.h \
|
|
|
fb9e0e2 |
%{buildroot}/%{_includedir}/uv-private
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
# Create the pkgconfig file
|
|
|
fb9e0e2 |
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
sed -e "s#@prefix@#%{_prefix}#g" \
|
|
|
fb9e0e2 |
-e "s#@exec_prefix@#%{_exec_prefix}#g" \
|
|
|
fb9e0e2 |
-e "s#@libdir@#%{_libdir}#g" \
|
|
|
fb9e0e2 |
-e "s#@includedir@#%{_includedir}#g" \
|
|
|
fb9e0e2 |
-e "s#@version@#%{version}.git%{git_snapshot}#g" \
|
|
|
fb9e0e2 |
%SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%check
|
|
|
fb9e0e2 |
# Tests are currently disabled because some require network access
|
|
|
fb9e0e2 |
# Working with upstream to split these out
|
|
|
fb9e0e2 |
#./run-tests
|
|
|
fb9e0e2 |
#./run-benchmarks
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%post -p /sbin/ldconfig
|
|
|
fb9e0e2 |
%postun -p /sbin/ldconfig
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%files
|
|
|
fb9e0e2 |
%doc README.md AUTHORS LICENSE
|
|
|
fb9e0e2 |
%{_libdir}/libuv.so.*
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%files devel
|
|
|
fb9e0e2 |
%doc README.md AUTHORS LICENSE
|
|
|
fb9e0e2 |
%{_libdir}/libuv.so
|
|
|
fb9e0e2 |
%{_libdir}/pkgconfig/libuv.pc
|
|
|
fb9e0e2 |
%{_includedir}/uv.h
|
|
|
fb9e0e2 |
%{_includedir}/uv-private
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%changelog
|
|
|
7c1870c |
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.7-1
|
|
|
7c1870c |
- new upstream release 0.10.7
|
|
|
7c1870c |
- drop upstreamed patch from 0.10.5-2
|
|
|
7c1870c |
|
|
|
ed8c209 |
* Mon May 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-3
|
|
|
ed8c209 |
- don't sed the soname in the spec anymore; the patch takes care of it now
|
|
|
4ed795e |
- drop leftover global define for git revision
|
|
|
ed8c209 |
|
|
|
4a087b2 |
* Mon May 13 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.5-2
|
|
|
4a087b2 |
- Add patch to properly report soname version information
|
|
|
4a087b2 |
This patch will be included upstream in 0.10.6 and can be dropped then.
|
|
|
4a087b2 |
- Remove Bundles(ev) as this has not been true since 0.9.5
|
|
|
4a087b2 |
|
|
|
6ba4fc6 |
* Wed Apr 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-1
|
|
|
6ba4fc6 |
- new upstream release 0.10.5
|
|
|
6ba4fc6 |
|
|
|
4424244 |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.4-1
|
|
|
4424244 |
- new upstream release 0.10.4
|
|
|
6c856f5 |
- drop upstreamed patch
|
|
|
4424244 |
|
|
|
5245e18 |
* Thu Apr 04 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.3-2
|
|
|
5245e18 |
- backport patch that fixes FTBFS in nodejs-0.10.3
|
|
|
5245e18 |
|
|
|
88d29d1 |
* Sun Mar 31 2013 tchollingsworth@gmail.com - 1:0.10.3-1
|
|
|
88d29d1 |
- rebase to 0.10.3
|
|
|
88d29d1 |
- upstream now does proper releases
|
|
|
88d29d1 |
|
|
|
4d9046e |
* Tue Mar 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.0-2.git5462dab
|
|
|
4d9046e |
- drop the patchlevel from the SONAME since libuv will retain binary
|
|
|
4d9046e |
compatibility for the life of the 0.10.x series
|
|
|
4d9046e |
|
|
|
7195168 |
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.0-1.git5462dab
|
|
|
7195168 |
- Upgrade to 0.10.0 release to match stable Node.js release
|
|
|
7195168 |
|
|
|
42b49f8 |
* Thu Feb 28 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.9.4-4.gitdc559a5
|
|
|
42b49f8 |
- Bump epoch for the version downgrade
|
|
|
42b49f8 |
- The 0.9.7 version hit the Rawhide repo due to the mass rebuild, we need a
|
|
|
42b49f8 |
clean upgrade path.
|
|
|
42b49f8 |
|
|
|
52ab263 |
* Thu Feb 21 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.4-3.gitdc559a5
|
|
|
52ab263 |
- Revert to version 0.9.4 (since 0.9.7 is breaking builds)
|
|
|
52ab263 |
|
|
|
8c2a768 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-2.git4ba03dd
|
|
|
8c2a768 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
8c2a768 |
|
|
|
69c352b |
* Tue Jan 22 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.7-1.git4ba03dd
|
|
|
69c352b |
- Bump to version included with Node.js 0.9.7
|
|
|
69c352b |
|
|
|
e53c004 |
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-0.1.gitdc559a5
|
|
|
e53c004 |
- bump to version included with node 0.9.4
|
|
|
e53c004 |
- drop upstreamed patch
|
|
|
e53c004 |
- respect optflags
|
|
|
e53c004 |
|
|
|
e63532e |
* Thu Nov 15 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.3.git09b0222
|
|
|
e63532e |
- Add patch to export uv_inet_*
|
|
|
e63532e |
|
|
|
fb9e0e2 |
* Wed Nov 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.2.git09b0222
|
|
|
fb9e0e2 |
- Fixes from package review
|
|
|
fb9e0e2 |
- Removed doubly-listed include directory
|
|
|
fb9e0e2 |
- Update git tarball to the latest upstream code
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
* Thu Nov 08 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.1.gitd56434a
|
|
|
fb9e0e2 |
- Initial package
|