Blame SPECS/libuv.spec

5fd789
%{?scl:%scl_package libuv}
5fd789
%{!?scl:%global pkg_name %{name}}
5fd789
5fd789
%global git_snapshot 5462dab
5fd789
5fd789
#we only need major.minor in the SONAME in the stable (even numbered) series
5fd789
#this should be changed to %%{version} in unstable (odd numbered) releases
5fd789
%global sover 0.10
5fd789
5fd789
Name: %{?scl_prefix}libuv
5fd789
Epoch:   1
9802a0
Version: 0.10.30
9802a0
Release: 1%{?dist}
5fd789
Summary: Platform layer for node.js
5fd789
5fd789
Group: Development/Tools
5fd789
# the licensing breakdown is described in detail in the LICENSE file
5fd789
License: MIT and BSD and ISC
5fd789
URL: http://nodejs.org/
5fd789
Source0: http://libuv.org/dist/v%{version}/%{pkg_name}-v%{version}.tar.gz
5fd789
Source2: libuv.pc.in
5fd789
5fd789
%{?scl:Requires: %{scl}-runtime}
5fd789
%{?scl:BuildRequires: %{scl}-runtime}
5fd789
BuildRequires: v8314-gyp
5fd789
Requires(post): /sbin/ldconfig
5fd789
Requires(postun): /sbin/ldconfig
5fd789
5fd789
# Bundling exception request:
5fd789
# https://fedorahosted.org/fpc/ticket/231
5fd789
Provides: %{?scl_prefix}bundled(libev) = 4.04
5fd789
5fd789
%description
5fd789
libuv is a new platform layer for Node. Its purpose is to abstract IOCP on
5fd789
Windows and libev on Unix systems. We intend to eventually contain all platform
5fd789
differences in this library.
5fd789
5fd789
%package devel
5fd789
Summary: Development libraries for libuv
5fd789
Group: Development/Tools
5fd789
Requires: %{name} = %{epoch}:%{version}-%{release}
5fd789
Requires: pkgconfig
5fd789
Requires(post): /sbin/ldconfig
5fd789
Requires(postun): /sbin/ldconfig
5fd789
5fd789
%description devel
5fd789
Development libraries for libuv
5fd789
5fd789
%prep
5fd789
%setup -q -n %{pkg_name}-v%{version}
5fd789
5fd789
%build
5fd789
%{?scl:scl enable %{scl} "}
5fd789
export CFLAGS='%{optflags}'
5fd789
export CXXFLAGS='%{optflags}'
5fd789
%{__python} gyp_uv.py -Dcomponent=shared_library -Dlibrary=shared_library
5fd789
5fd789
make %{?_smp_mflags} V=1 -C out BUILDTYPE=Release
5fd789
%{?scl: "}
5fd789
5fd789
%install
5fd789
# Copy the shared lib into the libdir
5fd789
mkdir -p %{buildroot}/%{_libdir}/
5fd789
cp out/Release/obj.target/libuv.so %{buildroot}/%{_libdir}/libuv.so.%{sover}
5fd789
pushd %{buildroot}/%{_libdir}/
5fd789
ln -s libuv.so.%{sover} libuv.so.0
5fd789
ln -s libuv.so.%{sover} libuv.so
5fd789
popd
5fd789
5fd789
# Copy the headers into the include path
5fd789
mkdir -p %{buildroot}/%{_includedir}/uv-private
5fd789
5fd789
cp include/uv.h \
5fd789
   %{buildroot}/%{_includedir}
5fd789
5fd789
cp \
5fd789
   include/uv-private/ngx-queue.h \
5fd789
   include/uv-private/tree.h \
5fd789
   include/uv-private/uv-linux.h \
5fd789
   include/uv-private/uv-unix.h \
5fd789
   %{buildroot}/%{_includedir}/uv-private
5fd789
5fd789
# Create the pkgconfig file
5fd789
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
5fd789
5fd789
sed -e "s#@prefix@#%{_prefix}#g" \
5fd789
    -e "s#@exec_prefix@#%{_exec_prefix}#g" \
5fd789
    -e "s#@libdir@#%{_libdir}#g" \
5fd789
    -e "s#@includedir@#%{_includedir}#g" \
5fd789
    -e "s#@version@#%{version}.git%{git_snapshot}#g" \
5fd789
    %SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
5fd789
5fd789
%check
5fd789
# Tests are currently disabled because some require network access
5fd789
# Working with upstream to split these out
5fd789
#./run-tests
5fd789
#./run-benchmarks
5fd789
5fd789
%post -p /sbin/ldconfig
5fd789
%postun -p /sbin/ldconfig
5fd789
5fd789
%files
5fd789
%doc README.md AUTHORS LICENSE
5fd789
%{_libdir}/libuv.so.*
5fd789
5fd789
%files devel
5fd789
%doc README.md AUTHORS LICENSE
5fd789
%{_libdir}/libuv.so
5fd789
%{_libdir}/pkgconfig/libuv.pc
5fd789
%{_includedir}/uv.h
5fd789
%{_includedir}/uv-private
5fd789
5fd789
%changelog
9802a0
* Wed Jan 07 2015 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.30-1
9802a0
- new upstream release 0.10.30
9802a0
5fd789
* Fri Jan 31 2014 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.23-2
5fd789
- new upstream release
5fd789
5fd789
* Thu Dec 05 2013 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.19-1.1
5fd789
- rebuilt with gyp from v8collection
5fd789
- build requires scl-runtime
5fd789
5fd789
* Tue Nov 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.19-1
5fd789
- new upstream release 0.10.19
5fd789
  https://github.com/joyent/libuv/blob/v0.10.19/ChangeLog
5fd789
5fd789
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.18-1
5fd789
- new upstream release 0.10.18
5fd789
  https://github.com/joyent/libuv/blob/v0.10.18/ChangeLog
5fd789
5fd789
* Wed Sep 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.17-1
5fd789
- new upstream release 0.10.17
5fd789
  https://github.com/joyent/libuv/blob/v0.10.17/ChangeLog
5fd789
5fd789
* Fri Sep 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.15-1
5fd789
- new upstream release 0.10.15
5fd789
  https://github.com/joyent/libuv/blob/v0.10.15/ChangeLog
5fd789
5fd789
* Tue Aug 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.14-1
5fd789
- new upstream release 0.10.14
5fd789
  https://github.com/joyent/libuv/blob/v0.10.14/ChangeLog
5fd789
5fd789
* Thu Jul 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.13-1
5fd789
- new upstream release 0.10.13
5fd789
  https://github.com/joyent/libuv/blob/v0.10.13/ChangeLog
5fd789
5fd789
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.12-1
5fd789
- new upstream release 0.10.12
5fd789
5fd789
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.11-1
5fd789
- new upstream release 0.10.11
5fd789
5fd789
* Fri May 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.9-1
5fd789
- new upstream release 0.10.9
5fd789
5fd789
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-2
5fd789
- fix License tag (RHBZ#968226)
5fd789
5fd789
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-1
5fd789
- new upstream release 0.10.8
5fd789
5fd789
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.7-1
5fd789
- new upstream release 0.10.7
5fd789
- drop upstreamed patch from 0.10.5-2
5fd789
5fd789
* Wed May 15 2013 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.5-1.1
5fd789
- updated to upstream stable version
5fd789
5fd789
* Mon May 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-3
5fd789
- don't sed the soname in the spec anymore; the patch takes care of it now
5fd789
- drop leftover global define for git revision
5fd789
5fd789
* Mon May 13 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.5-2
5fd789
- Add patch to properly report soname version information
5fd789
  This patch will be included upstream in 0.10.6 and can be dropped then.
5fd789
- Remove Bundles(ev) as this has not been true since 0.9.5
5fd789
5fd789
* Wed Apr 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-1
5fd789
- new upstream release 0.10.5
5fd789
5fd789
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.4-1
5fd789
- new upstream release 0.10.4
5fd789
- drop upstreamed patch
5fd789
5fd789
* Fri Apr 05 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:0.10.3-3
5fd789
- Add support for software collections
5fd789
5fd789
* Thu Apr 04 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.3-2
5fd789
- backport patch that fixes FTBFS in nodejs-0.10.3
5fd789
5fd789
* Sun Mar 31 2013 tchollingsworth@gmail.com - 1:0.10.3-1
5fd789
- rebase to 0.10.3
5fd789
- upstream now does proper releases
5fd789
5fd789
* Tue Mar 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.0-2.git5462dab
5fd789
- drop the patchlevel from the SONAME since libuv will retain binary
5fd789
  compatibility for the life of the 0.10.x series
5fd789
5fd789
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.0-1.git5462dab
5fd789
- Upgrade to 0.10.0 release to match stable Node.js release
5fd789
5fd789
* Thu Feb 28 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.9.4-4.gitdc559a5
5fd789
- Bump epoch for the version downgrade
5fd789
- The 0.9.7 version hit the Rawhide repo due to the mass rebuild, we need a
5fd789
  clean upgrade path.
5fd789
5fd789
* Thu Feb 21 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.4-3.gitdc559a5
5fd789
- Revert to version 0.9.4 (since 0.9.7 is breaking builds)
5fd789
5fd789
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-2.git4ba03dd
5fd789
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5fd789
5fd789
* Tue Jan 22 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.7-1.git4ba03dd
5fd789
- Bump to version included with Node.js 0.9.7
5fd789
5fd789
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-0.1.gitdc559a5
5fd789
- bump to version included with node 0.9.4
5fd789
- drop upstreamed patch
5fd789
- respect optflags
5fd789
5fd789
* Thu Nov 15 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.3.git09b0222
5fd789
- Add patch to export uv_inet_*
5fd789
5fd789
* Wed Nov 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.2.git09b0222
5fd789
- Fixes from package review
5fd789
- Removed doubly-listed include directory
5fd789
- Update git tarball to the latest upstream code
5fd789
5fd789
* Thu Nov 08 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.1.gitd56434a
5fd789
- Initial package