[nodejs-grunt-html-validation] Initial import (#1115676)

Ralph Bean ralph at fedoraproject.org
Fri Oct 24 14:14:03 UTC 2014


commit cda503638d4e245967d3d5d2ed6de1a122cccd50
Author: Ralph Bean <rbean at redhat.com>
Date:   Fri Oct 24 10:14:02 2014 -0400

    Initial import (#1115676)

 .gitignore                        |    1 +
 nodejs-grunt-html-validation.spec |   96 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 3 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..991d823 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-html-validation-0.1.18.tgz
diff --git a/nodejs-grunt-html-validation.spec b/nodejs-grunt-html-validation.spec
new file mode 100644
index 0000000..2f2acf6
--- /dev/null
+++ b/nodejs-grunt-html-validation.spec
@@ -0,0 +1,96 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename grunt-html-validation
+
+Name:               nodejs-grunt-html-validation
+Version:            0.1.18
+Release:            2%{?dist}
+Summary:            W3C html validation grunt plugin
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/grunt-html-validation
+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
+
+BuildRequires:      npm(colors)
+BuildRequires:      npm(grunt)
+BuildRequires:      npm(request)
+BuildRequires:      npm(w3cjs)
+
+Requires:           npm(colors)
+Requires:           npm(grunt)
+Requires:           npm(request)
+Requires:           npm(w3cjs)
+
+%if 0%{?enable_tests}
+BuildRequires:      npm(grunt-contrib-nodeunit)
+BuildRequires:      npm(grunt-contrib-jshint)
+BuildRequires:      npm(grunt)
+BuildRequires:      npm(grunt-contrib-clean)
+%endif
+
+
+%description
+W3C html validation grunt plugin. Validate all files in a directory
+automatically.
+
+%prep
+%setup -q -n package
+
+# Remove odd executable bits.
+chmod -x LICENSE-MIT package.json tasks/html_validation.js
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+%nodejs_fixdep request ~2.x
+%nodejs_fixdep w3cjs ~0.1.x
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-html-validation
+cp -pr package.json tasks \
+    %{buildroot}%{nodejs_sitelib}/grunt-html-validation
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+grunt test
+%endif
+
+
+%files
+%doc LICENSE-MIT README.md
+%{nodejs_sitelib}/grunt-html-validation/
+
+%changelog
+* Fri Oct 24 2014 Ralph Bean <rbean at redhat.com> - 0.1.18-2
+- Remove further executable bit from tasks/html_validation.js.
+
+* Thu Oct 23 2014 Ralph Bean <rbean at redhat.com> - 0.1.18-1
+- Latest upstream.
+- Build as noarch.
+- Remove odd executable bits on package.json and LICENSE-MIT.
+- Remove Gruntfile.js from the package.
+- Remove lib/ from the package (as per upstream).
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.1.6-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..678ea5d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+77c4f498e3cecee2ef5dd393b1fc47dd  grunt-html-validation-0.1.18.tgz


More information about the scm-commits mailing list