|
|
987695 |
%{?scl:%scl_package node-gyp}
|
|
|
987695 |
%{!?scl:%global pkg_name %{name}}
|
|
|
987695 |
|
|
|
987695 |
%{?nodejs_find_provides_and_requires}
|
|
|
987695 |
|
|
|
987695 |
Name: %{?scl_prefix}node-gyp
|
|
|
f89344 |
Version: 1.0.2
|
|
|
f89344 |
Release: 3%{?dist}
|
|
|
987695 |
Summary: Node.js native addon build tool
|
|
|
987695 |
License: MIT
|
|
|
987695 |
Group: System Environment/Libraries
|
|
|
987695 |
URL: https://github.com/TooTallNate/node-gyp
|
|
|
987695 |
Source0: http://registry.npmjs.org/node-gyp/-/node-gyp-%{version}.tgz
|
|
|
987695 |
Source1: addon-rpm.gypi
|
|
|
987695 |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
987695 |
BuildArch: noarch
|
|
|
987695 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
987695 |
|
|
|
987695 |
# These patches are Fedora-specific for the moment, although I'd like to find
|
|
|
987695 |
# a way to support this kind of stuff upstream.
|
|
|
987695 |
Patch1: node-gyp-addon-gypi.patch
|
|
|
987695 |
# use RPM installed headers by default instead of downloading a source tree
|
|
|
987695 |
# for the currently running node version
|
|
|
987695 |
#use gyp from scl
|
|
|
987695 |
Patch2: node-gyp-use-system-gyp.patch
|
|
|
987695 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
987695 |
|
|
|
987695 |
#gyp is the actual build framework node-gyp uses
|
|
|
987695 |
Requires: v8314-gyp
|
|
|
987695 |
#this is the standard set of headers expected to build any node native module
|
|
|
987695 |
Requires: %{?scl_prefix}nodejs-devel v8314-v8-devel %{?scl_prefix}libuv-devel %{?scl_prefix}http-parser-devel
|
|
|
987695 |
#we also need a C++ compiler to actually build stuff ;-)
|
|
|
987695 |
Requires: gcc-c++
|
|
|
987695 |
|
|
|
987695 |
%description
|
|
|
987695 |
node-gyp is a cross-platform command-line tool written in Node.js for compiling
|
|
|
987695 |
native addon modules for Node.js, which takes away the pain of dealing with the
|
|
|
987695 |
various differences in build platforms. It is the replacement to the node-waf
|
|
|
987695 |
program which is removed for node v0.8.
|
|
|
987695 |
|
|
|
987695 |
%prep
|
|
|
987695 |
%setup -q -n package
|
|
|
987695 |
|
|
|
987695 |
%patch2 -p1
|
|
|
987695 |
%patch1 -p1
|
|
|
987695 |
%nodejs_fixdep request 2.x
|
|
|
f89344 |
%nodejs_fixdep semver 2.x
|
|
|
f89344 |
%nodejs_fixdep nopt 3.x
|
|
|
f89344 |
%nodejs_fixdep glob 4.x
|
|
|
987695 |
|
|
|
987695 |
%build
|
|
|
987695 |
#nothing to do
|
|
|
987695 |
|
|
|
987695 |
%install
|
|
|
987695 |
rm -rf %{buildroot}
|
|
|
987695 |
|
|
|
987695 |
mkdir -p %{buildroot}%{nodejs_sitelib}/node-gyp
|
|
|
987695 |
cp -pr addon*.gypi bin lib package.json %{buildroot}%{nodejs_sitelib}/node-gyp
|
|
|
987695 |
cp -p %{SOURCE1} %{buildroot}%{nodejs_sitelib}/node-gyp/addon-rpm.gypi
|
|
|
987695 |
|
|
|
987695 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
987695 |
ln -sf ../lib/node_modules/node-gyp/bin/node-gyp.js %{buildroot}%{_bindir}/node-gyp
|
|
|
987695 |
|
|
|
987695 |
%nodejs_symlink_deps
|
|
|
987695 |
|
|
|
987695 |
%clean
|
|
|
987695 |
rm -rf %{buildroot}
|
|
|
987695 |
|
|
|
987695 |
%files
|
|
|
987695 |
%defattr(-,root,root,-)
|
|
|
987695 |
%{nodejs_sitelib}/node-gyp
|
|
|
987695 |
%{_bindir}/node-gyp
|
|
|
987695 |
%doc README.md LICENSE
|
|
|
987695 |
|
|
|
987695 |
%changelog
|
|
|
f89344 |
* Thu Jan 29 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-3
|
|
|
f89344 |
- Fix dependencies versions of nopt and glob
|
|
|
f89344 |
- Backport Patch1 to new sources
|
|
|
f89344 |
|
|
|
f89344 |
* Thu Jan 08 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-1
|
|
|
f89344 |
- New upstream release
|
|
|
f89344 |
|
|
|
987695 |
* Tue Mar 04 2014 Tomas Hrcka <thrcka@redhat.com> - 0.12.2-2
|
|
|
987695 |
- Fix addon-rpm-gypi
|
|
|
987695 |
- Backport patch to new sources
|
|
|
987695 |
|
|
|
987695 |
* Thu Jan 16 2014 Tomas Hrcka <thrcka@redhat.com> - 0.12.2-1
|
|
|
987695 |
- New upstream release
|
|
|
987695 |
|
|
|
987695 |
* Tue Jan 14 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.6-2.3
|
|
|
987695 |
- use proper path for gyp since its comming from v8 collection
|
|
|
987695 |
|
|
|
987695 |
* Thu Jan 09 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.6-2.2
|
|
|
987695 |
- require v8314-v8
|
|
|
987695 |
|
|
|
987695 |
* Thu Dec 05 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.6-2.1
|
|
|
987695 |
- rebuilt with gyp from v8 scl
|
|
|
987695 |
|
|
|
987695 |
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-2
|
|
|
987695 |
- fix semver dep
|
|
|
987695 |
|
|
|
987695 |
* Fri Jul 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-1
|
|
|
987695 |
- new upstream release 0.10.6
|
|
|
987695 |
|
|
|
987695 |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.1-1
|
|
|
987695 |
- new upstream release 0.10.1
|
|
|
987695 |
|
|
|
987695 |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-3
|
|
|
987695 |
- restrict to compatible arches
|
|
|
987695 |
|
|
|
987695 |
* Fri Apr 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.9.5-3
|
|
|
987695 |
- Use proper prefixed paths for gyp
|
|
|
987695 |
|
|
|
987695 |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-2
|
|
|
987695 |
- add macro for EPEL6 dependency generation
|
|
|
987695 |
|
|
|
987695 |
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.9.5-2
|
|
|
987695 |
- Add support for software collections
|
|
|
987695 |
|
|
|
987695 |
* Wed Apr 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-1
|
|
|
987695 |
- new upstream release 0.9.5
|
|
|
987695 |
|
|
|
987695 |
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.1-2
|
|
|
987695 |
- update addon-rpm.gypi
|
|
|
987695 |
- split out addon-rpm.gypi so it's easier to maintain
|
|
|
987695 |
|
|
|
987695 |
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.1-1
|
|
|
987695 |
- new upstream release 0.9.1
|
|
|
987695 |
|
|
|
987695 |
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.4-1
|
|
|
987695 |
- new upstream release 0.8.4
|
|
|
987695 |
|
|
|
987695 |
* Mon Jan 21 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.3-1
|
|
|
987695 |
- new upstream release 0.8.3
|
|
|
987695 |
- add missing Requires on http-parser-devel
|
|
|
987695 |
|
|
|
987695 |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.2-3
|
|
|
987695 |
- add missing build section
|
|
|
987695 |
|
|
|
987695 |
* Sat Jan 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.2-2
|
|
|
987695 |
- use RPM-installed headers by default
|
|
|
987695 |
- now patched to use the system gyp instead of relying on a symlink
|
|
|
987695 |
|
|
|
987695 |
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.2-1
|
|
|
987695 |
- new upstream release 0.8.2
|
|
|
987695 |
- clean up for submission
|
|
|
987695 |
|
|
|
987695 |
* Thu Apr 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-2
|
|
|
987695 |
- fix dependencies
|
|
|
987695 |
|
|
|
987695 |
* Wed Apr 18 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-1
|
|
|
987695 |
- New upstream release 0.4.1
|
|
|
987695 |
|
|
|
987695 |
* Fri Apr 06 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.11-1
|
|
|
987695 |
- New upstream release 0.3.11
|
|
|
987695 |
|
|
|
987695 |
* Mon Apr 02 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.10-1
|
|
|
987695 |
- New upstream release 0.3.10
|
|
|
987695 |
|
|
|
987695 |
* Thu Mar 29 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.9-1
|
|
|
987695 |
- New upstream release 0.3.9
|
|
|
987695 |
|
|
|
987695 |
* Wed Mar 28 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.8-1
|
|
|
987695 |
- new upstream release 0.3.8
|
|
|
987695 |
|
|
|
987695 |
* Thu Mar 22 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.7-1
|
|
|
987695 |
- new upstream release 0.3.7
|
|
|
987695 |
|
|
|
987695 |
* Thu Mar 15 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.5-1
|
|
|
987695 |
- initial package
|