|
|
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
|
|
|
fe1e4ec |
Version: 0.10.33
|
|
|
b9383b0 |
Release: 2%{?dist}
|
|
|
fb9e0e2 |
Summary: Platform layer for node.js
|
|
|
fb9e0e2 |
|
|
|
a2eeb8e |
Group: System Environment/Libraries
|
|
|
c9de479 |
# the licensing breakdown is described in detail in the LICENSE file
|
|
|
c9de479 |
License: MIT and BSD and ISC
|
|
|
87713c9 |
URL: http://libuv.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
|
|
|
a2eeb8e |
Group: Development/Libraries
|
|
|
b9383b0 |
Requires: %{name}%{?_isa} = %{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 |
|
|
|
d076c1e |
%package static
|
|
|
d076c1e |
Summary: Platform layer for node.js - static library
|
|
|
d076c1e |
Group: Development/Libraries
|
|
|
d076c1e |
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
|
|
|
d076c1e |
|
|
|
d076c1e |
%description static
|
|
|
d076c1e |
Static library (.a) version of libuv.
|
|
|
d076c1e |
|
|
|
fb9e0e2 |
%prep
|
|
|
88d29d1 |
%setup -q -n %{name}-v%{version}
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
%build
|
|
|
e53c004 |
export CFLAGS='%{optflags}'
|
|
|
e53c004 |
export CXXFLAGS='%{optflags}'
|
|
|
0e365bb |
%{__python} gyp_uv.py -Dcomponent=shared_library -Dlibrary=shared_library
|
|
|
fb9e0e2 |
|
|
|
fb9e0e2 |
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
|
|
|
fb9e0e2 |
|
|
|
d076c1e |
mv out out-shared
|
|
|
d076c1e |
|
|
|
d076c1e |
# build a static version for rust
|
|
|
d076c1e |
%{__python} gyp_uv.py
|
|
|
d076c1e |
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
|
|
|
d076c1e |
mv out out-static
|
|
|
d076c1e |
|
|
|
fb9e0e2 |
%install
|
|
|
fb9e0e2 |
# Copy the shared lib into the libdir
|
|
|
fb9e0e2 |
mkdir -p %{buildroot}/%{_libdir}/
|
|
|
d076c1e |
cp out-shared/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" \
|
|
|
a2eeb8e |
-e "s#@version@#%{version}#g" \
|
|
|
fb9e0e2 |
%SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
|
|
|
fb9e0e2 |
|
|
|
d076c1e |
#install the static version
|
|
|
d076c1e |
cp out-static/Release/obj.target/libuv.a %{buildroot}/%{_libdir}
|
|
|
d076c1e |
|
|
|
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 |
|
|
|
d076c1e |
%files static
|
|
|
d076c1e |
%{_libdir}/libuv.a
|
|
|
d076c1e |
|
|
|
fb9e0e2 |
%changelog
|
|
|
b9383b0 |
* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.33-2
|
|
|
b9383b0 |
- add missing %%{_?isa} to devel requires of main package
|
|
|
a2eeb8e |
- fix some issues with the pkgconfig file and Group reported by Michael Schwendt
|
|
|
b9383b0 |
|
|
|
fe1e4ec |
* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.33-1
|
|
|
fe1e4ec |
- new upstream release 0.10.33
|
|
|
fe1e4ec |
https://github.com/joyent/libuv/blob/v0.10.33/ChangeLog
|
|
|
87713c9 |
- update URL to point to the new libuv.org
|
|
|
fe1e4ec |
|
|
|
672b2a7 |
* Wed Nov 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.29-1
|
|
|
672b2a7 |
- new upstream release 0.10.29
|
|
|
672b2a7 |
https://github.com/joyent/libuv/blob/v0.10.29/ChangeLog
|
|
|
672b2a7 |
|
|
|
957a431 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.28-2
|
|
|
957a431 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
957a431 |
|
|
|
3f9f091 |
* Fri Aug 01 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.28-1
|
|
|
3f9f091 |
- new upstream release 0.10.28
|
|
|
3f9f091 |
https://github.com/joyent/libuv/blob/v0.10.28/ChangeLog
|
|
|
3f9f091 |
|
|
|
d076c1e |
* Thu Jul 03 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-3
|
|
|
d076c1e |
- build static library for rust (RHBZ#1115975)
|
|
|
d076c1e |
|
|
|
ca465dc |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.27-2
|
|
|
ca465dc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
ca465dc |
|
|
|
33fa578 |
* Fri May 02 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-1
|
|
|
33fa578 |
- new upstream release 0.10.27
|
|
|
33fa578 |
https://github.com/joyent/libuv/blob/v0.10.27/ChangeLog
|
|
|
33fa578 |
|
|
|
b851510 |
* Thu Feb 20 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.25-1
|
|
|
b851510 |
- new upstream release 0.10.25
|
|
|
b851510 |
https://github.com/joyent/libuv/blob/v0.10.25/ChangeLog
|
|
|
b851510 |
|
|
|
6d06370 |
* Mon Jan 27 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.23-1
|
|
|
6d06370 |
- new upstream release 0.10.23
|
|
|
6d06370 |
https://github.com/joyent/libuv/blob/v0.10.23/ChangeLog
|
|
|
6d06370 |
|
|
|
86e6c79 |
* Thu Dec 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.21-1
|
|
|
86e6c79 |
- new upstream release 0.10.21
|
|
|
86e6c79 |
https://github.com/joyent/libuv/blob/v0.10.21/ChangeLog
|
|
|
86e6c79 |
|
|
|
7a77970 |
* Thu Dec 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.20-1
|
|
|
7a77970 |
- new upstream release 0.10.20
|
|
|
7a77970 |
https://github.com/joyent/libuv/blob/v0.10.20/ChangeLog
|
|
|
7a77970 |
|
|
|
bd52e48 |
* Tue Nov 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.19-1
|
|
|
bd52e48 |
- new upstream release 0.10.19
|
|
|
bd52e48 |
https://github.com/joyent/libuv/blob/v0.10.19/ChangeLog
|
|
|
bd52e48 |
|
|
|
e7939ff |
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.18-1
|
|
|
e7939ff |
- new upstream release 0.10.18
|
|
|
e7939ff |
https://github.com/joyent/libuv/blob/v0.10.18/ChangeLog
|
|
|
e7939ff |
|
|
|
8c46406 |
* Wed Sep 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.17-1
|
|
|
8c46406 |
- new upstream release 0.10.17
|
|
|
8c46406 |
https://github.com/joyent/libuv/blob/v0.10.17/ChangeLog
|
|
|
8c46406 |
|
|
|
c3f343f |
* Fri Sep 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.15-1
|
|
|
c3f343f |
- new upstream release 0.10.15
|
|
|
c3f343f |
https://github.com/joyent/libuv/blob/v0.10.15/ChangeLog
|
|
|
c3f343f |
|
|
|
ce55348 |
* Tue Aug 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.14-1
|
|
|
ce55348 |
- new upstream release 0.10.14
|
|
|
ce55348 |
https://github.com/joyent/libuv/blob/v0.10.14/ChangeLog
|
|
|
ce55348 |
|
|
|
38922a9 |
* Thu Jul 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.13-1
|
|
|
38922a9 |
- new upstream release 0.10.13
|
|
|
38922a9 |
https://github.com/joyent/libuv/blob/v0.10.13/ChangeLog
|
|
|
38922a9 |
|
|
|
346591f |
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.12-1
|
|
|
346591f |
- new upstream release 0.10.12
|
|
|
346591f |
|
|
|
9c0c673 |
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.11-1
|
|
|
9c0c673 |
- new upstream release 0.10.11
|
|
|
9c0c673 |
|
|
|
1de547f |
* Fri May 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.9-1
|
|
|
1de547f |
- new upstream release 0.10.9
|
|
|
1de547f |
|
|
|
c9de479 |
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-2
|
|
|
c9de479 |
- fix License tag (RHBZ#968226)
|
|
|
c9de479 |
|
|
|
0ffe6d5 |
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-1
|
|
|
0ffe6d5 |
- new upstream release 0.10.8
|
|
|
0ffe6d5 |
|
|
|
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
|