Files
nodejs-noptify/nodejs-noptify.spec

45 lines
1.1 KiB
RPMSpec

%define base_name noptify
Name: nodejs-%{base_name}
Version: 0.0.3
Release: 0
License: MIT
Summary: nopt wrapper with commander-like API
URL: https://github.com/isaacs/noptify
Group: Development/Languages/Other
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
# Taken from https://raw.githubusercontent.com/mklabs/noptify/master/LICENSE-MIT
Source1: LICENSE-MIT
Requires: nodejs
Requires: nodejs-nopt
BuildRequires: nodejs
BuildRequires: nodejs-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%description
Node.js noptify module. nopt wrapper with commander-like API.
%prep
%setup -q -n package
install -m 0644 %{S:1} .
%build
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json index.js actions util \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc readme.md LICENSE-MIT
%{nodejs_modulesdir}/%{base_name}
%changelog