T.C. Hollingsworth 4d9046
#we only need major.minor in the SONAME in the stable (even numbered) series
T.C. Hollingsworth 4d9046
#this should be changed to %%{version} in unstable (odd numbered) releases
T.C. Hollingsworth 4d9046
%global sover 0.10
T.C. Hollingsworth 4d9046
fb9e0e
Name: libuv
42b49f
Epoch:   1
T.C. Hollingsworth 672b2a
Version: 0.10.29
T.C. Hollingsworth 3f9f09
Release: 1%{?dist}
fb9e0e
Summary: Platform layer for node.js
fb9e0e
fb9e0e
Group: Development/Tools
T.C. Hollingsworth c9de47
# the licensing breakdown is described in detail in the LICENSE file
T.C. Hollingsworth c9de47
License: MIT and BSD and ISC
fb9e0e
URL: http://nodejs.org/
T.C. Hollingsworth 88d29d
Source0: http://libuv.org/dist/v%{version}/%{name}-v%{version}.tar.gz
fb9e0e
Source2: libuv.pc.in
fb9e0e
fb9e0e
BuildRequires: gyp
fb9e0e
Requires(post): /sbin/ldconfig
fb9e0e
Requires(postun): /sbin/ldconfig
fb9e0e
fb9e0e
%description
fb9e0e
libuv is a new platform layer for Node. Its purpose is to abstract IOCP on
fb9e0e
Windows and libev on Unix systems. We intend to eventually contain all platform
fb9e0e
differences in this library.
fb9e0e
fb9e0e
%package devel
fb9e0e
Summary: Development libraries for libuv
fb9e0e
Group: Development/Tools
42b49f
Requires: %{name} = %{epoch}:%{version}-%{release}
fb9e0e
Requires: pkgconfig
fb9e0e
Requires(post): /sbin/ldconfig
fb9e0e
Requires(postun): /sbin/ldconfig
fb9e0e
fb9e0e
%description devel
fb9e0e
Development libraries for libuv
fb9e0e
T.C. Hollingsworth d076c1
%package static
T.C. Hollingsworth d076c1
Summary: Platform layer for node.js - static library
T.C. Hollingsworth d076c1
Group:   Development/Libraries
T.C. Hollingsworth d076c1
Requires:   %{name}-devel = %{epoch}:%{version}-%{release}
T.C. Hollingsworth d076c1
T.C. Hollingsworth d076c1
%description static
T.C. Hollingsworth d076c1
Static library (.a) version of libuv.
T.C. Hollingsworth d076c1
fb9e0e
%prep
T.C. Hollingsworth 88d29d
%setup -q -n %{name}-v%{version}
fb9e0e
fb9e0e
%build
T.C. Hollingsworth e53c00
export CFLAGS='%{optflags}'
T.C. Hollingsworth e53c00
export CXXFLAGS='%{optflags}'
T.C. Hollingsworth 0e365b
%{__python} gyp_uv.py -Dcomponent=shared_library -Dlibrary=shared_library
fb9e0e
fb9e0e
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
fb9e0e
T.C. Hollingsworth d076c1
mv out out-shared
T.C. Hollingsworth d076c1
T.C. Hollingsworth d076c1
# build a static version for rust
T.C. Hollingsworth d076c1
%{__python} gyp_uv.py
T.C. Hollingsworth d076c1
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
T.C. Hollingsworth d076c1
mv out out-static
T.C. Hollingsworth d076c1
fb9e0e
%install
fb9e0e
# Copy the shared lib into the libdir
fb9e0e
mkdir -p %{buildroot}/%{_libdir}/
T.C. Hollingsworth d076c1
cp out-shared/Release/obj.target/libuv.so %{buildroot}/%{_libdir}/libuv.so.%{sover}
fb9e0e
pushd %{buildroot}/%{_libdir}/
T.C. Hollingsworth 4d9046
ln -s libuv.so.%{sover} libuv.so.0
T.C. Hollingsworth 4d9046
ln -s libuv.so.%{sover} libuv.so
fb9e0e
popd
fb9e0e
fb9e0e
# Copy the headers into the include path
fb9e0e
mkdir -p %{buildroot}/%{_includedir}/uv-private
fb9e0e
T.C. Hollingsworth 88d29d
cp include/uv.h \
fb9e0e
   %{buildroot}/%{_includedir}
