diff --git a/.gitignore b/.gitignore index e69de29..0df70f0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/char-spinner-1.0.1.tgz diff --git a/nodejs-char-spinner.spec b/nodejs-char-spinner.spec new file mode 100644 index 0000000..22aec5a --- /dev/null +++ b/nodejs-char-spinner.spec @@ -0,0 +1,61 @@ +%{?scl:%scl_package nodejs-char-spinner} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 1 + +Name: %{?scl_prefix}nodejs-char-spinner +Version: 1.0.1 +Release: 3%{?dist} +Summary: Node.js char spinner +License: ISC +Url: https://github.com/isaacs/char-spinner +Source: http://registry.npmjs.org/char-spinner/-/char-spinner-%{version}.tgz +BuildRequires: nodejs-packaging +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +%if 0%{?enable_tests} +BuildRequires: npm(tap) +%endif + +%description +Put a little spinner on process.stderr, as unobtrusively as possible. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/char-spinner +cp -pr package.json spin.js \ + %{buildroot}%{nodejs_sitelib}/char-spinner + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check +tap test/*.js +%endif + +%files +%doc README.md +%{nodejs_sitelib}/char-spinner +%license LICENSE + +%changelog +* Tue Mar 10 2015 Zuzana Svetlikova - 1.0.1-3 +- Fixed dependency on nodejs-packaging +- added %%nodejs_symlink_deps, %%check and %%license +- changed ExclusiveArch and %%nodejs_find_and_provides +- removed Group, BuildRoot and %%defattr + + +* Tue Jan 13 2015 Tomas Hrcka - 1.0.1-2 +- Remove undefined macro + +* Mon Jan 12 2015 Tomas Hrcka - 1.0.1-1 +- Initial build + diff --git a/sources b/sources index e69de29..c872d5d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a61676ddeefc87f89f60f3160f4219bb char-spinner-1.0.1.tgz