|
Jared K. Smith |
09f35f9 |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%global packagename path-to-regexp
|
|
Jared K. Smith |
09f35f9 |
%global enable_tests 1
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
Name: nodejs-path-to-regexp
|
|
Jared K. Smith |
09f35f9 |
Version: 1.2.1
|
|
|
e89e97f |
Release: 4%{?dist}
|
|
Jared K. Smith |
09f35f9 |
Summary: Express style path to RegExp utility
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
License: MIT
|
|
Jared K. Smith |
09f35f9 |
URL: https://github.com/pillarjs/path-to-regexp.git
|
|
Jared K. Smith |
09f35f9 |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
09f35f9 |
# The test files are not included in the npm tarball.
|
|
Jared K. Smith |
09f35f9 |
Source1: https://raw.githubusercontent.com/pillarjs/path-to-regexp/v%{version}/test.js
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
BuildArch: noarch
|
|
Jared K. Smith |
09f35f9 |
%if 0%{?fedora} >= 19
|
|
Jared K. Smith |
09f35f9 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
09f35f9 |
%else
|
|
Jared K. Smith |
09f35f9 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
Jared K. Smith |
09f35f9 |
%endif
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
09f35f9 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
09f35f9 |
BuildRequires: mocha
|
|
Jared K. Smith |
09f35f9 |
BuildRequires: npm(chai)
|
|
Jared K. Smith |
09f35f9 |
BuildRequires: npm(isarray)
|
|
Jared K. Smith |
09f35f9 |
%endif
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
Requires: nodejs
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%description
|
|
Jared K. Smith |
09f35f9 |
Express style path to RegExp utility
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%prep
|
|
Jared K. Smith |
09f35f9 |
%setup -q -n package
|
|
Jared K. Smith |
09f35f9 |
# setup the tests
|
|
Jared K. Smith |
09f35f9 |
cp -p %{SOURCE1} .
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%build
|
|
Jared K. Smith |
09f35f9 |
# nothing to do!
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%install
|
|
Jared K. Smith |
09f35f9 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
09f35f9 |
cp -pr package.json index.js \
|
|
Jared K. Smith |
09f35f9 |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%nodejs_symlink_deps
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
09f35f9 |
%check
|
|
Jared K. Smith |
09f35f9 |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
09f35f9 |
/usr/bin/mocha -R spec
|
|
Jared K. Smith |
09f35f9 |
%endif
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%files
|
|
Jared K. Smith |
09f35f9 |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
09f35f9 |
%doc *.md
|
|
Jared K. Smith |
09f35f9 |
%license LICENSE
|
|
Jared K. Smith |
09f35f9 |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
%changelog
|
|
|
e89e97f |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
|
|
|
e89e97f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e89e97f |
|
|
Jared K. Smith |
09f35f9 |
* Mon Nov 09 2015 Jared Smith <jsmith@fedoraproject.org> - 1.2.1-3
|
|
Jared K. Smith |
09f35f9 |
- Remove test.js from the list of installed files
|
|
Jared K. Smith |
09f35f9 |
- Change Source1 to use tag rather than hash
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
* Fri Nov 06 2015 Jared Smith <jsmith@fedoraproject.org> - 1.2.1-2
|
|
Jared K. Smith |
09f35f9 |
- Add missing build dependencies
|
|
Jared K. Smith |
09f35f9 |
|
|
Jared K. Smith |
09f35f9 |
* Thu Nov 5 2015 Jared Smith <jsmith@fedoraproject.org> - 1.2.1-1
|
|
Jared K. Smith |
09f35f9 |
- Initial packaging
|