[nodejs-grunt-contrib-htmlmin] Initial import (#1177702).

Piotr Popieluch piotrp at fedoraproject.org
Sun Mar 1 17:53:27 UTC 2015


commit 3530cf5cf2da24e30891932511811dce3a7de408
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date:   Sun Mar 1 18:53:15 2015 +0100

    Initial import (#1177702).

 .gitignore                        |  1 +
 nodejs-grunt-contrib-htmlmin.spec | 77 +++++++++++++++++++++++++++++++++++++++
 sources                           |  1 +
 3 files changed, 79 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3fd91d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-contrib-htmlmin-0.4.0.tar.gz
diff --git a/nodejs-grunt-contrib-htmlmin.spec b/nodejs-grunt-contrib-htmlmin.spec
new file mode 100644
index 0000000..0adcf44
--- /dev/null
+++ b/nodejs-grunt-contrib-htmlmin.spec
@@ -0,0 +1,77 @@
+%{?nodejs_find_provides_and_requires}
+
+# disable tests
+# tests depend on jshint which is not packaged due to license issues
+# https://github.com/jshint/jshint/issues/1234
+%global enable_tests 0
+%global srcname grunt-contrib-htmlmin
+
+Name:           nodejs-%{srcname}
+Version:        0.4.0
+Release:        1%{?dist}
+Summary:        Minify HTML
+License:        MIT
+URL:            https://github.com/gruntjs/grunt-contrib-htmlmin
+Source0:        https://github.com/gruntjs/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
+
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(grunt)
+BuildRequires:  npm(grunt-contrib-clean)
+BuildRequires:  npm(grunt-contrib-internal)
+BuildRequires:  npm(grunt-contrib-jshint)
+BuildRequires:  npm(grunt-contrib-nodeunit)
+%endif
+
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n %{srcname}-%{version}
+rm -rf node_modules/
+
+%nodejs_fixdep chalk '0.x'
+%nodejs_fixdep pretty-bytes
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
+cp -pr package.json tasks/ %{buildroot}%{nodejs_sitelib}/%{srcname}
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+grunt test
+%endif
+
+
+%files
+%doc README.md
+%license LICENSE-MIT
+%{nodejs_sitelib}/%{srcname}
+
+
+%changelog
+* Fri Feb 27 2015 Piotr Popieluch <piotr1212 at gmail.com> - 0.4.0-1
+- Updated to upstream 0.4.0
+- Corrected URL
+- Clarified disabled check comment
+- Moved licence from %doc to %license
+- Moved Source0 from npm to github, new npm release doesn't contain the license
+- Fixdep on chalk and pretty-bytes
+
+* Fri Nov 21 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.3.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1c30bbe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f2cf639b082847268cdd7541f05ccad0  grunt-contrib-htmlmin-0.4.0.tar.gz


More information about the scm-commits mailing list