35 lines
950 B
RPMSpec
35 lines
950 B
RPMSpec
|
|
%{?nodejs_find_provides_and_requires}
|
||
|
|
Name: nodejs-cryptiles
|
||
|
|
Version: 2.0.5
|
||
|
|
Release: 1
|
||
|
|
Summary: General purpose cryptography utilities for Node.js
|
||
|
|
License: BSD
|
||
|
|
URL: https://github.com/hueniverse/cryptiles
|
||
|
|
Source0: https://registry.npmjs.org/cryptiles/-/cryptiles-%{version}.tgz
|
||
|
|
BuildArch: noarch
|
||
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
||
|
|
BuildRequires: nodejs-packaging
|
||
|
|
%description
|
||
|
|
%{summary}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n package
|
||
|
|
sed -i 's/"node": ">=0.10.40"/"node": ">=0.10.36"/' package.json
|
||
|
|
chmod 0644 README.md LICENSE lib/* package.json
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/cryptiles
|
||
|
|
cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/cryptiles
|
||
|
|
%nodejs_symlink_deps
|
||
|
|
|
||
|
|
%files
|
||
|
|
%{nodejs_sitelib}/cryptiles
|
||
|
|
%doc README.md
|
||
|
|
%license LICENSE
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 2.0.5-1
|
||
|
|
- package init
|