fb9e0e
T.C. Hollingsworth e53c00
cp \
T.C. Hollingsworth 88d29d
   include/uv-private/ngx-queue.h \
T.C. Hollingsworth 88d29d
   include/uv-private/tree.h \
T.C. Hollingsworth 88d29d
   include/uv-private/uv-linux.h \
T.C. Hollingsworth 88d29d
   include/uv-private/uv-unix.h \
fb9e0e
   %{buildroot}/%{_includedir}/uv-private
fb9e0e
fb9e0e
# Create the pkgconfig file
fb9e0e
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
fb9e0e
fb9e0e
sed -e "s#@prefix@#%{_prefix}#g" \
fb9e0e
    -e "s#@exec_prefix@#%{_exec_prefix}#g" \
fb9e0e
    -e "s#@libdir@#%{_libdir}#g" \
fb9e0e
    -e "s#@includedir@#%{_includedir}#g" \
fb9e0e
    -e "s#@version@#%{version}.git%{git_snapshot}#g" \
fb9e0e
    %SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
fb9e0e
T.C. Hollingsworth d076c1
#install the static version
T.C. Hollingsworth d076c1
cp out-static/Release/obj.target/libuv.a %{buildroot}/%{_libdir}
T.C. Hollingsworth d076c1
fb9e0e
%check
fb9e0e
# Tests are currently disabled because some require network access
fb9e0e
# Working with upstream to split these out
fb9e0e
#./run-tests
fb9e0e
#./run-benchmarks
fb9e0e
fb9e0e
%post -p /sbin/ldconfig
fb9e0e
%postun -p /sbin/ldconfig
fb9e0e
fb9e0e
%files
fb9e0e
%doc README.md AUTHORS LICENSE
fb9e0e
%{_libdir}/libuv.so.*
fb9e0e
fb9e0e
%files devel
fb9e0e
%doc README.md AUTHORS LICENSE
fb9e0e
%{_libdir}/libuv.so
fb9e0e
%{_libdir}/pkgconfig/libuv.pc
fb9e0e
%{_includedir}/uv.h
fb9e0e
%{_includedir}/uv-private
fb9e0e
T.C. Hollingsworth d076c1
%files static
T.C. Hollingsworth d076c1
%{_libdir}/libuv.a
T.C. Hollingsworth d076c1
fb9e0e
%changelog
T.C. Hollingsworth 672b2a
* Wed Nov 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.29-1
T.C. Hollingsworth 672b2a
- new upstream release 0.10.29
T.C. Hollingsworth 672b2a
  https://github.com/joyent/libuv/blob/v0.10.29/ChangeLog
T.C. Hollingsworth 672b2a
T.C. Hollingsworth 3f9f09
* Fri Aug 01 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.28-1
T.C. Hollingsworth 3f9f09
- new upstream release 0.10.28
T.C. Hollingsworth 3f9f09
  https://github.com/joyent/libuv/blob/v0.10.28/ChangeLog
