|
Jared K. Smith |
359bcda |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%global packagename escape-html
|
|
Jared K. Smith |
359bcda |
# this package has no tests
|
|
Jared K. Smith |
359bcda |
%global enable_tests 0
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
Name: nodejs-escape-html
|
|
Jared K. Smith |
359bcda |
Version: 1.0.3
|
|
|
0ede940 |
Release: 5%{?dist}
|
|
Jared K. Smith |
359bcda |
Summary: Escape string for use in HTML
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
License: MIT
|
|
Jared K. Smith |
359bcda |
URL: https://github.com/component/escape-html
|
|
Jared K. Smith |
359bcda |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
359bcda |
BuildArch: noarch
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
359bcda |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
359bcda |
BuildRequires: mocha
|
|
Jared K. Smith |
359bcda |
%endif
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
Requires: nodejs
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%description
|
|
Jared K. Smith |
359bcda |
Escape string for use in HTML
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%prep
|
|
Jared K. Smith |
359bcda |
%setup -q -n package
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%build
|
|
Jared K. Smith |
359bcda |
# nothing to do!
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%install
|
|
Jared K. Smith |
359bcda |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
359bcda |
cp -pr package.json *.js \
|
|
Jared K. Smith |
359bcda |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%nodejs_symlink_deps
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
359bcda |
%check
|
|
Jared K. Smith |
359bcda |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
359bcda |
NODE_ENV=test /usr/bin/mocha -R spec
|
|
Jared K. Smith |
359bcda |
%endif
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%files
|
|
Jared K. Smith |
359bcda |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
359bcda |
%doc *.md
|
|
Jared K. Smith |
359bcda |
%license LICENSE
|
|
Jared K. Smith |
359bcda |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
|
|
Jared K. Smith |
359bcda |
%changelog
|
|
|
0ede940 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
|
|
|
0ede940 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0ede940 |
|
|
|
982354e |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
|
|
|
982354e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
982354e |
|
|
|
e8fb1e0 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
|
|
|
e8fb1e0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e8fb1e0 |
|
|
|
708a149 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
|
|
|
708a149 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
708a149 |
|
|
Jared K. Smith |
359bcda |
* Thu Oct 8 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.3-1
|
|
Jared K. Smith |
359bcda |
- Initial packaging
|