diff --git a/.gitignore b/.gitignore index e69de29..8748234 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/param-case-1.0.1.tgz diff --git a/nodejs-param-case.spec b/nodejs-param-case.spec new file mode 100644 index 0000000..fa618b6 --- /dev/null +++ b/nodejs-param-case.spec @@ -0,0 +1,57 @@ +%global enable_tests 1 +%global srcname param-case + +Name: nodejs-%{srcname} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Param case a string +License: MIT +URL: https://github.com/blakeembrey/%{srcname} +Source0: http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(istanbul) +BuildRequires: npm(sentence-case) +BuildRequires: npm(mocha) +%endif + + +%description +%{summary}. + + +%prep +%setup -q -n package + + +%build +#nothing to do + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json param-case.js %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +istanbul-js cover mocha -- -R spec +%endif + + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/%{srcname} + + +%changelog +* Sun Nov 16 2014 Piotr Popieluch - 1.0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..2c1e9f7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c9f4e495e7f446470ebfc964b846a9f4 param-case-1.0.1.tgz