%{?nodejs_find_provides_and_requires}
Name: nodejs-asn1
Version: 0.1.11
Release: 6%{?dist}
Summary: Contains parsers and serializers for ASN.1 (currently BER only)
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
Group: System Environment/Libraries
License: MIT
URL: https://github.com/mcavage/node-asn1
Source0: http://registry.npmjs.org/asn1/-/asn1-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: nodejs-devel
#for tests
BuildRequires: npm(tap)
%description
nodejs-asn1 is a library for encoding and decoding Abstract Syntax Notation One
(ASN.1) datatypes in pure JavaScript. ASN.1 is is a standard and notation that
describes rules and structures for representing, encoding, transmitting, and
decoding data in telecommunications and computer networking.
Currently Basic Encoding Rules (BER) encoding is supported; at some point
Distinguished Encoding Rules (DER) will likely also be supported.
%prep
%setup -q -n package
%build
#nothing to do
%install
rm -rf %buildroot
mkdir -p %{buildroot}%{nodejs_sitelib}/asn1
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/asn1
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%tap tst/ber/*.js
%clean
rm -rf %buildroot
%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/asn1
%doc LICENSE README.md
%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.11-3
- restrict to compatible arches
* Fri Jun 21 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.11-2
- improve description
* Thu Jun 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.11-1
- initial package