From 1b27d9ef7eab62e9fcd3ddcbfd2da9729af97c98 Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Dec 15 2015 21:17:02 +0000 Subject: Initial import (#1291076). --- diff --git a/.gitignore b/.gitignore index e69de29..d120235 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/1.10.1.tar.gz diff --git a/nodejs-dashdash.spec b/nodejs-dashdash.spec new file mode 100644 index 0000000..d02c158 --- /dev/null +++ b/nodejs-dashdash.spec @@ -0,0 +1,64 @@ +# needed for building on el6 +%{?nodejs_find_provides_and_requires} + +%global enable_tests 1 +%global srcname dashdash + +%global owner trentm + +Name: nodejs-%{srcname} +Version: 1.10.1 +Release: 1%{?dist} +Summary: A light, featureful and explicit option parsing library for node.js +License: MIT +URL: https://github.com/trentm/node-dashdash +Source0: https://github.com/%{owner}/node-%{srcname}/archive/%{version}.tar.gz + +BuildArch: noarch + +%if 0%{?rhel} == 6 +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%else +ExclusiveArch: %{nodejs_arches} noarch +%endif + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(nodeunit) +BuildRequires: npm(assert-plus) +%endif + +%description +%{summary}. + +%prep +%setup -qn node-%{srcname}-%{version} +rm -rf node_modules + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} + +cp -pr package.json lib/ \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +nodeunit test/*.test.js +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc CHANGES.md AUTHORS README.md TODO.txt examples +%license LICENSE.txt +%{nodejs_sitelib}/%{srcname} + +%changelog +* Sun Dec 13 2015 Piotr Popieluch - 1.10.1-1 +- Initial package diff --git a/sources b/sources index e69de29..0f6f324 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ddb232ec395782cc7a3aeff2d1787e3c 1.10.1.tar.gz