Blame nodejs-platform.spec

Jared K. Smith 71403fb
%{?nodejs_find_provides_and_requires}
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%global packagename platform
654d9ea
# Tests disabled due to changes in npm(qunit-extras)
654d9ea
%global enable_tests 0
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Name:		nodejs-platform
654d9ea
Version:	1.3.5
c6847a1
Release:	5%{?dist}
Jared K. Smith 71403fb
Summary:	A platform detection library that works on nearly all JavaScript platforms
Jared K. Smith 71403fb
Jared K. Smith 71403fb
License:	MIT
Jared K. Smith 71403fb
URL:		https://github.com/bestiejs/platform.js
Jared K. Smith 71403fb
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 71403fb
# The test files are not included in the npm tarball.
Jared K. Smith 71403fb
# Source1 is generated by running Source10, which pulls from the upstream
Jared K. Smith 71403fb
# version control repository.
Jared K. Smith 71403fb
Source1:	tests-%{version}.tar.bz2
Jared K. Smith 71403fb
Source2:	docs-%{version}.tar.bz2
Jared K. Smith 71403fb
Source10:	dl-tests.sh
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Jared K. Smith 71403fb
BuildArch:	noarch
Jared K. Smith 71403fb
%if 0%{?fedora} >= 19
Jared K. Smith 71403fb
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 71403fb
%else
Jared K. Smith 71403fb
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 71403fb
%endif
Jared K. Smith 71403fb
Jared K. Smith 71403fb
BuildRequires:	nodejs-packaging
Jared K. Smith 71403fb
%if 0%{?enable_tests}
Jared K. Smith 71403fb
BuildRequires:	npm(qunitjs)
Jared K. Smith 71403fb
BuildRequires:	npm(qunit-extras)
Jared K. Smith 71403fb
%endif
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Requires:	nodejs
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%description
Jared K. Smith 71403fb
A platform detection library that works on nearly all JavaScript platforms.
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%prep
Jared K. Smith 71403fb
%setup -q -n package
Jared K. Smith 71403fb
# setup the tests
Jared K. Smith 71403fb
%setup -q -T -D -a 1 -n package
Jared K. Smith 71403fb
%setup -q -T -D -a 2 -n package
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%build
Jared K. Smith 71403fb
# nothing to do!
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%install
Jared K. Smith 71403fb
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 71403fb
cp -pr package.json *.js \
Jared K. Smith 71403fb
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%nodejs_symlink_deps
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%if 0%{?enable_tests}
Jared K. Smith 71403fb
%check
Jared K. Smith 71403fb
%nodejs_symlink_deps --check
Jared K. Smith 71403fb
%__nodejs test/test
Jared K. Smith 71403fb
%endif
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%files
Jared K. Smith 71403fb
%{!?_licensedir:%global license %doc}
Jared K. Smith 71403fb
%doc *.md doc/*.md
Jared K. Smith 71403fb
%license LICENSE
Jared K. Smith 71403fb
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Jared K. Smith 71403fb
Jared K. Smith 71403fb
%changelog
c6847a1
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-5
c6847a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c6847a1
6840e91
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-4
6840e91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6840e91
dbcadeb
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-3
dbcadeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dbcadeb
5ceee6d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
5ceee6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5ceee6d
654d9ea
* Tue Jul 31 2018 Jared K. Smith <jsmith@fedoraproject.org> - 1.3.5-1
654d9ea
- Update to upstream 1.3.5 release
654d9ea
- Disable tests due to changes in npm(qunit-extras)
654d9ea
eee0fa2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
eee0fa2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
eee0fa2
761ba63
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
761ba63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
761ba63
f4c43b1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
f4c43b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f4c43b1
9991569
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
9991569
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9991569
Jared K. Smith 71403fb
* Sat Jun 18 2016 Jared Smith <jsmith@fedoraproject.org> - 1.3.1-1
Jared K. Smith 71403fb
- Update to upstream 1.3.1 release
Jared K. Smith 71403fb
Jared K. Smith 71403fb
* Mon Nov 23 2015 Jared Smith <jsmith@fedoraproject.org> - 1.3.0-1
Jared K. Smith 71403fb
- Initial packaging