8417c81
%{?nodejs_find_provides_and_requires}
8417c81
8417c81
Name:           nodejs-asn1
8417c81
Version:        0.1.11
1c499fb
Release:        8%{?dist}
8417c81
Summary:        Contains parsers and serializers for ASN.1 (currently BER only)
8417c81
BuildArch:      noarch
1c499fb
ExclusiveArch:  %{nodejs_arches} noarch
8417c81
8417c81
License:        MIT
8417c81
URL:            https://github.com/mcavage/node-asn1
1c499fb
Source0:        https://registry.npmjs.org/asn1/-/asn1-%{version}.tgz
8417c81
1c499fb
BuildRequires:  nodejs-packaging
8417c81
8417c81
#for tests
8417c81
BuildRequires:  npm(tap)
8417c81
8417c81
%description
8417c81
nodejs-asn1 is a library for encoding and decoding Abstract Syntax Notation One
8417c81
(ASN.1) datatypes in pure JavaScript. ASN.1 is  is a standard and notation that 
8417c81
describes rules and structures for representing, encoding, transmitting, and 
8417c81
decoding data in telecommunications and computer networking.
8417c81
8417c81
Currently Basic Encoding Rules (BER) encoding is supported; at some point 
8417c81
Distinguished Encoding Rules (DER) will likely also be supported.
8417c81
8417c81
%prep
8417c81
%setup -q -n package
8417c81
8417c81
%build
8417c81
#nothing to do
8417c81
8417c81
%install
8417c81
mkdir -p %{buildroot}%{nodejs_sitelib}/asn1
8417c81
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/asn1
8417c81
8417c81
%nodejs_symlink_deps
8417c81
8417c81
%check
8417c81
%nodejs_symlink_deps --check
8417c81
%tap tst/ber/*.js
8417c81
8417c81
%files
8417c81
%{nodejs_sitelib}/asn1
1c499fb
%doc README.md
1c499fb
%license LICENSE
8417c81
8417c81
%changelog
1c499fb
* Sun Feb 07 2016 Piotr Popieluch <piotr1212@gmail.com> - 0.1.11-8
1c499fb
- Cleanup spec for newer guidelines
1c499fb
0a55ace
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.11-7
0a55ace
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0a55ace
22c1ae4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-6
22c1ae4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
22c1ae4
f1df8d0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-5
f1df8d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f1df8d0
773701b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-4
773701b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
773701b
673a472
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.11-3
673a472
- restrict to compatible arches
673a472
8417c81
* Fri Jun 21 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.11-2
8417c81
- improve description
8417c81
8417c81
* Thu Jun 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.11-1
8417c81
- initial package