Blame SPECS/nodejs-registry-url.spec

6434b4
%{?scl:%scl_package nodejs-%{module_name}}
6434b4
%{!?scl:%global pkg_name %{name}}
6434b4
%{?nodejs_find_provides_and_requires}
6434b4
6434b4
%global enable_tests 0
6434b4
%global module_name registry-url
6434b4
6434b4
Name:           %{?scl_prefix}nodejs-%{module_name}
6434b4
Version:        3.1.0
6434b4
Release:        2%{?dist}
6434b4
Summary:        Get the set npm registry URL
6434b4
License:        MIT
6434b4
URL:            https://github.com/sindresorhus/registry-url
6434b4
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
6434b4
BuildArch:      noarch
6434b4
ExclusiveArch:  %{nodejs_arches} noarch
6434b4
6434b4
BuildRequires:  %{?scl_prefix}nodejs-devel
6434b4
6434b4
%if 0%{?enable_tests}
6434b4
BuildRequires:  %{?scl_prefix}npm(require-uncached)
6434b4
BuildRequires:  %{?scl_prefix}npm(mocha)
6434b4
BuildRequires:  %{?scl_prefix}npm(rc)
6434b4
%endif
6434b4
6434b4
%description
6434b4
%{summary}.
6434b4
6434b4
%prep
6434b4
%setup -q -n package
6434b4
rm -rf node_modules
6434b4
6434b4
%nodejs_fixdep rc
6434b4
6434b4
%build
6434b4
# nothing to build
6434b4
6434b4
%install
6434b4
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
6434b4
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
6434b4
%nodejs_symlink_deps
6434b4
6434b4
%if 0%{?enable_tests}
6434b4
6434b4
%check
6434b4
%nodejs_symlink_deps --check
6434b4
mocha
6434b4
%endif
6434b4
6434b4
%files
6434b4
%doc readme.md license
6434b4
%{nodejs_sitelib}/%{module_name}
6434b4
6434b4
%changelog
6434b4
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.1.0-2
6434b4
- rh-nodejs8 rebuild
6434b4
6434b4
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.1.0-1
6434b4
- Updated with script
6434b4
6434b4
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.3-5
6434b4
- Use macro in -runtime dependency
6434b4
6434b4
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.3-4
6434b4
- Rebuilt with updated metapackage
6434b4
6434b4
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 3.0.3-3
6434b4
- Enable find provides and requires macro
6434b4
6434b4
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 3.0.3-2
6434b4
- Enable scl macros
6434b4
6434b4
* Fri Dec 18 2015 Troy Dawson <tdawson@redhat.com> - 3.0.3-1
6434b4
- Update to 3.0.3
6434b4
6434b4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
6434b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6434b4
6434b4
* Wed Feb 04 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.1.0-2
6434b4
- Fix rc update dependency
6434b4
6434b4
* Sun Jan 25 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.1.0-1
6434b4
- update to 2.1.0 release
6434b4
6434b4
* Mon Dec 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.0.0-2
6434b4
- Enabled tests
6434b4
6434b4
* Thu Dec 04 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.0.0-1
6434b4
- Initial packaging