Blame nodejs-bundle-dependencies.spec

Jared K. Smith 6a20652
%{?nodejs_find_provides_and_requires}
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%global packagename bundle-dependencies
Jared K. Smith 6a20652
%global enable_tests 1
Jared K. Smith 6a20652
Jared K. Smith 6a20652
Name:		nodejs-bundle-dependencies
Jared K. Smith 6a20652
Version:	1.0.2
d724048
Release:	11%{?dist}
Jared K. Smith 6a20652
Summary:	Generates bundledDependencies package.json value
Jared K. Smith 6a20652
Jared K. Smith 6a20652
License:	BSD
Jared K. Smith 6a20652
URL:		https://github.com/gajus/bundle-dependencies
Jared K. Smith 6a20652
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 6a20652
Patch0:		nodejs-bundle-dependencies_fix-package-json.patch
Jared K. Smith 6a20652
Jared K. Smith 6a20652
BuildArch:	noarch
Jared K. Smith 6a20652
%if 0%{?fedora} >= 19
Jared K. Smith 6a20652
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 6a20652
%else
Jared K. Smith 6a20652
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 6a20652
%endif
Jared K. Smith 6a20652
Jared K. Smith 6a20652
BuildRequires:	nodejs-packaging
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%description
Jared K. Smith 6a20652
Generates bundledDependencies package.json value using values of the
Jared K. Smith 6a20652
dependencies property.
Jared K. Smith 6a20652
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%prep
Jared K. Smith 6a20652
%setup -q -n package
Jared K. Smith 6a20652
rm -rf node_modules
Jared K. Smith 6a20652
%patch0 -p1
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%nodejs_fixdep yargs
Jared K. Smith 6a20652
Jared K. Smith 6a20652
Jared K. Smith 6a20652
# fix she-bang line and make executable
Jared K. Smith 6a20652
sed -i '1!b;s/env node/node/' dist/bin/index.js
Jared K. Smith 6a20652
chmod +x dist/bin/index.js
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%build
Jared K. Smith 6a20652
# nothing to do
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%install
Jared K. Smith 6a20652
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 6a20652
cp -pr package.json dist/ %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%nodejs_symlink_deps
Jared K. Smith 6a20652
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%check
Jared K. Smith 6a20652
%nodejs_symlink_deps --check
Jared K. Smith 6a20652
%if 0%{?enable_tests}
Jared K. Smith 6a20652
%{_bindir}/echo -e "\e[103m -=#=- There are no tests -=#=- \e[0m"
Jared K. Smith 6a20652
%else
Jared K. Smith 6a20652
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 6a20652
%endif
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%files
Jared K. Smith 6a20652
%{!?_licensedir:%global license %doc}
Jared K. Smith 6a20652
%doc *.md
Jared K. Smith 6a20652
%license LICENSE
Jared K. Smith 6a20652
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 6a20652
Jared K. Smith 6a20652
%changelog
d724048
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-11
d724048
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d724048
4179b81
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-10
4179b81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4179b81
685d746
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
685d746
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
685d746
d0d209d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-8
d0d209d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d0d209d
ce04c56
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-7
ce04c56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ce04c56
1d71e6f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
1d71e6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1d71e6f
bdb8274
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
bdb8274
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bdb8274
6b1931a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-4
6b1931a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6b1931a
Jared K. Smith 6a20652
* Tue Aug 09 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.2-3
Jared K. Smith 6a20652
- Fix script interpreter in dist/bin/index.js
Jared K. Smith 6a20652
Jared K. Smith 6a20652
* Sun Jul 31 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.2-2
Jared K. Smith 6a20652
- Relax dependency on npm(yargs)
Jared K. Smith 6a20652
Jared K. Smith 6a20652
* Sat Jul 30 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.2-1
Jared K. Smith 6a20652
- Initial packaging