ralph pushed to nodejs-string_decoder (master). "Initial import (#1223440)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu May 21 21:42:18 UTC 2015


From 1d48afa9938a21766426fc79732cd6a36b0622de Mon Sep 17 00:00:00 2001
From: Ralph Bean <rbean at redhat.com>
Date: Thu, 21 May 2015 17:42:07 -0400
Subject: Initial import (#1223440)


diff --git a/.gitignore b/.gitignore
index e69de29..0a3bc03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/string_decoder-0.10.31.tgz
diff --git a/nodejs-string_decoder.spec b/nodejs-string_decoder.spec
new file mode 100644
index 0000000..eab13ac
--- /dev/null
+++ b/nodejs-string_decoder.spec
@@ -0,0 +1,72 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+# Tests are disabled.  We could run them, but they are not shipped with tar.
+%global enable_tests 0
+%global barename string_decoder
+
+Name:               nodejs-string_decoder
+Version:            0.10.31
+Release:            2%{?dist}
+Summary:            The string_decoder module from Node core
+
+License:            MIT
+URL:                https://www.npmjs.org/package/string_decoder
+Source0:            http://registry.npmjs.org/string_decoder/-/string_decoder-%{version}.tgz
+BuildArch:          noarch
+
+%if 0%{?fedora}
+ExclusiveArch:      %{nodejs_arches} noarch
+%else
+ExclusiveArch:      %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires:      nodejs-packaging >= 6
+
+%if 0%{?enable_tests}
+BuildRequires:      npm(tap)
+%endif
+
+
+%description
+The string_decoder module from Node core.
+
+%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}/string_decoder
+cp -pr package.json index.js \
+    %{buildroot}%{nodejs_sitelib}/string_decoder
+
+%nodejs_symlink_deps
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+tap test/simple/*.js
+%endif
+
+%files
+%doc README.md
+%license LICENSE
+%{nodejs_sitelib}/string_decoder/
+
+%changelog
+* Thu May 21 2015 Ralph Bean <rbean at redhat.com> - 0.10.31-2
+- Process feedback from package review.
+- Remove Group tag.
+- Remove '19' from fedora conditional.
+- Use %%license macro for LICENSE
+- Disable tests, since they're not shipped with the tarball.
+
+* Wed May 20 2015 Ralph Bean <rbean at redhat.com> - 0.10.31-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..ca5cfbd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+18cb5ea06f6cee4831f9a56fc6f04c20  string_decoder-0.10.31.tgz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/nodejs-string_decoder.git/commit/?h=master&id=1d48afa9938a21766426fc79732cd6a36b0622de


More information about the scm-commits mailing list