Accepting request 252301 from home:MargueriteSu:branches:devel:languages:nodejs
OBS-URL: https://build.opensuse.org/request/show/252301 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-character-parser?expand=0&rev=2
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%define base_name character-parser
|
||||
Name: nodejs-character-parser
|
||||
Version: 1.2.1
|
||||
Release: 0
|
||||
@@ -23,9 +24,8 @@ Summary: Parse JavaScript one character at a time to look for snippets in
|
||||
License: MIT
|
||||
Group: Development/Languages/Other
|
||||
Url: https://github.com/ForbesLindesay/character-parser
|
||||
Source: character-parser-%{version}.tar.gz
|
||||
Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
||||
BuildRequires: nodejs
|
||||
BuildRequires: npm
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%{nodejs_requires}
|
||||
@@ -36,16 +36,18 @@ Templates. This is not a validator, it's just designed to allow
|
||||
you to have sections of JavaScript delimited by brackets robustly.
|
||||
|
||||
%prep
|
||||
%setup -q -n character-parser-%{version}
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{nodejs_install}
|
||||
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
|
||||
cp -pr package.json index.js \
|
||||
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.md
|
||||
%{nodejs_modulesdir}/character-parser
|
||||
%{nodejs_modulesdir}/%{base_name}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user