Blame SPECS/nodejs-binary-extensions.spec

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