Blame SPECS/nodejs-jsbn.spec

d8b66e
%{?scl:%scl_package nodejs-jsbn}
d8b66e
%{!?scl:%global pkg_name %{name}}
d8b66e
%{?nodejs_find_provides_and_requires}
d8b66e
d8b66e
%global enable_tests 0
d8b66e
%global npm_name jsbn
d8b66e
d8b66e
Name:       %{?scl_prefix}nodejs-%{npm_name}
d8b66e
Version:    0.1.0
d8b66e
Release:    2%{?dist}
d8b66e
Summary:    The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers
d8b66e
License:    BSD
d8b66e
URL:        https://github.com/andyperlitch/jsbn.git
d8b66e
Source0:    http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
d8b66e
BuildRequires: %{?scl_prefix}nodejs-devel
d8b66e
BuildArch:  noarch
d8b66e
ExclusiveArch: %{nodejs_arches} noarch
d8b66e
d8b66e
%description
d8b66e
The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.
d8b66e
d8b66e
%prep
d8b66e
%setup -q -n package
d8b66e
d8b66e
rm -rf node_modules
d8b66e
d8b66e
%build
d8b66e
d8b66e
%install
d8b66e
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
d8b66e
cp -pfr example.html example.js index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
d8b66e
# If any binaries are included, symlink them to bindir here
d8b66e
d8b66e
d8b66e
%nodejs_symlink_deps
d8b66e
d8b66e
%if 0%{?enable_tests}
d8b66e
%check
d8b66e
#not running tests in RHSCL
d8b66e
%endif
d8b66e
d8b66e
%files
d8b66e
%{nodejs_sitelib}/%{npm_name}
d8b66e
d8b66e
%doc LICENSE
d8b66e
%doc README.md
d8b66e
d8b66e
%changelog
d8b66e
* Tue Sep 20 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.0-2
d8b66e
- Initial packaging
d8b66e