[nodejs-grunt-contrib-cssmin] Initial import (#1115673)

Ralph Bean ralph at fedoraproject.org
Fri Oct 24 13:09:27 UTC 2014


commit 7c35df7bc54a823c1d680a62f5c62919bf290431
Author: Ralph Bean <rbean at redhat.com>
Date:   Fri Oct 24 09:09:26 2014 -0400

    Initial import (#1115673)

 .gitignore                       |    1 +
 nodejs-grunt-contrib-cssmin.spec |   86 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 3 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7c0aaf4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-contrib-cssmin-0.10.0.tgz
diff --git a/nodejs-grunt-contrib-cssmin.spec b/nodejs-grunt-contrib-cssmin.spec
new file mode 100644
index 0000000..c393e2f
--- /dev/null
+++ b/nodejs-grunt-contrib-cssmin.spec
@@ -0,0 +1,86 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename grunt-contrib-cssmin
+
+Name:               nodejs-grunt-contrib-cssmin
+Version:            0.10.0
+Release:            1%{?dist}
+Summary:            Compress CSS files
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/grunt-contrib-cssmin
+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(chalk)
+BuildRequires:      npm(clean-css)
+BuildRequires:      npm(grunt)
+BuildRequires:      npm(maxmin)
+
+Requires:           npm(chalk)
+Requires:           npm(clean-css)
+Requires:           npm(grunt)
+Requires:           npm(maxmin)
+
+%if 0%{?enable_tests}
+BuildRequires:      npm(grunt-contrib-nodeunit)
+BuildRequires:      npm(grunt-contrib-jshint)
+BuildRequires:      npm(grunt)
+BuildRequires:      npm(grunt-contrib-internal)
+BuildRequires:      npm(grunt-contrib-clean)
+%endif
+
+
+%description
+Compress CSS files.
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+%nodejs_fixdep maxmin ~0.x
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-contrib-cssmin
+cp -pr package.json tasks \
+    %{buildroot}%{nodejs_sitelib}/grunt-contrib-cssmin
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+grunt test
+%endif
+
+
+%files
+%doc LICENSE-MIT README.md
+%{nodejs_sitelib}/grunt-contrib-cssmin/
+
+%changelog
+* Thu Oct 23 2014 Ralph Bean <rbean at redhat.com> - 0.10.0-1
+- Latest upstream.
+- Build as noarch.
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.9.0-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..9c7698b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+71af6f34df2f5142633e4e13f828d06f  grunt-contrib-cssmin-0.10.0.tgz


More information about the scm-commits mailing list