|
Jared K. Smith |
407ac1c |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%global packagename css-select
|
|
Jared K. Smith |
49a53bb |
%global enable_tests 1
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
Name: nodejs-css-select
|
|
Jared K. Smith |
18abaf7 |
Version: 1.2.0
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
4e23296 |
Release: 5%{?dist}
|
|
Jared K. Smith |
407ac1c |
Summary: A CSS selector compiler/engine
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
License: BSD
|
|
Jared K. Smith |
407ac1c |
URL: https://github.com/fb55/css-select.git
|
|
Jared K. Smith |
407ac1c |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
18abaf7 |
# The test files are not included in the npm tarball.
|
|
Jared K. Smith |
18abaf7 |
# Source1 is generated by running Source10, which pulls from the upstream
|
|
Jared K. Smith |
18abaf7 |
# version control repository.
|
|
Jared K. Smith |
18abaf7 |
Source1: tests-%{version}.tar.bz2
|
|
Jared K. Smith |
18abaf7 |
Source10: dl-tests.sh
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
407ac1c |
BuildArch: noarch
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
18abaf7 |
BuildRequires: npm(css-what)
|
|
Jared K. Smith |
18abaf7 |
BuildRequires: npm(domutils)
|
|
Jared K. Smith |
18abaf7 |
BuildRequires: npm(nth-check)
|
|
Jared K. Smith |
407ac1c |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
407ac1c |
BuildRequires: mocha
|
|
Jared K. Smith |
67c302d |
BuildRequires: npm(expect.js)
|
|
Jared K. Smith |
67c302d |
BuildRequires: npm(htmlparser2)
|
|
Jared K. Smith |
407ac1c |
%endif
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
Requires: nodejs
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%description
|
|
Jared K. Smith |
407ac1c |
A CSS selector compiler/engine
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%prep
|
|
Jared K. Smith |
407ac1c |
%setup -q -n package
|
|
Jared K. Smith |
18abaf7 |
# setup the tests
|
|
Jared K. Smith |
18abaf7 |
%setup -q -T -D -a 1 -n package
|
|
Jared K. Smith |
18abaf7 |
|
|
Jared K. Smith |
49a53bb |
%nodejs_fixdep domutils 'Z=1.5.1'
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%build
|
|
Jared K. Smith |
407ac1c |
# nothing to do!
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%install
|
|
Jared K. Smith |
407ac1c |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
49a53bb |
cp -pr package.json *.js lib/ \
|
|
Jared K. Smith |
407ac1c |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%nodejs_symlink_deps
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%check
|
|
Jared K. Smith |
407ac1c |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
aa3e707 |
%{__nodejs} -e 'require("./")'
|
|
Jared K. Smith |
aa3e707 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
407ac1c |
/usr/bin/mocha -R spec
|
|
Jared K. Smith |
49a53bb |
%else
|
|
Jared K. Smith |
49a53bb |
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
|
Jared K. Smith |
407ac1c |
%endif
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%files
|
|
Jared K. Smith |
407ac1c |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
407ac1c |
%doc *.md
|
|
Jared K. Smith |
407ac1c |
%license LICENSE
|
|
Jared K. Smith |
407ac1c |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
4e23296 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
4e23296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
4e23296 |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
de27eaf |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
de27eaf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
de27eaf |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
f5c0615 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
f5c0615 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
f5c0615 |
|
|
Jared K. Smith |
49a53bb |
* Tue Aug 02 2016 Jared Smith <jsmith@fedoraproject.org> - 1.2.0-2
|
|
Jared K. Smith |
49a53bb |
- Add missing lib/ dir to binary output
|
|
Jared K. Smith |
49a53bb |
- Enable tests
|
|
Jared K. Smith |
49a53bb |
|
|
Jared K. Smith |
18abaf7 |
* Fri Feb 12 2016 Jared Smith <jsmith@fedoraproject.org> - 1.2.0-1
|
|
Jared K. Smith |
18abaf7 |
- Update to upstream 1.2.0 release
|
|
Jared K. Smith |
18abaf7 |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
d7c3b22 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
d7c3b22 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
d7c3b22 |
|
|
Jared K. Smith |
aa3e707 |
* Fri Dec 18 2015 Jared Smith <jsmith@fedoraproject.org> - 1.1.0-4
|
|
Jared K. Smith |
aa3e707 |
- Fix up the tests a bit
|
|
Jared K. Smith |
aa3e707 |
|
|
Jared K. Smith |
407ac1c |
* Wed Oct 14 2015 Jared Smith <jsmith@fedoraproject.org> - 1.1.0-3
|
|
Jared K. Smith |
407ac1c |
- Fix up nodejs required versions of domutils
|
|
Jared K. Smith |
407ac1c |
|
|
Jared K. Smith |
407ac1c |
* Wed Oct 14 2015 Jared Smith <jsmith@fedoraproject.org> - 1.1.0-1
|
|
Jared K. Smith |
407ac1c |
- Initial packaging
|