[packages/nodejs-json-stringify-safe] - new
kiesiu
kiesiu at pld-linux.org
Thu Mar 13 09:25:30 CET 2014
commit 35cc30ca76e7e4cff1b2ea54a0d6f1b5b475b94b
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date: Thu Mar 13 09:25:10 2014 +0100
- new
nodejs-json-stringify-safe.spec | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
---
diff --git a/nodejs-json-stringify-safe.spec b/nodejs-json-stringify-safe.spec
new file mode 100644
index 0000000..49a6deb
--- /dev/null
+++ b/nodejs-json-stringify-safe.spec
@@ -0,0 +1,35 @@
+%define pkg json-stringify-safe
+Summary: Like JSON.stringify, but doesn't blow up on circular refs
+Name: nodejs-%{pkg}
+Version: 5.0.0
+Release: 1
+License: BSD
+Group: Development/Libraries
+Source0: http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5: 197b319fb2d2772f4830c8443e57faba
+URL: https://github.com/isaacs/json-stringify-safe
+BuildRequires: rpmbuild(macros) >= 1.634
+Requires: nodejs
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Like JSON.stringify, but doesn't blow up on circular refs.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr stringify.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs-json-stringify-safe.git/commitdiff/35cc30ca76e7e4cff1b2ea54a0d6f1b5b475b94b
More information about the pld-cvs-commit
mailing list