[packages/nodejs-normalize-package-data] - new

kiesiu kiesiu at pld-linux.org
Thu Mar 13 08:57:43 CET 2014


commit 1e33e744121a56b3796a3945a5bd5b0c6aa1408a
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Thu Mar 13 08:57:18 2014 +0100

    - new

 nodejs-normalize-package-data.spec | 41 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
---
diff --git a/nodejs-normalize-package-data.spec b/nodejs-normalize-package-data.spec
new file mode 100644
index 0000000..9bca73d
--- /dev/null
+++ b/nodejs-normalize-package-data.spec
@@ -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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-normalize-package-data.git/commitdiff/1e33e744121a56b3796a3945a5bd5b0c6aa1408a



More information about the pld-cvs-commit mailing list