[nodejs-grunt-banner] Initial import (#1115669)

Ralph Bean ralph at fedoraproject.org
Fri Oct 24 13:11:55 UTC 2014


commit ae9bf95607d672c4b12a8de0f9925b49e65ccf05
Author: Ralph Bean <rbean at redhat.com>
Date:   Fri Oct 24 09:11:57 2014 -0400

    Initial import (#1115669)

 .gitignore               |    1 +
 nodejs-grunt-banner.spec |   77 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ff31bbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-banner-0.2.3.tgz
diff --git a/nodejs-grunt-banner.spec b/nodejs-grunt-banner.spec
new file mode 100644
index 0000000..bff97da
--- /dev/null
+++ b/nodejs-grunt-banner.spec
@@ -0,0 +1,77 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename grunt-banner
+
+Name:               nodejs-grunt-banner
+Version:            0.2.3
+Release:            2%{?dist}
+Summary:            Adds a simple banner to files
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/grunt-banner
+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(grunt)
+
+Requires:           npm(grunt)
+
+%if 0%{?enable_tests}
+BuildRequires:      npm(grunt-contrib-clean)
+BuildRequires:      npm(grunt)
+BuildRequires:      npm(grunt-contrib-nodeunit)
+BuildRequires:      npm(grunt-contrib-copy)
+BuildRequires:      npm(grunt-contrib-jshint)
+%endif
+
+%description
+Adds a simple banner to files
+
+%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}/grunt-banner
+cp -pr package.json tasks \
+    %{buildroot}%{nodejs_sitelib}/grunt-banner
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+grunt test
+%endif
+
+
+%files
+%doc LICENSE-MIT README.md
+%{nodejs_sitelib}/grunt-banner/
+
+%changelog
+* Thu Oct 23 2014 Ralph Bean <rbean at redhat.com> - 0.2.3-2
+- Build as noarch.
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.2.3-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..86687bb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+76fb17e33c77f3444180f92d423cc934  grunt-banner-0.2.3.tgz


More information about the scm-commits mailing list