[nodejs-parserlib] Initial import (#1121735)

Ralph Bean ralph at fedoraproject.org
Tue Jul 22 16:44:48 UTC 2014


commit 7154707ddec9613593a2ebc1fa4bbf771863cff6
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue Jul 22 12:44:33 2014 -0400

    Initial import (#1121735)

 .gitignore            |    1 +
 nodejs-parserlib.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3736f6f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/parserlib-0.2.5.tgz
diff --git a/nodejs-parserlib.spec b/nodejs-parserlib.spec
new file mode 100644
index 0000000..769ef33
--- /dev/null
+++ b/nodejs-parserlib.spec
@@ -0,0 +1,60 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename parserlib
+
+Name:               nodejs-parserlib
+Version:            0.2.5
+Release:            1%{?dist}
+Summary:            CSS3 SAX-inspired parser
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/parserlib
+Source0:            http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
+BuildArch:          noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch:      %{nodejs_arches} noarch
+%else
+ExclusiveArch:      %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires:      nodejs-packaging >= 6
+
+
+%description
+CSS Parser
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/parserlib
+cp -pr package.json lib \
+    %{buildroot}%{nodejs_sitelib}/parserlib
+
+%nodejs_symlink_deps
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+ant -f ../../build.xml test
+%endif
+
+%files
+%doc README.md
+%{nodejs_sitelib}/parserlib/
+
+%changelog
+* Mon Jul 21 2014 Ralph Bean <rbean at redhat.com> - 0.2.5-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..247d800 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fa59db214a7e44da839cf410bc1c2561  parserlib-0.2.5.tgz


More information about the scm-commits mailing list