From 82179a1605240bc83783159198cbf2df0d683030 Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Dec 19 2014 19:19:19 +0000 Subject: Initial import (#1171320). --- diff --git a/.gitignore b/.gitignore index e69de29..672ff43 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/title-case-1.0.1.tgz diff --git a/nodejs-title-case.spec b/nodejs-title-case.spec new file mode 100644 index 0000000..cc78ef2 --- /dev/null +++ b/nodejs-title-case.spec @@ -0,0 +1,57 @@ +%global enable_tests 1 +%global srcname title-case + +Name: nodejs-%{srcname} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Title 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(upper-case) +BuildRequires: npm(sentence-case) +BuildRequires: npm(istanbul) +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 title-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..626f448 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c7fcf644175efaeb0d6c41363985e89d title-case-1.0.1.tgz