Blame SPECS/nodejs-ansistyles.spec

02850f
%{?scl:%scl_package nodejs-ansistyles}
02850f
%{!?scl:%global pkg_name %{name}}
02850f
02850f
# spec file for package nodejs-nodejs-ansistyles_0.1.3
02850f
02850f
%global npmname ansistyles
02850f
%{?nodejs_find_provides_and_requires}
02850f
02850f
Name:           %{?scl_prefix}nodejs-ansistyles
02850f
Version:        0.1.3
02850f
Release:        4%{?dist}
02850f
Summary:        Functions that surround a string with ansistyle codes so it prints in style.
02850f
Url:            https://github.com/thlorenz/ansistyles
02850f
Source0:        http://registry.npmjs.org/ansistyles/-/ansistyles-%{version}.tgz
02850f
License:        MIT
02850f
02850f
BuildArch:      noarch
02850f
02850f
%if 0%{?fedora} >= 19
02850f
ExclusiveArch:  %{nodejs_arches} noarch
02850f
%else
02850f
ExclusiveArch:  %{ix86} x86_64 %{arm} noarch
02850f
%endif
02850f
02850f
BuildRequires:  %{?scl_prefix}nodejs-devel
02850f
02850f
%description
02850f
Functions that surround a string with ansistyle codes so it prints in style.
02850f
02850f
%prep
02850f
%setup -q -n package
02850f
02850f
%build
02850f
#nothing to do
02850f
02850f
%install
02850f
mkdir -p %{buildroot}%{nodejs_sitelib}/ansistyles
02850f
cp -pr package.json ansistyles.js %{buildroot}%{nodejs_sitelib}/ansistyles
02850f
%nodejs_symlink_deps
02850f
02850f
%check
02850f
%{?scl:scl enable %{scl} "}
02850f
node test/ansistyles.js
02850f
%{?scl:"}
02850f
02850f
%files
02850f
%{nodejs_sitelib}/ansistyles
02850f
%doc LICENSE README.md
02850f
02850f
%changelog
02850f
* Thu Feb 18 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.3-4
02850f
- Add missing ExclusiveArch and BuildArch
02850f
- Use macro in -runtime dependency
02850f
- Rebuilt with updated metapackage
02850f
02850f
* Thu Jan 30 2014 Tomas Hrcka <thrcka@redhat.com> - 0.1.3-1
02850f
- Initial build