- do not use npm for installation
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-argsparser?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 10 10:31:43 UTC 2014 - jgleissner@suse.com
|
||||
|
||||
- do not use npm for installation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 9 15:07:34 UTC 2014 - jgleissner@suse.com
|
||||
|
||||
|
||||
@@ -14,17 +14,19 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define base_name argsparser
|
||||
Name: nodejs-argsparser
|
||||
Summary: A tiny command line arguments parser for node
|
||||
Version: 0.0.6
|
||||
Release: 1
|
||||
License: MIT
|
||||
Url: https://github.com/kof/node-argsparser
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
||||
Group: Development/Libraries/Other
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: npm nodejs
|
||||
BuildRequires: nodejs-packaging
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||
|
||||
%nodejs_find_provides_and_requires
|
||||
|
||||
@@ -35,18 +37,21 @@ Features
|
||||
* instead to parse all possible spellings, it uses just some simple rules
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/node_modules
|
||||
npm_config_prefix=%{buildroot}%{_prefix} npm install -g %{S:0}
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
|
||||
cp -pr package.json index.js lib %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_prefix}/lib/node_modules
|
||||
%doc readme.md
|
||||
%{nodejs_modulesdir}/%{base_name}
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user