Blame SPECS/nodejs-filename-regex.spec

d807c0
%{?scl:%scl_package nodejs-%{npm_name}}
d807c0
%{!?scl:%global pkg_name %{name}}
d807c0
d807c0
%{?nodejs_find_provides_and_requires}
d807c0
%global npm_name filename-regex
d807c0
d807c0
Summary:       Regular expression for matching file names
d807c0
Name:          %{?scl_prefix}nodejs-%{npm_name}
d807c0
Version:       2.0.0
d807c0
Release:       2%{?dist}
d807c0
License:       MIT
d807c0
URL:           https://github.com/regexps/filename-regex
d807c0
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
d807c0
BuildRequires: nodejs010-runtime
d807c0
ExclusiveArch: %{nodejs_arches} noarch
d807c0
BuildArch:     noarch
d807c0
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
d807c0
d807c0
%description
d807c0
Regular expression for matching file names, with or without extension.
d807c0
d807c0
%prep
d807c0
%setup -q -n package
d807c0
d807c0
%build
d807c0
d807c0
%install
d807c0
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
d807c0
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
d807c0
d807c0
%nodejs_symlink_deps
d807c0
d807c0
%files
d807c0
%{!?_licensedir:%global license %doc}
d807c0
%doc README.md
d807c0
%{nodejs_sitelib}/%{npm_name}
d807c0
d807c0
%changelog
d807c0
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-2
d807c0
- Enable scl macros
d807c0
d807c0
* Tue Dec 15 2015 Troy Dawson <tdawson@redhat.com> - 2.0.0-1
d807c0
- Initial package