[nodejs-css-parse] Initial commit
Jamie Nguyen
jamielinux at fedoraproject.org
Mon Feb 24 16:13:57 UTC 2014
commit 1fac55b6a2dc85463a86e059c9aa3011ef66cbea
Author: Jamie Nguyen <j at jamielinux.com>
Date: Mon Feb 24 16:14:40 2014 +0000
Initial commit
.gitignore | 1 +
nodejs-css-parse.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..54edcbb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nodejs-css-parse-1.7.0.tar.gz
diff --git a/nodejs-css-parse.spec b/nodejs-css-parse.spec
new file mode 100644
index 0000000..e74e3ba
--- /dev/null
+++ b/nodejs-css-parse.spec
@@ -0,0 +1,69 @@
+%{?nodejs_find_provides_and_requires}
+
+%global commit 212d7d4b5f049e31d30907ee73ac767329db92e1
+
+%global enable_tests 1
+
+Name: nodejs-css-parse
+Version: 1.7.0
+Release: 2%{?dist}
+Summary: A JavaScript CSS parser for Node.js and the browser
+License: MIT
+Group: System Environment/Libraries
+URL: https://github.com/reworkcss/css-parse
+# Use GitHub as the NPM tarball is missing test/, examples/, History.md.
+Source0: https://github.com/reworkcss/css-parse/archive/%{commit}/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(mocha)
+BuildRequires: npm(should)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n css-parse-%{commit}
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/css-parse
+cp -pr package.json index.js \
+ %{buildroot}%{nodejs_sitelib}/css-parse
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+/usr/bin/mocha --require should --reporter spec --bail
+%endif
+
+
+%files
+%doc examples/ History.md LICENSE Readme.md
+%{nodejs_sitelib}/css-parse
+
+
+%changelog
+* Sun Feb 23 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.7.0-2
+- update URL tag
+
+* Sun Feb 23 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.7.0-1
+- initial package
+
diff --git a/sources b/sources
index e69de29..9324dab 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+de0050c924fa72862a70fab3e215e0ff nodejs-css-parse-1.7.0.tar.gz
More information about the scm-commits
mailing list