osc copypac from project:home:jgleissner:azure-cli package:nodejs-lodash-node revision:1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-lodash-node?expand=0&rev=1
This commit is contained in:
39
nodejs-lodash-node.spec
Normal file
39
nodejs-lodash-node.spec
Normal file
@@ -0,0 +1,39 @@
|
||||
%define base_name lodash-node
|
||||
|
||||
Name: nodejs-%{base_name}
|
||||
Version: 2.4.1
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: A collection of Lo-Dash methods
|
||||
URL: http://lodash.com/custom-builds
|
||||
Group: Development/Languages/Other
|
||||
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
||||
Requires: nodejs
|
||||
BuildRequires: nodejs
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||
|
||||
|
||||
%description
|
||||
A collection of Lo-Dash methods as Node.js modules generated by lodash-cli.
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
|
||||
cp -pr package.json modern compat underscore \
|
||||
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md LICENSE.txt README.md
|
||||
%{nodejs_modulesdir}/%{base_name}
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user