diff --git a/nodejs-argsparser-0.0.6.tar.gz b/argsparser-0.0.6.tgz similarity index 100% rename from nodejs-argsparser-0.0.6.tar.gz rename to argsparser-0.0.6.tgz diff --git a/nodejs-argsparser.changes b/nodejs-argsparser.changes index c043e5f..f946502 100644 --- a/nodejs-argsparser.changes +++ b/nodejs-argsparser.changes @@ -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 diff --git a/nodejs-argsparser.spec b/nodejs-argsparser.spec index 1fab283..5e6f703 100644 --- a/nodejs-argsparser.spec +++ b/nodejs-argsparser.spec @@ -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