Blame SPECS/libuv.spec

8a4b0d
%{?scl:%scl_package libuv}
8a4b0d
%{!?scl:%global pkg_name %{name}}
8a4b0d
%global somajor 1
8a4b0d
8a4b0d
Name: %{?scl_prefix}libuv
8a4b0d
Epoch:   1
8a4b0d
Version: 1.7.5
8a4b0d
Release: 8%{?dist}
8a4b0d
Summary: Platform layer for node.js
8a4b0d
8a4b0d
Group: System Environment/Libraries
8a4b0d
# the licensing breakdown is described in detail in the LICENSE file
8a4b0d
License: MIT and BSD and ISC
8a4b0d
8a4b0d
%{?scl:Requires: %{scl}-runtime}
8a4b0d
%{?scl:BuildRequires: %{scl}-runtime}
8a4b0d
8a4b0d
URL: http://libuv.org/
8a4b0d
Source0: http://libuv.org/dist/v%{version}/%{pkg_name}-v%{version}.tar.gz
8a4b0d
Source2: libuv.pc.in
8a4b0d
Patch0:  soname.patch
8a4b0d
8a4b0d
BuildRequires: %{?scl_prefix}gyp
8a4b0d
8a4b0d
Requires(post): /sbin/ldconfig
8a4b0d
Requires(postun): /sbin/ldconfig
8a4b0d
8a4b0d
# Bundling exception request:
8a4b0d
# https://fedorahosted.org/fpc/ticket/231
8a4b0d
Provides: %{?scl_prefix}bundled(libev) = 4.04
8a4b0d
8a4b0d
%description
8a4b0d
libuv is a new platform layer for Node. Its purpose is to abstract IOCP on
8a4b0d
Windows and libev on Unix systems. We intend to eventually contain all platform
8a4b0d
differences in this library.
8a4b0d
8a4b0d
%package devel
8a4b0d
Summary: Development libraries for libuv
8a4b0d
Group: Development/Libraries
8a4b0d
Requires: %{?scl_prefix}%{pkg_name}%{?_isa} = %{epoch}:%{version}-%{release}
8a4b0d
Requires: pkgconfig
8a4b0d
Requires(post): /sbin/ldconfig
8a4b0d
Requires(postun): /sbin/ldconfig
8a4b0d
8a4b0d
%description devel
8a4b0d
Development libraries for libuv
8a4b0d
8a4b0d
%prep
8a4b0d
%setup -q -n %{pkg_name}-v%{version}
8a4b0d
%patch0 -p0
8a4b0d
8a4b0d
%build
8a4b0d
8a4b0d
%{?scl:scl enable %{scl} "}
8a4b0d
export CFLAGS='%{optflags}'
8a4b0d
export CXXFLAGS='%{optflags}'
8a4b0d
./gyp_uv.py -f make -Dcomponent=shared_library -Duv_library=shared_library -Dsoname_version=%{?scl:%{scl_name}-}%{version} --depth=`pwd`
8a4b0d
BUILDTYPE=Release make %{?_smp_mflags} -C out 
8a4b0d
%{?scl: "}
8a4b0d
8a4b0d
%install
8a4b0d
#%{?scl:scl enable %{scl} - << \EOF}
8a4b0d
#make DESTDIR=%{buildroot} install
8a4b0d
#%{?scl:EOF}
8a4b0d
#rm -f %{buildroot}%{_libdir}/libuv-nodejs.la
8a4b0d
8a4b0d
rm -rf %{buildroot}
8a4b0d
8a4b0d
install -d %{buildroot}%{_includedir}
8a4b0d
install -d %{buildroot}%{_libdir}
8a4b0d
8a4b0d
install -pm644 include/uv.h %{buildroot}%{_includedir}
8a4b0d
8a4b0d
install out/Release/lib.target/libuv.so.%{?scl:%{scl_name}-}%{version} %{buildroot}%{_libdir}/libuv.so.%{?scl:%{scl_name}-}%{version}
8a4b0d
ln -sf libuv.so.%{?scl:%{scl_name}-}%{version} %{buildroot}%{_libdir}/libuv.so.%{somajor}
8a4b0d
ln -sf libuv.so.%{?scl:%{scl_name}-}%{version} %{buildroot}%{_libdir}/libuv.so
8a4b0d
8a4b0d
# Copy the headers into the include path
8a4b0d
mkdir -p %{buildroot}/%{_includedir}/uv-private
8a4b0d
8a4b0d
cp include/uv.h \
8a4b0d
   %{buildroot}/%{_includedir}
8a4b0d
8a4b0d
cp include/tree.h \
8a4b0d
   %{buildroot}/%{_includedir}/uv-private
8a4b0d
cp \
8a4b0d
   include/uv-linux.h \
8a4b0d
   include/uv-unix.h \
8a4b0d
   include/uv-errno.h \
8a4b0d
   include/uv-version.h \
8a4b0d
   include/uv-threadpool.h \
8a4b0d
   %{buildroot}/%{_includedir}/
8a4b0d
8a4b0d
# Create the pkgconfig file
8a4b0d
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
8a4b0d
8a4b0d
sed -e "s#@prefix@#%{_prefix}#g" \
8a4b0d
    -e "s#@exec_prefix@#%{_exec_prefix}#g" \
8a4b0d
    -e "s#@libdir@#%{_libdir}#g" \
8a4b0d
    -e "s#@includedir@#%{_includedir}#g" \
8a4b0d
    -e "s#@version@#%{version}#g" \
8a4b0d
    %SOURCE2 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
8a4b0d
8a4b0d
%check
8a4b0d
# Tests are currently disabled because some require network access
8a4b0d
# Working with upstream to split these out
8a4b0d
#./out/Release/run-tests
8a4b0d
#./out/Release/run-benchmarks
8a4b0d
8a4b0d
%post -p /sbin/ldconfig
8a4b0d
%postun -p /sbin/ldconfig
8a4b0d
8a4b0d
%files
8a4b0d
%doc README.md AUTHORS LICENSE
8a4b0d
%{_libdir}/libuv.so.*
8a4b0d
8a4b0d
%files devel
8a4b0d
%doc README.md AUTHORS LICENSE
8a4b0d
%{_libdir}/libuv.so
8a4b0d
%{_libdir}/pkgconfig/libuv.pc
8a4b0d
%{_includedir}/uv*.h
8a4b0d
%{_includedir}/uv-private
8a4b0d
8a4b0d
%changelog
8a4b0d
* Tue Apr 05 2016 Tomas Hrcka <thrcka@redhat.com> - 1:1.7.5-8
8a4b0d
- Build .so with collection suffix in soname
8a4b0d
- Build using gyp
8a4b0d
8a4b0d
* Wed Mar 30 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:1.7.5-4
8a4b0d
- Prefix name with -nodejs
8a4b0d
8a4b0d
* Wed Feb 10 2016 Tomas Hrcka <thrcka@redhat.com> - 1:1.7.5-4
8a4b0d
- New upstream release 
8a4b0d
8a4b0d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.7.5-2
8a4b0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8a4b0d
8a4b0d
* Tue Dec 01 2015 Stephen Gallagher <sgallagh@redhat.com> 1.7.5-1
8a4b0d
- Rebase to 1.7.5 to support Node.js 4.2
8a4b0d
8a4b0d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.0-2
8a4b0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8a4b0d
8a4b0d
* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:1.4.0-1
8a4b0d
- rebase to 1.4.0
8a4b0d
8a4b0d
* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.33-2
8a4b0d
- add missing %%{_?isa} to devel requires of main package
8a4b0d
- fix some issues with the pkgconfig file and Group reported by Michael Schwendt
8a4b0d
8a4b0d
* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.33-1
8a4b0d
- new upstream release 0.10.33
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.33/ChangeLog
8a4b0d
- update URL to point to the new libuv.org
8a4b0d
8a4b0d
* Wed Jan 07 2015 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.30-1
8a4b0d
- new upstream release 0.10.30
8a4b0d
8a4b0d
* Wed Nov 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.29-1
8a4b0d
- new upstream release 0.10.29
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.29/ChangeLog
8a4b0d
8a4b0d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.28-2
8a4b0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8a4b0d
8a4b0d
* Fri Aug 01 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.28-1
8a4b0d
- new upstream release 0.10.28
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.28/ChangeLog
8a4b0d
8a4b0d
* Thu Jul 03 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-3
8a4b0d
- build static library for rust (RHBZ#1115975)
8a4b0d
8a4b0d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.27-2
8a4b0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8a4b0d
8a4b0d
* Fri May 02 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.27-1
8a4b0d
- new upstream release 0.10.27
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.27/ChangeLog
8a4b0d
8a4b0d
* Thu Feb 20 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.25-1
8a4b0d
- new upstream release 0.10.25
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.25/ChangeLog
8a4b0d
8a4b0d
* Fri Jan 31 2014 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.23-2
8a4b0d
- new upstream release
8a4b0d
8a4b0d
* Mon Jan 27 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.23-1
8a4b0d
- new upstream release 0.10.23
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.23/ChangeLog
8a4b0d
8a4b0d
* Thu Dec 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.21-1
8a4b0d
- new upstream release 0.10.21
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.21/ChangeLog
8a4b0d
8a4b0d
* Thu Dec 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.20-1
8a4b0d
- new upstream release 0.10.20
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.20/ChangeLog
8a4b0d
8a4b0d
* Thu Dec 05 2013 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.19-1.1
8a4b0d
- rebuilt with gyp from v8collection
8a4b0d
- build requires scl-runtime
8a4b0d
8a4b0d
* Tue Nov 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.19-1
8a4b0d
- new upstream release 0.10.19
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.19/ChangeLog
8a4b0d
8a4b0d
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.18-1
8a4b0d
- new upstream release 0.10.18
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.18/ChangeLog
8a4b0d
8a4b0d
* Wed Sep 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.17-1
8a4b0d
- new upstream release 0.10.17
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.17/ChangeLog
8a4b0d
8a4b0d
* Fri Sep 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.15-1
8a4b0d
- new upstream release 0.10.15
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.15/ChangeLog
8a4b0d
8a4b0d
* Tue Aug 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.14-1
8a4b0d
- new upstream release 0.10.14
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.14/ChangeLog
8a4b0d
8a4b0d
* Thu Jul 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.13-1
8a4b0d
- new upstream release 0.10.13
8a4b0d
  https://github.com/joyent/libuv/blob/v0.10.13/ChangeLog
8a4b0d
8a4b0d
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.12-1
8a4b0d
- new upstream release 0.10.12
8a4b0d
8a4b0d
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.11-1
8a4b0d
- new upstream release 0.10.11
8a4b0d
8a4b0d
* Fri May 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.9-1
8a4b0d
- new upstream release 0.10.9
8a4b0d
8a4b0d
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-2
8a4b0d
- fix License tag (RHBZ#968226)
8a4b0d
8a4b0d
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.8-1
8a4b0d
- new upstream release 0.10.8
8a4b0d
8a4b0d
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.7-1
8a4b0d
- new upstream release 0.10.7
8a4b0d
- drop upstreamed patch from 0.10.5-2
8a4b0d
8a4b0d
* Wed May 15 2013 Tomas Hrcka <thrcka@redhat.com> - 1:0.10.5-1.1
8a4b0d
- updated to upstream stable version
8a4b0d
8a4b0d
* Mon May 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-3
8a4b0d
- don't sed the soname in the spec anymore; the patch takes care of it now
8a4b0d
- drop leftover global define for git revision
8a4b0d
8a4b0d
* Mon May 13 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.5-2
8a4b0d
- Add patch to properly report soname version information
8a4b0d
  This patch will be included upstream in 0.10.6 and can be dropped then.
8a4b0d
- Remove Bundles(ev) as this has not been true since 0.9.5
8a4b0d
8a4b0d
* Wed Apr 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.5-1
8a4b0d
- new upstream release 0.10.5
8a4b0d
8a4b0d
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.4-1
8a4b0d
- new upstream release 0.10.4
8a4b0d
- drop upstreamed patch
8a4b0d
8a4b0d
* Fri Apr 05 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:0.10.3-3
8a4b0d
- Add support for software collections
8a4b0d
8a4b0d
* Thu Apr 04 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.3-2
8a4b0d
- backport patch that fixes FTBFS in nodejs-0.10.3
8a4b0d
8a4b0d
* Sun Mar 31 2013 tchollingsworth@gmail.com - 1:0.10.3-1
8a4b0d
- rebase to 0.10.3
8a4b0d
- upstream now does proper releases
8a4b0d
8a4b0d
* Tue Mar 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1:0.10.0-2.git5462dab
8a4b0d
- drop the patchlevel from the SONAME since libuv will retain binary
8a4b0d
  compatibility for the life of the 0.10.x series
8a4b0d
8a4b0d
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.10.0-1.git5462dab
8a4b0d
- Upgrade to 0.10.0 release to match stable Node.js release
8a4b0d
8a4b0d
* Thu Feb 28 2013 Stephen Gallagher <sgallagh@redhat.com> - 1:0.9.4-4.gitdc559a5
8a4b0d
- Bump epoch for the version downgrade
8a4b0d
- The 0.9.7 version hit the Rawhide repo due to the mass rebuild, we need a
8a4b0d
  clean upgrade path.
8a4b0d
8a4b0d
* Thu Feb 21 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.4-3.gitdc559a5
8a4b0d
- Revert to version 0.9.4 (since 0.9.7 is breaking builds)
8a4b0d
8a4b0d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-2.git4ba03dd
8a4b0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8a4b0d
8a4b0d
* Tue Jan 22 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.7-1.git4ba03dd
8a4b0d
- Bump to version included with Node.js 0.9.7
8a4b0d
8a4b0d
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-0.1.gitdc559a5
8a4b0d
- bump to version included with node 0.9.4
8a4b0d
- drop upstreamed patch
8a4b0d
- respect optflags
8a4b0d
8a4b0d
* Thu Nov 15 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.3.git09b0222
8a4b0d
- Add patch to export uv_inet_*
8a4b0d
8a4b0d
* Wed Nov 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.2.git09b0222
8a4b0d
- Fixes from package review
8a4b0d
- Removed doubly-listed include directory
8a4b0d
- Update git tarball to the latest upstream code
8a4b0d
8a4b0d
* Thu Nov 08 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-0.1.gitd56434a
8a4b0d
- Initial package