Blame SPECS/nodejs-binary-extensions.spec

08662d
%{?scl:%scl_package nodejs-%{npm_name}}
08662d
%{!?scl:%global pkg_name %{name}}
08662d
08662d
%{?nodejs_find_provides_and_requires}
08662d
%global npm_name binary-extensions
08662d
08662d
Summary:       List of binary file extensions
08662d
Name:          %{?scl_prefix}nodejs-%{npm_name}
08662d
Version:       1.3.1
08662d
Release:       2%{?dist}
08662d
License:       MIT
08662d
URL:           https://github.com/sindresorhus/binary-extensions
08662d
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
08662d
BuildRequires: nodejs010-runtime
08662d
ExclusiveArch: %{nodejs_arches} noarch
08662d
BuildArch:     noarch
08662d
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
08662d
08662d
%description
08662d
List of binary file extensions
08662d
08662d
The list is just a JSON file and can be used wherever.
08662d
08662d
%prep
08662d
%setup -q -n package
08662d
08662d
%build
08662d
08662d
%install
08662d
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
08662d
cp -pr binary-extensions.json package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
08662d
08662d
%nodejs_symlink_deps
08662d
08662d
%files
08662d
%{!?_licensedir:%global license %doc}
08662d
%doc readme.md
08662d
%license license
08662d
%{nodejs_sitelib}/%{npm_name}
08662d
08662d
%changelog
08662d
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 1.3.1-2
08662d
- Enable scl macros
08662d
08662d
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.3.1-1
08662d
- Initial package