[nodejs-normalize-package-data/el6] initial package

T.C. Hollingsworth patches at fedoraproject.org
Fri Jun 14 06:13:57 UTC 2013


commit 961e3907a49c3d0c306c69c6322d1b955a8b4916
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Thu Jun 13 23:12:36 2013 -0700

    initial package

 .gitignore                         |    1 +
 nodejs-normalize-package-data.spec |   61 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..06a3564 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/normalize-package-data-0.1.6.tgz
diff --git a/nodejs-normalize-package-data.spec b/nodejs-normalize-package-data.spec
new file mode 100644
index 0000000..2ed1849
--- /dev/null
+++ b/nodejs-normalize-package-data.spec
@@ -0,0 +1,61 @@
+%{?nodejs_find_provides_and_requires}
+
+Name:           nodejs-normalize-package-data
+Version:        0.1.6
+Release:        1%{?dist}
+Summary:        Normalizes npm/package.json metadata
+BuildArch:      noarch
+
+Group:          Development/Libraries
+License:        BSD
+URL:            https://github.com/meryn/normalize-package-data
+Source0:        http://registry.npmjs.org/normalize-package-data/-/normalize-package-data-%{version}.tgz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  nodejs-devel
+
+#for tests
+BuildRequires:  npm(tap)
+BuildRequires:  npm(underscore)
+BuildRequires:  npm(async)
+BuildRequires:  npm(semver)
+BuildRequires:  npm(github-url-from-git)
+
+%description
+normalize-package-data exports a function that normalizes package metadata. This
+data is typically found in a package.json file, but in principle could come from
+any source - for example the npm registry.
+
+normalize-package-data is used by read-package-json to normalize the data it
+reads from a package.json file. In turn, read-package-json is used by npm and
+various npm-related tools.
+
+%prep
+%setup -q -n package
+
+%build
+#nothing to do
+
+%install
+rm -rf %buildroot
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/normalize-package-data
+cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/normalize-package-data
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%tap test/*.js
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,root,root,-)
+%{nodejs_sitelib}/normalize-package-data
+%doc README.md LICENSE AUTHORS
+
+%changelog
+* Sun Jun 02 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.1.6-1
+- initial package
diff --git a/sources b/sources
index e69de29..4e520a0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+385827b18d51372cefda62731dc1ddba  normalize-package-data-0.1.6.tgz


More information about the scm-commits mailing list