ae9bf95
# This macro is needed at the start for building on EL6
ae9bf95
%{?nodejs_find_provides_and_requires}
ae9bf95
ae9bf95
%global enable_tests 0
ae9bf95
ae9bf95
%global barename grunt-banner
ae9bf95
ae9bf95
Name:               nodejs-grunt-banner
61201ea
Version:            0.3.1
c2c0701
Release:            8%{?dist}
ae9bf95
Summary:            Adds a simple banner to files
ae9bf95
ae9bf95
License:            MIT
ae9bf95
URL:                https://www.npmjs.org/package/grunt-banner
ae9bf95
Source0:            http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
ae9bf95
BuildArch:          noarch
ae9bf95
ae9bf95
%if 0%{?fedora} >= 19
ae9bf95
ExclusiveArch:      %{nodejs_arches} noarch
ae9bf95
%else
ae9bf95
ExclusiveArch:      %{ix86} x86_64 %{arm} noarch
ae9bf95
%endif
ae9bf95
ae9bf95
BuildRequires:      nodejs-packaging >= 6
ae9bf95
ae9bf95
BuildRequires:      npm(grunt)
ae9bf95
ae9bf95
Requires:           npm(grunt)
ae9bf95
ae9bf95
%if 0%{?enable_tests}
ae9bf95
BuildRequires:      npm(grunt-contrib-clean)
ae9bf95
BuildRequires:      npm(grunt)
ae9bf95
BuildRequires:      npm(grunt-contrib-nodeunit)
ae9bf95
BuildRequires:      npm(grunt-contrib-copy)
ae9bf95
BuildRequires:      npm(grunt-contrib-jshint)
ae9bf95
%endif
ae9bf95
ae9bf95
%description
ae9bf95
Adds a simple banner to files
ae9bf95
ae9bf95
%prep
ae9bf95
%setup -q -n package
ae9bf95
ae9bf95
# Remove bundled node_modules if there are any..
ae9bf95
rm -rf node_modules/
ae9bf95
ae9bf95
%nodejs_fixdep --caret
ae9bf95
ae9bf95
%build
ae9bf95
%nodejs_symlink_deps --build
ae9bf95
ae9bf95
%install
ae9bf95
mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-banner
ae9bf95
cp -pr package.json tasks \
ae9bf95
    %{buildroot}%{nodejs_sitelib}/grunt-banner
ae9bf95
ae9bf95
%nodejs_symlink_deps
ae9bf95
ae9bf95
ae9bf95
%check
ae9bf95
%if 0%{?enable_tests}
ae9bf95
%nodejs_symlink_deps --check
ae9bf95
grunt test
ae9bf95
%endif
ae9bf95
ae9bf95
ae9bf95
%files
ae9bf95
%doc LICENSE-MIT README.md
ae9bf95
%{nodejs_sitelib}/grunt-banner/
ae9bf95
ae9bf95
%changelog
c2c0701
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-8
c2c0701
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c2c0701
9c884c7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-7
9c884c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9c884c7
89f14a4
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
89f14a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
89f14a4
c2aa183
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-5
c2aa183
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c2aa183
02f7bd1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4
02f7bd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
02f7bd1
c6f6449
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
c6f6449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c6f6449
6fdfc4a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
6fdfc4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6fdfc4a
61201ea
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 0.3.1-1
61201ea
- new version
61201ea
ae9bf95
* Thu Oct 23 2014 Ralph Bean <rbean@redhat.com> - 0.2.3-2
ae9bf95
- Build as noarch.
ae9bf95
ae9bf95
* Tue Jul 08 2014 Ralph Bean <rbean@redhat.com> - 0.2.3-1
ae9bf95
- Initial packaging for Fedora.