Blame nodejs-glob-base.spec

Jared K. Smith d1a5537
%{?nodejs_find_provides_and_requires}
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%global packagename glob-base
Jared K. Smith d1a5537
Jared K. Smith bfa9f30
# disabled due to failing tests
Jared K. Smith bfa9f30
%global enable_tests 0
Jared K. Smith d1a5537
Jared K. Smith d1a5537
Name:		nodejs-glob-base
Jared K. Smith d1a5537
Version:	0.3.0
d41022f
Release:	12%{?dist}
Jared K. Smith d1a5537
Summary:	Returns an object with the (non-glob) base path and the actual pattern
Jared K. Smith d1a5537
Jared K. Smith d1a5537
License:	MIT
Jared K. Smith d1a5537
URL:		https://github.com/jonschlinkert/glob-base.git
Jared K. Smith d1a5537
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith d1a5537
# The test files are not included in the npm tarball.
Jared K. Smith d1a5537
Source1:	https://raw.githubusercontent.com/jonschlinkert/glob-base/%{version}/test.js
Jared K. Smith d1a5537
Jared K. Smith d1a5537
Jared K. Smith d1a5537
BuildArch:	noarch
Jared K. Smith d1a5537
%if 0%{?fedora} >= 19
Jared K. Smith d1a5537
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith d1a5537
%else
Jared K. Smith d1a5537
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith d1a5537
%endif
Jared K. Smith d1a5537
Jared K. Smith d1a5537
BuildRequires:	nodejs-packaging
Jared K. Smith d1a5537
BuildRequires:	npm(glob-parent)
Jared K. Smith d1a5537
BuildRequires:	npm(is-glob)
Jared K. Smith d1a5537
%if 0%{?enable_tests}
Jared K. Smith d1a5537
BuildRequires:	mocha
Jared K. Smith d1a5537
BuildRequires:	npm(should)
Jared K. Smith d1a5537
%endif
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%description
Jared K. Smith d1a5537
Returns an object with the (non-glob) base path and the actual pattern.
Jared K. Smith d1a5537
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%prep
Jared K. Smith d1a5537
%setup -q -n package
Jared K. Smith d1a5537
# setup the tests
Jared K. Smith d1a5537
cp -p %{SOURCE1} .
Jared K. Smith d1a5537
Jared K. Smith e934c7b
%nodejs_fixdep glob-parent
Jared K. Smith bfa9f30
%nodejs_fixdep is-glob
Jared K. Smith e934c7b
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%build
Jared K. Smith d1a5537
# nothing to do!
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%install
Jared K. Smith d1a5537
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith d1a5537
cp -pr package.json index.js \
Jared K. Smith d1a5537
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%nodejs_symlink_deps
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%check
Jared K. Smith d1a5537
%nodejs_symlink_deps --check
Jared K. Smith d1a5537
%{__nodejs} -e 'require("./")'
Jared K. Smith d1a5537
%if 0%{?enable_tests}
Jared K. Smith d1a5537
%{_bindir}/mocha -R spec
Jared K. Smith d1a5537
%else
Jared K. Smith d1a5537
%{_bindir}/echo "Tests disabled..."
Jared K. Smith d1a5537
%endif
Jared K. Smith d1a5537
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%files
Jared K. Smith d1a5537
%{!?_licensedir:%global license %doc}
Jared K. Smith d1a5537
%doc *.md
Jared K. Smith d1a5537
%license LICENSE
Jared K. Smith d1a5537
%{nodejs_sitelib}/%{packagename}
Jared K. Smith d1a5537
Jared K. Smith d1a5537
Jared K. Smith d1a5537
%changelog
d41022f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-12
d41022f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d41022f
5b7b039
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-11
5b7b039
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5b7b039
cd7af4f
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-10
cd7af4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cd7af4f
48a67a5
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-9
48a67a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
48a67a5
9bf6454
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-8
9bf6454
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9bf6454
07b6577
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-7
07b6577
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
07b6577
Jared K. Smith bfa9f30
* Fri Sep 22 2017 Jared Smith <jsmith@fedoraproject.org> - 0.3.0-6
Jared K. Smith bfa9f30
- Relax dependency on npm(is-glob)
Jared K. Smith bfa9f30
92e6202
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-5
92e6202
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
92e6202
bea57b6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
bea57b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bea57b6
Jared K. Smith e934c7b
* Mon Dec 19 2016 Jared Smith <jsmith@fedoraproject.org> - 0.3.0-3
Jared K. Smith e934c7b
- Turn on build-time checks
Jared K. Smith e934c7b
- Relax dependency on npm(glob-parent)
Jared K. Smith e934c7b
Jared K. Smith d1a5537
* Tue Jul 19 2016 Jared Smith <jsmith@fedoraproject.org> - 0.3.0-2
Jared K. Smith d1a5537
- Add npm(should) to BuildRequires
Jared K. Smith d1a5537
Jared K. Smith d1a5537
* Tue Feb  9 2016 Jared Smith <jsmith@fedoraproject.org> - 0.3.0-1
Jared K. Smith d1a5537
- Initial packaging