From 445f50698c5851400550027797868c8f0d7373f0 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jul 23 2014 18:14:15 +0000 Subject: Initial import (#1122217) --- diff --git a/.gitignore b/.gitignore index e69de29..6ac2f18 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/data-uri-to-buffer-0.0.3.tgz diff --git a/nodejs-data-uri-to-buffer.spec b/nodejs-data-uri-to-buffer.spec new file mode 100644 index 0000000..2a3aa4d --- /dev/null +++ b/nodejs-data-uri-to-buffer.spec @@ -0,0 +1,65 @@ +# This macro is needed at the start for building on EL6 +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +%global barename data-uri-to-buffer + +Name: nodejs-data-uri-to-buffer +Version: 0.0.3 +Release: 1%{?dist} +Summary: Generate a Buffer instance from a Data URI string + +Group: Development/Libraries +License: MIT +URL: https://www.npmjs.org/package/data-uri-to-buffer +Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: nodejs-packaging >= 6 + +%if 0%{?enable_tests} +BuildRequires: npm(mocha) +%endif + +%description +Generate a Buffer instance from a Data URI string + +%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}/data-uri-to-buffer +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/data-uri-to-buffer + +%nodejs_symlink_deps + + +%check +%if 0%{?enable_tests} +%nodejs_symlink_deps --check +mocha --reporter spec +%endif + + +%files +%doc README.md +%{nodejs_sitelib}/data-uri-to-buffer/ + +%changelog +* Tue Jul 22 2014 Ralph Bean - 0.0.3-1 +- Initial packaging for Fedora. diff --git a/sources b/sources index e69de29..805efb5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4e5d42d669be9e0c35b11058886b421d data-uri-to-buffer-0.0.3.tgz