Blame SPECS/nodejs-asn1.spec

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