|
|
5bebeb |
%{?scl:%scl_package npm}
|
|
|
5bebeb |
%{!?scl:%global pkg_name %{name}}
|
|
|
5bebeb |
|
|
|
5bebeb |
%{?nodejs_find_provides_and_requires}
|
|
|
5bebeb |
|
|
|
5bebeb |
Name: %{?scl_prefix}npm
|
|
|
ac0260 |
Version: 1.4.28
|
|
|
a4b29e |
Release: 5%{?dist}
|
|
|
5bebeb |
Summary: Node.js Package Manager
|
|
|
5bebeb |
License: Artistic 2.0
|
|
|
5bebeb |
Group: Development/Tools
|
|
|
5bebeb |
URL: http://npmjs.org/
|
|
|
a4b29e |
#stripped sources are created by script,
|
|
|
a4b29e |
#we remove badly licensed web fonts from documentation
|
|
|
5bebeb |
#http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
|
a4b29e |
Source0: npm-1.4.28-stripped.tar.gz
|
|
|
5bebeb |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
5bebeb |
BuildArch: noarch
|
|
|
5bebeb |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
5bebeb |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
5bebeb |
%{?scl:Requires: %{scl}-runtime}
|
|
|
5bebeb |
|
|
|
5bebeb |
%description
|
|
|
5bebeb |
npm is a package manager for node.js. You can use it to install and publish your
|
|
|
5bebeb |
node programs. It manages dependencies and does other cool stuff.
|
|
|
5bebeb |
|
|
|
5bebeb |
%prep
|
|
|
5bebeb |
%setup -q -n package
|
|
|
5bebeb |
|
|
|
5bebeb |
%nodejs_fixdep request '>2.16 <3'
|
|
|
ac0260 |
%nodejs_fixdep columnify 1.3.2
|
|
|
5bebeb |
#remove bundled modules
|
|
|
5bebeb |
rm -rf node_modules
|
|
|
5bebeb |
|
|
|
5bebeb |
#add a missing shebang
|
|
|
5bebeb |
sed -i -e '1i#!/usr/bin/env node' bin/read-package-json.js
|
|
|
5bebeb |
|
|
|
5bebeb |
# delete windows stuff
|
|
|
5bebeb |
rm bin/npm.cmd bin/node-gyp-bin/node-gyp.cmd
|
|
|
5bebeb |
|
|
|
5bebeb |
%build
|
|
|
5bebeb |
#nothing to do
|
|
|
5bebeb |
|
|
|
5bebeb |
%install
|
|
|
5bebeb |
rm -rf %{buildroot}
|
|
|
5bebeb |
|
|
|
5bebeb |
mkdir -p %{buildroot}%{nodejs_sitelib}/npm
|
|
|
5bebeb |
cp -pr bin lib cli.js package.json %{buildroot}%{nodejs_sitelib}/npm/
|
|
|
5bebeb |
|
|
|
5bebeb |
mkdir -p %{buildroot}%{_bindir}
|
|
|
5bebeb |
ln -sf ../lib/node_modules/npm/bin/npm-cli.js %{buildroot}%{_bindir}/npm
|
|
|
5bebeb |
|
|
|
5bebeb |
# ghosted global config files
|
|
|
5bebeb |
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
5bebeb |
touch %{buildroot}%{_sysconfdir}/npmrc
|
|
|
5bebeb |
touch %{buildroot}%{_sysconfdir}/npmignore
|
|
|
5bebeb |
|
|
|
5bebeb |
# install to mandir
|
|
|
5bebeb |
mkdir -p %{buildroot}%{_mandir}
|
|
|
5bebeb |
cp -pr man/* %{buildroot}%{_mandir}/
|
|
|
5bebeb |
|
|
|
5bebeb |
ln -sf %{_defaultdocdir}/%{name}-%{version}/doc %{buildroot}%{nodejs_sitelib}/npm/doc
|
|
|
5bebeb |
ln -sf %{_defaultdocdir}/%{name}-%{version}/html %{buildroot}%{nodejs_sitelib}/npm/html
|
|
|
5bebeb |
ln -sf %{_defaultdocdir}/%{name}-%{version}/man %{buildroot}%{nodejs_sitelib}/npm/man
|
|
|
5bebeb |
|
|
|
5bebeb |
%nodejs_symlink_deps
|
|
|
5bebeb |
|
|
|
5bebeb |
# probably needs network, need to investigate further
|
|
|
5bebeb |
#%%check
|
|
|
5bebeb |
#%%__nodejs test/run.js
|
|
|
5bebeb |
#%%tap test/tap/*.js
|
|
|
5bebeb |
|
|
|
ac0260 |
%pretrans -p <lua>
|
|
|
ac0260 |
require 'posix'
|
|
|
ac0260 |
require 'os'
|
|
|
ac0260 |
if (posix.stat("%{nodejs_sitelib}/npm/man", "type") == "directory") and (posix.stat("%{nodejs_sitelib}/npm/man", "type") ~= "link") then
|
|
|
ac0260 |
posix.rmdir("%{nodejs_sitelib}/npm/man")
|
|
|
ac0260 |
end
|
|
|
5bebeb |
|
|
|
5bebeb |
%clean
|
|
|
5bebeb |
rm -rf %{buildroot}
|
|
|
5bebeb |
|
|
|
5bebeb |
%files
|
|
|
5bebeb |
%defattr(-,root,root,-)
|
|
|
5bebeb |
%{nodejs_sitelib}/npm
|
|
|
5bebeb |
%ghost %{_sysconfdir}/npmrc
|
|
|
5bebeb |
%ghost %{_sysconfdir}/npmignore
|
|
|
5bebeb |
%{_bindir}/npm
|
|
|
5bebeb |
%{_mandir}/man*/*
|
|
|
5bebeb |
%doc AUTHORS man doc html README.md LICENSE
|
|
|
5bebeb |
|
|
|
5bebeb |
%changelog
|
|
|
a4b29e |
* Wed Sep 16 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.28-5
|
|
|
a4b29e |
- Resolves RHBZ#1082002
|
|
|
a4b29e |
|
|
|
a4b29e |
* Thu Jul 23 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.28-4
|
|
|
a4b29e |
- Remove macros for fixing deps
|
|
|
a4b29e |
|
|
|
ac0260 |
* Tue Jan 13 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.28-3
|
|
|
ac0260 |
- Replace != with ~= in lua scriptlet
|
|
|
ac0260 |
|
|
|
ac0260 |
* Tue Jan 13 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.28-2
|
|
|
ac0260 |
- Fix path to lua interpreter
|
|
|
ac0260 |
|
|
|
ac0260 |
* Mon Jan 12 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.28-1
|
|
|
ac0260 |
- New upstream release 1.4.28
|
|
|
ac0260 |
- Pretrans scriptlet changed to lua RHBZ#1149196
|
|
|
ac0260 |
- Remove fix_dep on semver package since we have update
|
|
|
ac0260 |
|
|
|
5bebeb |
* Fri May 02 2014 Tomas Hrcka <thrcka@redhat.com> - 1.3.24-5
|
|
|
5bebeb |
- Add %pretrans scriptlet RHBZ #1092162
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Mar 31 2014 Tomas Hrcka <thrcka@redhat.com> - 1.3.24-4
|
|
|
5bebeb |
- Removed patch for help pages
|
|
|
5bebeb |
- Added link to manpages in man dir of npm
|
|
|
5bebeb |
- Fix link to doc dir
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Mar 27 2014 Tomas Hrcka <thrcka@redhat.com> - 1.3.24-3
|
|
|
5bebeb |
- Add patch to fix help pages path when npm help is used without man
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Mar 26 2014 Tomas Hrcka <thrcka@redhat.com> - 1.3.24-2
|
|
|
5bebeb |
- Remove patches for system path to man pages, fixed upstream
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Feb 03 2014 Tomas Hrcka <thrcka@redhat.com> - 1.3.24-1
|
|
|
5bebeb |
- New upstream release 1.3.24
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Jan 08 2014 Tomas Hrcka <thrcka@redhat.com> - 1.3.6-4.2
|
|
|
5bebeb |
- invoke fix_dep macro for cmd-shim with version 1.1 and above
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Oct 14 2013 Tomas Hrcka <thrcka@redhat.com> - 1.3.6-4.1
|
|
|
5bebeb |
- new upstream release
|
|
|
5bebeb |
- remove patches that are already in upstream release
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Aug 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.6-4
|
|
|
5bebeb |
- remove unnecessary symlink to mandir
|
|
|
5bebeb |
fixes upgrade path from certain older versions of npm
|
|
|
5bebeb |
|
|
|
5bebeb |
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.6-2
|
|
|
5bebeb |
- license changed from MITNFA to Artistic 2.0
|
|
|
5bebeb |
|
|
|
5bebeb |
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.6-1
|
|
|
5bebeb |
- new upstream release 1.3.6
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Jul 22 2013 Tomas Hrcka thrcka@redhat.com - 1.2.17-9
|
|
|
5bebeb |
- RHBZ #983930 CVE-2013-4116 Insecure temporary directory generation
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Jul 22 2013 Tomas Hrcka <thrcka@redhat.com> - 1.2.17-8
|
|
|
5bebeb |
- patch for font deletion was replaced by script that strip webfons from tarball
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Jul 18 2013 Tomas Hrcka <thrcka@redhat.com> - 1.2.17-7
|
|
|
5bebeb |
- Removed badly licensed fonts from html documentation
|
|
|
5bebeb |
|
|
|
5bebeb |
* Fri Jul 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.3-1
|
|
|
5bebeb |
- new upstream release 1.3.3
|
|
|
5bebeb |
- fixes insecure temporary directory generation (CVE-2013-4116; RHBZ#983917)
|
|
|
5bebeb |
|
|
|
5bebeb |
* Tue Jul 02 2013 Tomas Hrcka <thrcka@redhat.com> - 1.2.17-6
|
|
|
5bebeb |
- replaced manpath to use system paths
|
|
|
5bebeb |
- replaced previous patch to fix gz extension
|
|
|
5bebeb |
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.3.0-1
|
|
|
5bebeb |
- new upstream release 1.3.0
|
|
|
5bebeb |
- use system paths for manual pages and documentation (RHBZ#953051)
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.17-6
|
|
|
5bebeb |
- restrict to compatible arches
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sun Jun 02 2013 Tomas Hrcka <thrcka@redhat.com> - 1.2.17-5.2
|
|
|
5bebeb |
- patch that add .gz extension when help.j calls 'man' fix RHBZ#965439
|
|
|
5bebeb |
|
|
|
5bebeb |
* Tue May 07 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2.17-5.1
|
|
|
5bebeb |
- Add runtime dependency on scl-runtime
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Apr 17 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2.17-5
|
|
|
5bebeb |
- Fix manpage names so that npm help finds them
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Apr 15 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2.17-4.1
|
|
|
5bebeb |
- Fix documentation symlink
|
|
|
5bebeb |
- Use new requires/provides macro
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.17-4
|
|
|
5bebeb |
- add EPEL dependency generation macro
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.17-3
|
|
|
5bebeb |
- rebuilt
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.17-2
|
|
|
5bebeb |
- revert a change that adds a dep (that only affects Windows anyway)
|
|
|
5bebeb |
- fix bogus date in changelog warning
|
|
|
5bebeb |
|
|
|
5bebeb |
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2.17-2
|
|
|
5bebeb |
- Add support for software collections
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Apr 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.17-1
|
|
|
5bebeb |
- new upstream release 1.2.17
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.14-2
|
|
|
5bebeb |
- fix dependencies
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.2.14-1
|
|
|
5bebeb |
- New upstream release 1.2.14
|
|
|
5bebeb |
- Bring npm up to the latest to match the Node.js 0.10.0 release
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.10-2
|
|
|
5bebeb |
- fix dep for updated read-package-json
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.10-1
|
|
|
5bebeb |
- new upstream release 1.2.10
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sat Jan 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.1-2
|
|
|
5bebeb |
- fix rpmlint warnings
|
|
|
5bebeb |
|
|
|
5bebeb |
* Fri Jan 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.1-1
|
|
|
5bebeb |
- new upstream release 1.2.1
|
|
|
5bebeb |
- fix License tag
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.0-1
|
|
|
5bebeb |
- new upstream release 1.2.0
|
|
|
5bebeb |
|
|
|
5bebeb |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.70-2
|
|
|
5bebeb |
- add missing build section
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.70-1
|
|
|
5bebeb |
- new upstream release 1.1.70
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed May 02 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.19-1
|
|
|
5bebeb |
- New upstream release 1.1.19
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Apr 18 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.18-1
|
|
|
5bebeb |
- New upstream release 1.1.18
|
|
|
5bebeb |
|
|
|
5bebeb |
* Fri Apr 06 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.16-1
|
|
|
5bebeb |
- New upstream release 1.1.16
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Apr 02 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.15-1
|
|
|
5bebeb |
- New upstream release 1.1.15
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Mar 29 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.14-1
|
|
|
5bebeb |
- New upstream release 1.1.14
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Mar 28 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.13-2
|
|
|
5bebeb |
- new dependencies fstream-npm, uid-number, and fstream-ignore (indirectly)
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Mar 28 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.13-1
|
|
|
5bebeb |
- new upstream release 1.1.13
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Mar 22 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.12-1
|
|
|
5bebeb |
- new upstream release 1.1.12
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Mar 15 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.9-1
|
|
|
5bebeb |
- new upstream release 1.1.9
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sun Mar 04 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.4-1
|
|
|
5bebeb |
- new upstream release 1.1.4
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sat Feb 25 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.2-1
|
|
|
5bebeb |
- new upstream release 1.1.2
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sat Feb 11 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.1-2
|
|
|
5bebeb |
- fix node_modules symlink
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Feb 09 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.1-1
|
|
|
5bebeb |
- new upstream release 1.1.1
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sun Jan 29 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.0-2.3
|
|
|
5bebeb |
- new upstream release 1.1.0-3
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sat Jan 21 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.0-2.2
|
|
|
5bebeb |
- missing Group field for EL5
|
|
|
5bebeb |
|
|
|
5bebeb |
* Sat Jan 21 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.0-1.2
|
|
|
5bebeb |
- new upstream release 1.1.0-2
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Nov 17 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.106-1
|
|
|
5bebeb |
- new upstream release 1.0.106
|
|
|
5bebeb |
- ship manpages again
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Nov 10 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.105-1
|
|
|
5bebeb |
- new upstream release 1.0.105
|
|
|
5bebeb |
- use relative symlinks instead of absolute
|
|
|
5bebeb |
- fixes /usr/bin/npm symlink on i686
|
|
|
5bebeb |
|
|
|
5bebeb |
* Mon Nov 07 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.104-1
|
|
|
5bebeb |
- new upstream release 1.0.104
|
|
|
5bebeb |
- adds node 0.6 support
|
|
|
5bebeb |
|
|
|
5bebeb |
* Wed Oct 26 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.101-2
|
|
|
5bebeb |
- missing Requires on nodejs-request
|
|
|
5bebeb |
- Require compilers too so native modules build properly
|
|
|
5bebeb |
|
|
|
5bebeb |
* Tue Oct 25 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.101-1
|
|
|
5bebeb |
- new upstream release
|
|
|
5bebeb |
- use symlink /usr/lib/node_modules -> /usr/lib/nodejs instead of patching
|
|
|
5bebeb |
|
|
|
5bebeb |
* Thu Aug 25 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.26-2
|
|
|
5bebeb |
- rebuilt with fixed nodejs_fixshebang macro from nodejs-devel-0.4.11-3
|
|
|
5bebeb |
|
|
|
5bebeb |
* Tue Aug 23 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.26-1
|
|
|
5bebeb |
- initial package
|