diff --git a/.gitignore b/.gitignore index e69de29..e6eb804 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/grunt-angular-templates-0.5.7.tgz diff --git a/nodejs-grunt-angular-templates.spec b/nodejs-grunt-angular-templates.spec new file mode 100644 index 0000000..5f554ce --- /dev/null +++ b/nodejs-grunt-angular-templates.spec @@ -0,0 +1,66 @@ +# Tests disabled: depend on jshint which has incompatible license +%global enable_tests 0 +%global srcname grunt-angular-templates + +Name: nodejs-grunt-angular-templates +Version: 0.5.7 +Release: 1%{?dist} +Summary: Grunt build task to concatenate & register your AngularJS templates +License: MIT +URL: https://github.com/ericclemmons/grunt-angular-templates +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(grunt) +BuildRequires: npm(grunt-cli) +BuildRequires: npm(grunt-contrib-clean) +BuildRequires: npm(grunt-contrib-copy) +BuildRequires: npm(grunt-contrib-cssmin) +BuildRequires: npm(grunt-contrib-jshint) +BuildRequires: npm(grunt-contrib-nodeunit) +BuildRequires: npm(grunt-usemin) +%endif + + +%description +Speed up your AngularJS app by automatically minifying, combining, and +automatically caching your HTML templates with $templateCache. + + +%prep +%setup -q -n package +rm -rf node_modules/ + + +%build +%nodejs_symlink_deps --build + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json Gruntfile.js tasks/ \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + + +%check +%if 0%{?enable_tests} +%nodejs_symlink_deps --check +grunt +%endif + + +%files +%doc README.md LICENSE CONTRIBUTORS.md +%{nodejs_sitelib}/%{srcname}/ + + +%changelog +* Sun Nov 16 2014 Piotr Popieluch - 0.5.7-1 +- Initial package. diff --git a/sources b/sources index e69de29..0c31caa 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fc8b1d480b9b5859006a1c0cec487c69 grunt-angular-templates-0.5.7.tgz