- 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
|
Thu Oct 9 15:07:34 UTC 2014 - jgleissner@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -14,17 +14,19 @@
|
|||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
|
%define base_name argsparser
|
||||||
Name: nodejs-argsparser
|
Name: nodejs-argsparser
|
||||||
Summary: A tiny command line arguments parser for node
|
Summary: A tiny command line arguments parser for node
|
||||||
Version: 0.0.6
|
Version: 0.0.6
|
||||||
Release: 1
|
Release: 1
|
||||||
License: MIT
|
License: MIT
|
||||||
Url: https://github.com/kof/node-argsparser
|
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
|
Group: Development/Libraries/Other
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: npm nodejs
|
BuildRequires: nodejs-packaging
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||||
|
|
||||||
%nodejs_find_provides_and_requires
|
%nodejs_find_provides_and_requires
|
||||||
|
|
||||||
@@ -35,18 +37,21 @@ Features
|
|||||||
* instead to parse all possible spellings, it uses just some simple rules
|
* instead to parse all possible spellings, it uses just some simple rules
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_prefix}/lib/node_modules
|
mkdir -p %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
|
||||||
npm_config_prefix=%{buildroot}%{_prefix} npm install -g %{S:0}
|
cp -pr package.json index.js lib %{buildroot}%{_prefix}/lib/node_modules/%{base_name}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/lib/node_modules
|
%doc readme.md
|
||||||
|
%{nodejs_modulesdir}/%{base_name}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user