2020-08-31 20:01:34 +08:00
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
|
Name: nodejs-paperboy
|
|
|
|
|
Version: 0.0.5
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: A node.js module for delivering static files
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/felixge/node-paperboy
|
2020-09-07 17:14:08 +08:00
|
|
|
Source0: https://github.com/felixge/node-paperboy/archive/v%{version}.tar.gz
|
2020-08-31 20:01:34 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-09-07 17:14:08 +08:00
|
|
|
%autosetup -n node-paperboy-%{version}
|
2020-08-31 20:01:34 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/paperboy
|
|
|
|
|
cp -pr package.json index.js lib/ \
|
|
|
|
|
%{buildroot}%{nodejs_sitelib}/paperboy
|
|
|
|
|
%nodejs_symlink_deps
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc LICENSE.txt README.md example/
|
|
|
|
|
%{nodejs_sitelib}/paperboy
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 31 2020 wutao <wutao61@huawei.com> - 0.0.5-1
|
|
|
|
|
- Package init
|