From 7d51a8145538728999f2c50feb65f6b9dd64a885 Mon Sep 17 00:00:00 2001 From: Jared K. Smith Date: Feb 02 2016 22:11:42 +0000 Subject: Initial packaging --- diff --git a/.gitignore b/.gitignore index e69de29..d58a406 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/only-shallow-1.2.0.tgz diff --git a/LICENSE-ISC.txt b/LICENSE-ISC.txt new file mode 100644 index 0000000..8351a30 --- /dev/null +++ b/LICENSE-ISC.txt @@ -0,0 +1,11 @@ +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/nodejs-only-shallow.spec b/nodejs-only-shallow.spec new file mode 100644 index 0000000..cc326af --- /dev/null +++ b/nodejs-only-shallow.spec @@ -0,0 +1,71 @@ +%{?nodejs_find_provides_and_requires} + +%global packagename only-shallow +%global enable_tests 1 + +Name: nodejs-only-shallow +Version: 1.2.0 +Release: 4%{?dist} +Summary: Like `deeper` and `deepest`, but less strict, and with 90s flavor + +License: ISC +URL: https://github.com/othiym23/only-shallow.git +Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz +Source1: LICENSE-ISC.txt +# upstream license file requested at https://github.com/othiym23/only-shallow/issues/3 +# In the meantime, I've added a license file with the text of the ISC license + + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(buffertools) +BuildRequires: npm(tap) +%endif + +%description +Like `deeper` and `deepest`, but less strict, and with 90s flavor + + +%prep +%setup -q -n package +cp -p %{SOURCE1} . + + +%build +# nothing to do! + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +%{_bindir}/tap test/*.js +%endif + + +%files +%{!?_licensedir:%global license %doc} +%doc *.md +%license LICENSE-ISC.txt +%{nodejs_sitelib}/%{packagename} + + + +%changelog +* Tue Jan 19 2016 Jared Smith - 1.2.0-4 +- Fix license + +* Tue Jan 19 2016 Jared Smith - 1.2.0-3 +- Fix build dependency on npm(buffertools) + +* Mon Oct 19 2015 Jared Smith - 1.2.0-2 +- Initial packging diff --git a/sources b/sources index e69de29..b25fe60 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8501983b8a51612c3e14ef7511604ab1 only-shallow-1.2.0.tgz