diff --git a/.gitignore b/.gitignore index e69de29..727f31d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/fg-lodash-0.0.2.tgz diff --git a/nodejs-fg-lodash.spec b/nodejs-fg-lodash.spec new file mode 100644 index 0000000..5e7003c --- /dev/null +++ b/nodejs-fg-lodash.spec @@ -0,0 +1,54 @@ +# Tests disabled due to missing dependencies +%global enable_tests 0 +%global srcname fg-lodash + +Name: nodejs-%{srcname} +Version: 0.0.2 +Release: 1%{?dist} +Summary: FG variant of lodash +License: MIT +URL: https://github.com/FGRibreau/lodash +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(gulp) +BuildRequires: npm(gulp-jasmine) +BuildRequires: npm(gulp-jshint) +%endif + +%description +%{summary}. + +%prep +%setup -q -n package +rm -rf node_modules +%nodejs_fixdep underscore.string '2.3.x' + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +gulp +%endif + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{srcname} + +%changelog +* Fri Aug 28 2015 Piotr Popieluch - 0.0.2-1 +- Initial package diff --git a/sources b/sources index e69de29..d59b7ac 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +da5cc9841a03fb098f1515f15c96125b fg-lodash-0.0.2.tgz