Blob Blame History Raw
%{?scl:%scl_package nodejs-chmodr}
%{!?scl:%global pkg_name %{name}}
%{?nodejs_find_provides_and_requires}

Name:       %{?scl_prefix}nodejs-chmodr
Version:    1.0.2
Release:    4%{?dist}
Summary:    Recursively change UNIX file permissions
License:    ISC
URL:        https://github.com/isaacs/chmodr
Source0:    http://registry.npmjs.org/chmodr/-/chmodr-%{version}.tgz
BuildArch:  noarch
ExclusiveArch:  %{nodejs_arches} noarch

BuildRequires:  %{?scl_prefix}nodejs-devel

%description
%{summary}, like `chmod -R`.

%prep
%setup -q -n package

%build
#nothing to do

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/chmodr
cp -pr chmodr.js package.json %{buildroot}%{nodejs_sitelib}/chmodr

%nodejs_symlink_deps

# disabled; TAP is not in the distro yet
#%%check
#%%tap test/*

%files
%{nodejs_sitelib}/chmodr
%doc README.md LICENSE

%changelog
* Thu Jun 09 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-4
- Resolves: rhbz#1334856
- ^fixes wrong license
- add %%ExclusiveArch

* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-3
- Use macro in -runtime dependency

* Tue Feb 16 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-2
- Rebuild with new collection metapackage

* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-1
- New upstream release

* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 0.1.0-4
- replace provides and requires with macro

* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.1.0-3
- Add support for software collections

* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.0-2
- fix License tag

* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.0-1
- initial package