Blame nodejs-url-parse-lax.spec

6d3bd55
# xo and ava not in fedora yet
6d3bd55
%global enable_tests 0
6d3bd55
%global module_name url-parse-lax
6d3bd55
6d3bd55
Name:           nodejs-%{module_name}
6d3bd55
Version:        1.0.0
048d4c4
Release:        4%{?dist}
6d3bd55
Summary:        The url.parse() with support for protocol-less URLs & IPs
6d3bd55
6d3bd55
License:        MIT
6d3bd55
URL:            https://github.com/sindresorhus/url-parse-lax
6d3bd55
Source0:        https://github.com/sindresorhus/%{module_name}/archive/%{version}.tar.gz
6d3bd55
BuildArch:      noarch
6d3bd55
ExclusiveArch:  %{nodejs_arches} noarch
6d3bd55
6d3bd55
BuildRequires:  nodejs-packaging
6d3bd55
6d3bd55
%if 0%{?enable_tests}
6d3bd55
BuildRequires: npm(ava)
6d3bd55
BuildRequires: npm(xo)
6d3bd55
%endif
6d3bd55
6d3bd55
%description
6d3bd55
The url.parse() with support for protocol-less URLs & IPs.
6d3bd55
6d3bd55
%prep
6d3bd55
%setup -q -n %{module_name}-%{version}
6d3bd55
rm -rf node_modules
6d3bd55
6d3bd55
%build
6d3bd55
# nothing to build
6d3bd55
6d3bd55
%install
6d3bd55
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
6d3bd55
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
6d3bd55
%nodejs_symlink_deps
6d3bd55
6d3bd55
%if 0%{?enable_tests}
6d3bd55
%check
6d3bd55
%nodejs_symlink_deps --check
6d3bd55
xo && ava
6d3bd55
%endif
6d3bd55
6d3bd55
%files
6d3bd55
%doc readme.md
6d3bd55
%license license
6d3bd55
%{nodejs_sitelib}/%{module_name}
6d3bd55
6d3bd55
%changelog
048d4c4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
048d4c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
048d4c4
324885c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
324885c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
324885c
8347655
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
8347655
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8347655
6d3bd55
* Sun Nov 29 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
6d3bd55
- Initial packaging
6d3bd55