|
|
ce751b |
%{?scl:%scl_package node-gyp}
|
|
|
ce751b |
%{!?scl:%global pkg_name %{name}}
|
|
|
ce751b |
|
|
|
ce751b |
%{?nodejs_find_provides_and_requires}
|
|
|
ce751b |
|
|
|
ce751b |
Name: %{?scl_prefix}node-gyp
|
|
|
ce751b |
Version: 3.4.0
|
|
|
4850ec |
Release: 6%{?dist}
|
|
|
ce751b |
Summary: Node.js native addon build tool
|
|
|
ce751b |
License: MIT
|
|
|
ce751b |
URL: https://github.com/TooTallNate/node-gyp
|
|
|
ce751b |
Source0: http://registry.npmjs.org/node-gyp/-/node-gyp-%{version}.tgz
|
|
|
ce751b |
Source1: addon-rpm.gypi
|
|
|
ce751b |
BuildArch: noarch
|
|
|
ce751b |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
ce751b |
|
|
|
ce751b |
# These patches are Fedora-specific for the moment, although I'd like to find
|
|
|
ce751b |
# a way to support this kind of stuff upstream.
|
|
|
ce751b |
#Patch1: node-gyp-addon-gypi.patch
|
|
|
ce751b |
# use RPM installed headers by default instead of downloading a source tree
|
|
|
ce751b |
# for the currently running node version
|
|
|
ce751b |
#use gyp from scl
|
|
|
ce751b |
#Patch2: node-gyp-use-system-gyp.patch
|
|
|
ce751b |
|
|
|
ce751b |
# Merged previous patches into one
|
|
|
ce751b |
#Patch3: node-gyp-system-stuff.patch
|
|
|
ce751b |
|
|
|
ce751b |
# Patch for v3.4.0
|
|
|
ce751b |
Patch1: node-gyp-node-dirs.patch
|
|
|
ce751b |
|
|
|
ce751b |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
ce751b |
|
|
|
ce751b |
#gyp is the actual build framework node-gyp uses
|
|
|
ce751b |
Requires: %{?scl_prefix}gyp
|
|
|
ce751b |
#this is the standard set of headers expected to build any node native module
|
|
|
ce751b |
Requires: %{?scl_prefix}nodejs-devel %{?scl_prefix}libuv-devel %{?scl_prefix}http-parser-devel
|
|
|
ce751b |
#we also need a C++ compiler to actually build stuff
|
|
|
ce751b |
Requires: gcc-c++
|
|
|
ce751b |
#node-gyp needs python and make too
|
|
|
ce751b |
Requires: python-devel
|
|
|
ce751b |
Requires: make
|
|
|
ce751b |
|
|
|
ce751b |
%description
|
|
|
ce751b |
node-gyp is a cross-platform command-line tool written in Node.js for compiling
|
|
|
ce751b |
native addon modules for Node.js, which takes away the pain of dealing with the
|
|
|
ce751b |
various differences in build platforms. It is the replacement to the node-waf
|
|
|
ce751b |
program which is removed for node v0.8.
|
|
|
ce751b |
|
|
|
ce751b |
%prep
|
|
|
ce751b |
%setup -q -n package
|
|
|
ce751b |
|
|
|
ce751b |
%patch1 -p1
|
|
|
ce751b |
|
|
|
ce751b |
%nodejs_fixdep --caret
|
|
|
ce751b |
|
|
|
ce751b |
#dependencies that were not processed right by macro
|
|
|
ce751b |
%nodejs_fixdep nopt
|
|
|
ce751b |
%nodejs_fixdep npmlog
|
|
|
ce751b |
%nodejs_fixdep semver
|
|
|
ce751b |
|
|
|
ce751b |
%build
|
|
|
ce751b |
#nothing to do
|
|
|
ce751b |
|
|
|
ce751b |
%install
|
|
|
ce751b |
|
|
|
ce751b |
mkdir -p %{buildroot}%{nodejs_sitelib}/node-gyp
|
|
|
ce751b |
cp -pr addon*.gypi bin lib package.json %{buildroot}%{nodejs_sitelib}/node-gyp
|
|
|
ce751b |
cp -p %{SOURCE1} %{buildroot}%{nodejs_sitelib}/node-gyp/addon-rpm.gypi
|
|
|
ce751b |
|
|
|
ce751b |
mkdir -p %{buildroot}%{_bindir}
|
|
|
ce751b |
ln -sf ../lib/node_modules/node-gyp/bin/node-gyp.js %{buildroot}%{_bindir}/node-gyp
|
|
|
ce751b |
|
|
|
ce751b |
%nodejs_symlink_deps
|
|
|
ce751b |
|
|
|
ce751b |
%files
|
|
|
ce751b |
%{nodejs_sitelib}/node-gyp
|
|
|
ce751b |
%{_bindir}/node-gyp
|
|
|
ce751b |
%doc README.md LICENSE
|
|
|
ce751b |
|
|
|
ce751b |
%changelog
|
|
|
4850ec |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.4.0-6
|
|
|
4850ec |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
4850ec |
|
|
|
ce751b |
* Tue Jan 17 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.4.0-5
|
|
|
ce751b |
- Update addon.gypi
|
|
|
ce751b |
- Update patch
|
|
|
ce751b |
- Fixdep badly processed deps
|
|
|
ce751b |
- Updated with script
|
|
|
ce751b |
- Rebuild from zvetlik/rh-nodejs6
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Jun 10 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.3.1-4
|
|
|
ce751b |
- Resolves: #1343976
|
|
|
ce751b |
- Merge patches into one
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Apr 08 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.3.1-3
|
|
|
ce751b |
- Fix dependencies
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Apr 08 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.3.1-2
|
|
|
ce751b |
- Add python and make dependencies
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Apr 08 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.3.1-1
|
|
|
ce751b |
- Update
|
|
|
ce751b |
|
|
|
ce751b |
* Tue Feb 23 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.2.0-7
|
|
|
ce751b |
- Fix dependencies
|
|
|
ce751b |
|
|
|
ce751b |
* Wed Feb 17 2016 Tomas Hrcka <thrcka@redhat.com> - 3.2.0-6
|
|
|
ce751b |
- Rebase patches to new collection paths
|
|
|
ce751b |
- Remove --no-parallel argument from default config
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Feb 11 2016 Tomas Hrcka <thrcka@redhat.com> - 3.2.0-3
|
|
|
ce751b |
- Disable dependency on v8314 collection
|
|
|
ce751b |
|
|
|
ce751b |
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 3.2.0-2
|
|
|
ce751b |
- New upstream release
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Jul 23 2015 Tomas Hrcka <thrcka@redhat.com> - 2.0.2-1
|
|
|
ce751b |
- Rebase to latest upstream stable
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Jan 29 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-3
|
|
|
ce751b |
- Fix dependencies versions of nopt and glob
|
|
|
ce751b |
- Backport Patch1 to new sources
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Jan 08 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-1
|
|
|
ce751b |
- New upstream release
|
|
|
ce751b |
|
|
|
ce751b |
* Tue Mar 04 2014 Tomas Hrcka <thrcka@redhat.com> - 0.12.2-2
|
|
|
ce751b |
- Fix addon-rpm-gypi
|
|
|
ce751b |
- Backport patch to new sources
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Jan 16 2014 Tomas Hrcka <thrcka@redhat.com> - 0.12.2-1
|
|
|
ce751b |
- New upstream release
|
|
|
ce751b |
|
|
|
ce751b |
* Tue Jan 14 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.6-2.3
|
|
|
ce751b |
- use proper path for gyp since its comming from v8 collection
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Jan 09 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.6-2.2
|
|
|
ce751b |
<<<<<<< HEAD
|
|
|
ce751b |
- require v8314-v8
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Dec 05 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.6-2.1
|
|
|
ce751b |
- rebuilt with gyp from v8 scl
|
|
|
ce751b |
=======
|
|
|
ce751b |
- replace dependency on nodejs010-v8 with v8314-v8
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Dec 05 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.6-2.1
|
|
|
ce751b |
- rebuilt with gyp from v8 collection
|
|
|
ce751b |
>>>>>>> rhscl-2.1-nodejs010-rhel-6
|
|
|
ce751b |
|
|
|
ce751b |
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-2
|
|
|
ce751b |
- fix semver dep
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Jul 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-1
|
|
|
ce751b |
- new upstream release 0.10.6
|
|
|
ce751b |
|
|
|
ce751b |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.1-1
|
|
|
ce751b |
- new upstream release 0.10.1
|
|
|
ce751b |
|
|
|
ce751b |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-3
|
|
|
ce751b |
- restrict to compatible arches
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Apr 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.9.5-3
|
|
|
ce751b |
- Use proper prefixed paths for gyp
|
|
|
ce751b |
|
|
|
ce751b |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-2
|
|
|
ce751b |
- add macro for EPEL6 dependency generation
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.9.5-2
|
|
|
ce751b |
- Add support for software collections
|
|
|
ce751b |
|
|
|
ce751b |
* Wed Apr 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-1
|
|
|
ce751b |
- new upstream release 0.9.5
|
|
|
ce751b |
|
|
|
ce751b |
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.1-2
|
|
|
ce751b |
- update addon-rpm.gypi
|
|
|
ce751b |
- split out addon-rpm.gypi so it's easier to maintain
|
|
|
ce751b |
|
|
|
ce751b |
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.1-1
|
|
|
ce751b |
- new upstream release 0.9.1
|
|
|
ce751b |
|
|
|
ce751b |
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.4-1
|
|
|
ce751b |
- new upstream release 0.8.4
|
|
|
ce751b |
|
|
|
ce751b |
* Mon Jan 21 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.3-1
|
|
|
ce751b |
- new upstream release 0.8.3
|
|
|
ce751b |
- add missing Requires on http-parser-devel
|
|
|
ce751b |
|
|
|
ce751b |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.2-3
|
|
|
ce751b |
- add missing build section
|
|
|
ce751b |
|
|
|
ce751b |
* Sat Jan 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.2-2
|
|
|
ce751b |
- use RPM-installed headers by default
|
|
|
ce751b |
- now patched to use the system gyp instead of relying on a symlink
|
|
|
ce751b |
|
|
|
ce751b |
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.2-1
|
|
|
ce751b |
- new upstream release 0.8.2
|
|
|
ce751b |
- clean up for submission
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Apr 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-2
|
|
|
ce751b |
- fix dependencies
|
|
|
ce751b |
|
|
|
ce751b |
* Wed Apr 18 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-1
|
|
|
ce751b |
- New upstream release 0.4.1
|
|
|
ce751b |
|
|
|
ce751b |
* Fri Apr 06 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.11-1
|
|
|
ce751b |
- New upstream release 0.3.11
|
|
|
ce751b |
|
|
|
ce751b |
* Mon Apr 02 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.10-1
|
|
|
ce751b |
- New upstream release 0.3.10
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Mar 29 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.9-1
|
|
|
ce751b |
- New upstream release 0.3.9
|
|
|
ce751b |
|
|
|
ce751b |
* Wed Mar 28 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.8-1
|
|
|
ce751b |
- new upstream release 0.3.8
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Mar 22 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.7-1
|
|
|
ce751b |
- new upstream release 0.3.7
|
|
|
ce751b |
|
|
|
ce751b |
* Thu Mar 15 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.5-1
|
|
|
ce751b |
- initial package
|