Blame SPECS/libuv.spec

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