]> git.pld-linux.org Git - packages/nodejs-normalize-package-data.git/commitdiff
- new auto/th/nodejs-normalize-package-data-0.2.9-1
authorŁukasz Kieś <kiesiu@pld-linux.org>
Thu, 13 Mar 2014 07:57:18 +0000 (08:57 +0100)
committerŁukasz Kieś <kiesiu@pld-linux.org>
Thu, 13 Mar 2014 07:57:18 +0000 (08:57 +0100)
nodejs-normalize-package-data.spec [new file with mode: 0644]

diff --git a/nodejs-normalize-package-data.spec b/nodejs-normalize-package-data.spec
new file mode 100644 (file)
index 0000000..9bca73d
--- /dev/null
@@ -0,0 +1,41 @@
+%define                pkg     normalize-package-data
+Summary:       Normalizes data that can be found in package.json files
+Name:          nodejs-%{pkg}
+Version:       0.2.9
+Release:       1
+License:       MIT
+Group:         Development/Libraries
+Source0:       http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5: 78b921653419beff1ffa25a5dcc7e47d
+URL:           https://github.com/meryn/normalize-package-data
+BuildRequires: rpmbuild(macros) >= 1.634
+Requires:      nodejs
+Requires:      nodejs-github-url-from-git = 1.1.1
+Requires:      nodejs-github-url-from-username-repo = 0.0.2
+Requires:      nodejs-semver < 3
+Requires:      nodejs-semver >= 2
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README.md
+%{nodejs_libdir}/%{pkg}
This page took 0.085214 seconds and 4 git commands to generate.