[nodejs-asn1] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Sat Jun 22 08:42:10 UTC 2013


commit 8417c811db44d1cd2e0382385ac6dce49f2e7d93
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sat Jun 22 09:41:48 2013 +0100

    Initial import

 .gitignore       |    1 +
 nodejs-asn1.spec |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9ba02e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/asn1-0.1.11.tgz
diff --git a/nodejs-asn1.spec b/nodejs-asn1.spec
new file mode 100644
index 0000000..cffa7fa
--- /dev/null
+++ b/nodejs-asn1.spec
@@ -0,0 +1,60 @@
+%{?nodejs_find_provides_and_requires}
+
+Name:           nodejs-asn1
+Version:        0.1.11
+Release:        2%{?dist}
+Summary:        Contains parsers and serializers for ASN.1 (currently BER only)
+BuildArch:      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
+* Fri Jun 21 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.1.11-2
+- improve description
+
+* Thu Jun 13 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.1.11-1
+- initial package
diff --git a/sources b/sources
index e69de29..74ee6f5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a34d188535a702e1c6e0d9f768d6d542  asn1-0.1.11.tgz


More information about the scm-commits mailing list