Blame SPECS/node-gyp.spec

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