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:
2014-09-10 13:08:42 +00:00
committed by Git OBS Bridge
commit a07f7e7935
5 changed files with 71 additions and 0 deletions

39
nodejs-lodash-node.spec Normal file
View 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