Blame SPECS/libuv.spec

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