Blame SPECS/nodejs-umask.spec

0b34ff
%{?scl:%scl_package nodejs-umask}
0b34ff
%{!?scl:%global pkg_name %{name}}
0b34ff
0b34ff
# spec file for package nodejs-nodejs-umask
0b34ff
0b34ff
%global npm_name umask
0b34ff
%{?nodejs_find_provides_and_requires}
0b34ff
0b34ff
%global enable_tests 0
0b34ff
0b34ff
Name:           %{?scl_prefix}nodejs-umask
0b34ff
Version:        1.1.0
0b34ff
Release:        5%{?dist}
0b34ff
Summary:        Convert umask from string <-> number
0b34ff
Url:            https://github.com/smikes/umask
0b34ff
Source0:        http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
0b34ff
License:        MIT
0b34ff
BuildArch:	noarch
0b34ff
ExclusiveArch:	%{nodejs_arches} noarch
0b34ff
0b34ff
BuildRequires:  %{?scl_prefix}nodejs-devel
0b34ff
0b34ff
%if 0%{?enable_tests}
0b34ff
BuildRequires: %{?scl_prefix}npm(code)
0b34ff
BuildRequires: %{?scl_prefix}npm(jslint)
0b34ff
BuildRequires: %{?scl_prefix}npm(lab)
0b34ff
%endif
0b34ff
0b34ff
%description
0b34ff
Convert umask from string <-> number
0b34ff
0b34ff
%prep
0b34ff
%setup -q -n package
0b34ff
0b34ff
%build
0b34ff
#nothing to do
0b34ff
0b34ff
%install
0b34ff
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
0b34ff
0b34ff
cp -pr package.json index.js \
0b34ff
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
0b34ff
0b34ff
%{nodejs_symlink_deps}
0b34ff
0b34ff
%if 0%{?enable_tests}
0b34ff
0b34ff
%check
0b34ff
%{nodejs_symlink_deps} --check
0b34ff
lab -ct 100
0b34ff
jslint --terse --latest *.js test/*.js
0b34ff
%endif
0b34ff
0b34ff
%files
0b34ff
%{nodejs_sitelib}/umask
0b34ff
0b34ff
%doc README.md
0b34ff
%doc LICENSE
0b34ff
0b34ff
%changelog
0b34ff
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.0-5
0b34ff
- rebuilt
0b34ff
0b34ff
* Fri Nov 27 2015 Tomas Hrcka <thrcka@redhat.com> - 1.1.0-4
0b34ff
- Enable SCL macros
0b34ff
0b34ff
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
0b34ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0b34ff
0b34ff
* Thu May 21 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.0-2
0b34ff
- Removed %%clean and rm -rf %%buildroot from %%install
0b34ff
- changed Summary and %%description to start with capital letter
0b34ff
0b34ff
* Thu May 14 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.0-1
0b34ff
- Initial build