[nodejs-grunt-sed] initial version

Dan Callaghan dcallagh at fedoraproject.org
Mon Nov 24 03:50:05 UTC 2014


commit 97b8e6fdc7847d66313ff3f5ecc96f5734adbad0
Author: Dan Callaghan <dcallagh at redhat.com>
Date:   Sun Oct 12 15:06:37 2014 +1000

    initial version

 .gitignore            |    1 +
 nodejs-grunt-sed.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6f1d0ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-sed-0.1.1.tgz
diff --git a/nodejs-grunt-sed.spec b/nodejs-grunt-sed.spec
new file mode 100644
index 0000000..7144f6a
--- /dev/null
+++ b/nodejs-grunt-sed.spec
@@ -0,0 +1,55 @@
+%global modname grunt-sed
+
+%if ! ( 0%{?fedora} || 0%{?rhel} >= 7 )
+%{?nodejs_find_provides_and_requires}
+%global nodejs_arches %{ix86} x86_64 %{arm}
+%endif
+
+# tests are disabled until grunt-exec is packaged
+%bcond_with tests
+
+Name:           nodejs-%{modname}
+Version:        0.1.1
+Release:        1%{?dist}
+Summary:        Grunt task for search and replace
+License:        MIT
+URL:            https://github.com/jharding/grunt-sed
+Source0:        http://registry.npmjs.org/%{modname}/-/%{modname}-%{version}.tgz
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+BuildRequires:  nodejs-packaging
+%if %{with tests}
+BuildRequires:  npm(replace)
+BuildRequires:  npm(grunt-contrib-jshint)
+BuildRequires:  npm(grunt-exec)
+%endif
+
+%description
+Built on top of replace, grunt-sed is a Grunt plugin for performing search and 
+replace on files.
+
+%prep
+%setup -q -n package
+%nodejs_fixdep replace
+
+%build
+# nothing to do
+
+%check
+%if %{with tests}
+%nodejs_symlink_deps --check
+grunt test
+%endif
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname}
+cp -pr package.json tasks/ %{buildroot}%{nodejs_sitelib}/%{modname}/
+%nodejs_symlink_deps
+
+%files
+%doc README.md LICENSE-MIT
+%{nodejs_sitelib}/%{modname}
+
+%changelog
+* Sun Oct 12 2014 Dan Callaghan <dcallagh at redhat.com> - 0.1.1-1
+- initial version
diff --git a/sources b/sources
index e69de29..dfc29e1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b1ea808a3e011e44636c6180c4a857e7  grunt-sed-0.1.1.tgz


More information about the scm-commits mailing list