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
|
2015-02-24 23:36:29 +00:00
|
|
|
Version: 0.10.34
|
|
|
|
Release: 1%{?dist}
|
2012-11-15 15:21:55 +00:00
|
|
|
Summary: Platform layer for node.js
|
|
|
|
|
2015-02-19 20:04:47 +00:00
|
|
|
Group: System Environment/Libraries
|
2013-05-29 09:25:06 +00:00
|
|
|
# the licensing breakdown is described in detail in the LICENSE file
|
|
|
|
License: MIT and BSD and ISC
|
2015-02-19 07:46:00 +00:00
|
|
|
URL: http://libuv.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
|
|
|
|
|
|
|
|
%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
|
2015-02-19 20:04:47 +00:00
|
|
|
Group: Development/Libraries
|
2015-02-19 13:51:48 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{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
|
|
|
|
|
2014-07-03 21:08:26 +00:00
|
|
|
%package static
|
|
|
|
Summary: Platform layer for node.js - static library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
%description static
|
|
|
|
Static library (.a) version of libuv.
|
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%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}'
|
2013-11-12 21:41:40 +00:00
|
|
|
%{__python} gyp_uv.py -Dcomponent=shared_library -Dlibrary=shared_library
|
2012-11-15 15:21:55 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
|
|
|
|
|
2014-07-03 21:08:26 +00:00
|
|
|
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
|
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%install
|
|
|
|
# Copy the shared lib into the libdir
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}/
|
2014-07-03 21:08:26 +00:00
|
|
|
cp out-shared/Release/obj.target/libuv.so %{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" \
|
2015-02-19 20:04:47 +00:00
|
|
|
-e "s#@version@#%{version}#g" \
|
2012-11-15 15:21:55 +00:00
|
|
|
%SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
|
|
|
|
|
2014-07-03 21:08:26 +00:00
|
|
|
#install the static version
|
|
|
|
cp out-static/Release/obj.target/libuv.a %{buildroot}/%{_libdir}
|
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%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
|
|
|
|
|
2014-07-03 21:08:26 +00:00
|
|
|
%files static
|
|
|
|
%{_libdir}/libuv.a
|
|
|
|
|
2012-11-15 15:21:55 +00:00
|
|
|
%changelog
|
2015-02-24 23:36:29 +00:00
|
|
|
* Tue Feb 24 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.34-1
|
|
|
|
- new upstream release 0.10.34
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.34/ChangeLog
|
|
|
|
- resolves incorrect revocation while reliquishing privileges security
|
|
|
|
vulnerability (CVE-2015-0278, RHBZ#1194651)
|
|
|
|
|
2015-02-19 13:51:48 +00:00
|
|
|
* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.33-2
|
|
|
|
- add missing %%{_?isa} to devel requires of main package
|
2015-02-19 20:04:47 +00:00
|
|
|
- fix some issues with the pkgconfig file and Group reported by Michael Schwendt
|
2015-02-19 13:51:48 +00:00
|
|
|
|
2015-02-19 07:45:31 +00:00
|
|
|
* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.33-1
|
|
|
|
- new upstream release 0.10.33
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.33/ChangeLog
|
2015-02-19 07:46:00 +00:00
|
|
|
- update URL to point to the new libuv.org
|
2015-02-19 07:45:31 +00:00
|
|
|
|
2014-11-19 01:44:46 +00:00
|
|
|
* Wed Nov 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.29-1
|
|
|
|
- new upstream release 0.10.29
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.29/ChangeLog
|
|
|
|
|
2014-08-17 06:35:26 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.28-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-01 00:16:30 +00:00
|
|
|
* Fri Aug 01 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.28-1
|
|
|
|
- new upstream release 0.10.28
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.28/ChangeLog
|
|
|
|
|
2014-07-03 21:08:26 +00:00
|
|
|
* Thu Jul 03 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-3
|
|
|
|
- build static library for rust (RHBZ#1115975)
|
|
|
|
|
2014-06-07 05:52:43 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.27-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-02 23:59:41 +00:00
|
|
|
* Fri May 02 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-1
|
|
|
|
- new upstream release 0.10.27
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.27/ChangeLog
|
|
|
|
|
2014-02-20 03:46:24 +00:00
|
|
|
* Thu Feb 20 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.25-1
|
|
|
|
- new upstream release 0.10.25
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.25/ChangeLog
|
|
|
|
|
2014-01-27 22:05:53 +00:00
|
|
|
* Mon Jan 27 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.23-1
|
|
|
|
- new upstream release 0.10.23
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.23/ChangeLog
|
|
|
|
|
2013-12-19 18:11:14 +00:00
|
|
|
* Thu Dec 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.21-1
|
|
|
|
- new upstream release 0.10.21
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.21/ChangeLog
|
|
|
|
|
2013-12-12 17:58:00 +00:00
|
|
|
* Thu Dec 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.20-1
|
|
|
|
- new upstream release 0.10.20
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.20/ChangeLog
|
|
|
|
|
2013-11-12 21:15:00 +00:00
|
|
|
* Tue Nov 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.19-1
|
|
|
|
- new upstream release 0.10.19
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.19/ChangeLog
|
|
|
|
|
2013-10-18 23:03:52 +00:00
|
|
|
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.18-1
|
|
|
|
- new upstream release 0.10.18
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.18/ChangeLog
|
|
|
|
|
2013-09-25 00:21:57 +00:00
|
|
|
* Wed Sep 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.17-1
|
|
|
|
- new upstream release 0.10.17
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.17/ChangeLog
|
|
|
|
|
2013-09-06 22:15:57 +00:00
|
|
|
* Fri Sep 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.15-1
|
|
|
|
- new upstream release 0.10.15
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.15/ChangeLog
|
|
|
|
|
2013-08-27 09:16:43 +00:00
|
|
|
* Tue Aug 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.14-1
|
|
|
|
- new upstream release 0.10.14
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.14/ChangeLog
|
|
|
|
|
2013-07-25 21:08:45 +00:00
|
|
|
* Thu Jul 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.13-1
|
|
|
|
- new upstream release 0.10.13
|
|
|
|
https://github.com/joyent/libuv/blob/v0.10.13/ChangeLog
|
|
|
|
|
2013-07-10 09:43:32 +00:00
|
|
|
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.12-1
|
|
|
|
- new upstream release 0.10.12
|
|
|
|
|
2013-06-19 13:49:58 +00:00
|
|
|
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.11-1
|
|
|
|
- new upstream release 0.10.11
|
|
|
|
|
2013-05-31 02:39:07 +00:00
|
|
|
* Fri May 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.9-1
|
|
|
|
- new upstream release 0.10.9
|
|
|
|
|
2013-05-29 09:25:06 +00:00
|
|
|
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-2
|
|
|
|
- fix License tag (RHBZ#968226)
|
|
|
|
|
2013-05-29 03:56:10 +00:00
|
|
|
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-1
|
|
|
|
- new upstream release 0.10.8
|
|
|
|
|
2013-05-29 02:49:12 +00:00
|
|
|
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.7-1
|
|
|
|
- new upstream release 0.10.7
|
|
|
|
- drop upstreamed patch from 0.10.5-2
|
|
|
|
|
2013-05-13 21:47:29 +00:00
|
|
|
* Mon May 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-3
|
|
|
|
- don't sed the soname in the spec anymore; the patch takes care of it now
|
2013-05-13 21:49:22 +00:00
|
|
|
- drop leftover global define for git revision
|
2013-05-13 21:47:29 +00:00
|
|
|
|
2013-05-13 11:58:52 +00:00
|
|
|
* Mon May 13 2013 Stephen Gallagher <sgallagh@redhat.com> - 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
|
|
|
|
|
2013-04-24 15:46:01 +00:00
|
|
|
* Wed Apr 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-1
|
|
|
|
- new upstream release 0.10.5
|
|
|
|
|
2013-04-15 02:00:33 +00:00
|
|
|
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.4-1
|
|
|
|
- new upstream release 0.10.4
|
2013-04-15 02:26:26 +00:00
|
|
|
- drop upstreamed patch
|
2013-04-15 02:00:33 +00:00
|
|
|
|
2013-04-04 01:25:41 +00:00
|
|
|
* Thu Apr 04 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.3-2
|
|
|
|
- backport patch that fixes FTBFS in nodejs-0.10.3
|
|
|
|
|
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
|