T.C. Hollingsworth 3f9f09
T.C. Hollingsworth d076c1
* Thu Jul 03 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-3
T.C. Hollingsworth d076c1
- build static library for rust (RHBZ#1115975)
T.C. Hollingsworth d076c1
ca465d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.27-2
ca465d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ca465d
T.C. Hollingsworth 33fa57
* Fri May 02 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-1
T.C. Hollingsworth 33fa57
- new upstream release 0.10.27
T.C. Hollingsworth 33fa57
  https://github.com/joyent/libuv/blob/v0.10.27/ChangeLog
T.C. Hollingsworth 33fa57
T.C. Hollingsworth b85151
* Thu Feb 20 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.25-1
T.C. Hollingsworth b85151
- new upstream release 0.10.25
T.C. Hollingsworth b85151
  https://github.com/joyent/libuv/blob/v0.10.25/ChangeLog
T.C. Hollingsworth b85151
T.C. Hollingsworth 6d0637
* Mon Jan 27 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.23-1
T.C. Hollingsworth 6d0637
- new upstream release 0.10.23
T.C. Hollingsworth 6d0637
  https://github.com/joyent/libuv/blob/v0.10.23/ChangeLog
T.C. Hollingsworth 6d0637
T.C. Hollingsworth 86e6c7
* Thu Dec 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.21-1
T.C. Hollingsworth 86e6c7
- new upstream release 0.10.21
T.C. Hollingsworth 86e6c7
  https://github.com/joyent/libuv/blob/v0.10.21/ChangeLog
T.C. Hollingsworth 86e6c7
T.C. Hollingsworth 7a7797
* Thu Dec 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.20-1
T.C. Hollingsworth 7a7797
- new upstream release 0.10.20
T.C. Hollingsworth 7a7797
  https://github.com/joyent/libuv/blob/v0.10.20/ChangeLog
T.C. Hollingsworth 7a7797
T.C. Hollingsworth bd52e4
* Tue Nov 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.19-1
T.C. Hollingsworth bd52e4
- new upstream release 0.10.19
T.C. Hollingsworth bd52e4
  https://github.com/joyent/libuv/blob/v0.10.19/ChangeLog
T.C. Hollingsworth bd52e4
T.C. Hollingsworth e7939f
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.18-1
T.C. Hollingsworth e7939f
- new upstream release 0.10.18
T.C. Hollingsworth e7939f
  https://github.com/joyent/libuv/blob/v0.10.18/ChangeLog
T.C. Hollingsworth e7939f
T.C. Hollingsworth 8c4640
* Wed Sep 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.17-1
T.C. Hollingsworth 8c4640
- new upstream release 0.10.17
T.C. Hollingsworth 8c4640
  https://github.com/joyent/libuv/blob/v0.10.17/ChangeLog
T.C. Hollingsworth 8c4640
T.C. Hollingsworth c3f343
* Fri Sep 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.15-1
T.C. Hollingsworth c3f343
- new upstream release 0.10.15
T.C. Hollingsworth c3f343
  https://github.com/joyent/libuv/blob/v0.10.15/ChangeLog
T.C. Hollingsworth c3f343
T.C. Hollingsworth ce5534
* Tue Aug 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.14-1
T.C. Hollingsworth ce5534
- new upstream release 0.10.14
T.C. Hollingsworth ce5534
  https://github.com/joyent/libuv/blob/v0.10.14/ChangeLog
T.C. Hollingsworth ce5534
T.C. Hollingsworth 38922a
* Thu Jul 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.13-1
T.C. Hollingsworth 38922a
- new upstream release 0.10.13
T.C. Hollingsworth 38922a
  https://github.com/joyent/libuv/blob/v0.10.13/ChangeLog
T.C. Hollingsworth 38922a
T.C. Hollingsworth 346591
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.12-1
T.C. Hollingsworth 346591
- new upstream release 0.10.12
T.C. Hollingsworth 346591
T.C. Hollingsworth 9c0c67
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.11-1
T.C. Hollingsworth 9c0c67
- new upstream release 0.10.11
T.C. Hollingsworth 9c0c67
T.C. Hollingsworth 1de547
* Fri May 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.9-1
T.C. Hollingsworth 1de547
- new upstream release 0.10.9
T.C. Hollingsworth 1de547
T.C. Hollingsworth c9de47
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-2
T.C. Hollingsworth c9de47
- fix License tag (RHBZ#968226)
T.C. Hollingsworth c9de47
T.C. Hollingsworth 0ffe6d
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-1
T.C. Hollingsworth 0ffe6d
- new upstream release 0.10.8
T.C. Hollingsworth 0ffe6d
T.C. Hollingsworth 7c1870
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.7-1
T.C. Hollingsworth 7c1870
- new upstream release 0.10.7
T.C. Hollingsworth 7c1870
- drop upstreamed patch from 0.10.5-2
T.C. Hollingsworth 7c1870
T.C. Hollingsworth ed8c20
* Mon May 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-3
T.C. Hollingsworth ed8c20
- don't sed the soname in the spec anymore; the patch takes care of it now
T.C. Hollingsworth 4ed795
- drop leftover global define for git revision
T.C. Hollingsworth ed8c20
4a087b
* Mon May 13 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.5-2
4a087b
- Add patch to properly report soname version information
4a087b
  This patch will be included upstream in 0.10.6 and can be dropped then.
4a087b
- Remove Bundles(ev) as this has not been true since 0.9.5
4a087b
T.C. Hollingsworth 6ba4fc
* Wed Apr 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-1
T.C. Hollingsworth 6ba4fc
- new upstream release 0.10.5
T.C. Hollingsworth 6ba4fc
T.C. Hollingsworth 442424
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.4-1
T.C. Hollingsworth 442424
- new upstream release 0.10.4
T.C. Hollingsworth 6c856f
- drop upstreamed patch
T.C. Hollingsworth 442424
T.C. Hollingsworth 5245e1
* Thu Apr 04 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.3-2
T.C. Hollingsworth 5245e1
- backport patch that fixes FTBFS in nodejs-0.10.3
T.C. Hollingsworth 5245e1
T.C. Hollingsworth 88d29d
* Sun Mar 31 2013 tchollingsworth@gmail.com - 1:0.10.3-1
T.C. Hollingsworth 88d29d
- rebase to 0.10.3
T.C. Hollingsworth 88d29d
- upstream now does proper releases
T.C. Hollingsworth 88d29d
T.C. Hollingsworth 4d9046
* Tue Mar 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.0-2.git5462dab
T.C. Hollingsworth 4d9046
- drop the patchlevel from the SONAME since libuv will retain binary
T.C. Hollingsworth 4d9046
  compatibility for the life of the 0.10.x series
T.C. Hollingsworth 4d9046
719516
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.0-1.git5462dab
719516
- Upgrade to 0.10.0 release to match stable Node.js release
719516
42b49f
* Thu Feb 28 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.9.4-4.gitdc559a5
42b49f
- Bump epoch for the version downgrade
42b49f
- The 0.9.7 version hit the Rawhide repo due to the mass rebuild, we need a
42b49f
  clean upgrade path.
42b49f
52ab26
* Thu Feb 21 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.4-3.gitdc559a5
52ab26
- Revert to version 0.9.4 (since 0.9.7 is breaking builds)
52ab26
8c2a76
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-2.git4ba03dd
8c2a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8c2a76
69c352
* Tue Jan 22 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.7-1.git4ba03dd
69c352
- Bump to version included with Node.js 0.9.7
69c352
T.C. Hollingsworth e53c00
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-0.1.gitdc559a5
T.C. Hollingsworth e53c00
- bump to version included with node 0.9.4
T.C. Hollingsworth e53c00
- drop upstreamed patch
T.C. Hollingsworth e53c00
- respect optflags
T.C. Hollingsworth e53c00
e63532
* Thu Nov 15 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.3.git09b0222
e63532
- Add patch to export uv_inet_*
e63532
fb9e0e
* Wed Nov 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.2.git09b0222
fb9e0e
- Fixes from package review
fb9e0e
- Removed doubly-listed include directory
fb9e0e
- Update git tarball to the latest upstream code
fb9e0e
fb9e0e
* Thu Nov 08 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.1.gitd56434a
fb9e0e
- Initial package