Blame SPECS/nodejs-rc.spec

e762dc
%{?scl:%scl_package nodejs-%{module_name}}
e762dc
%{!?scl:%global pkg_name %{name}}
e762dc
e762dc
%{?nodejs_find_provides_and_requires}
e762dc
e762dc
%global enable_tests 0
e762dc
%global module_name rc
e762dc
e762dc
Name:           %{?scl_prefix}nodejs-%{module_name}
e762dc
Version:        1.1.2
e762dc
Release:        6%{?dist}
e762dc
Summary:        Hardwired configuration loader
e762dc
e762dc
License:        MIT or BSD or ASL 2.0
e762dc
URL:            https://github.com/dominictarr/rc
e762dc
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
e762dc
BuildArch:      noarch
e762dc
ExclusiveArch:  %{nodejs_arches} noarch
e762dc
e762dc
BuildRequires:  %{?scl_prefix}runtime
e762dc
e762dc
%if 0%{?enable_tests}
e762dc
BuildRequires:  %{?scl_prefix}npm(ini)
e762dc
BuildRequires:  %{?scl_prefix}npm(strip-json-comments)
e762dc
BuildRequires:  %{?scl_prefix}npm(minimist)
e762dc
BuildRequires:  %{?scl_prefix}npm(deep-extend)
e762dc
%endif
e762dc
e762dc
%description
e762dc
The non-configurable configuration loader for lazy people.
e762dc
e762dc
%prep
e762dc
%setup -q -n package
e762dc
rm -rf node_modules
e762dc
e762dc
%nodejs_fixdep deep-extend
e762dc
%nodejs_fixdep minimist
e762dc
%nodejs_fixdep strip-json-comments
e762dc
%nodejs_fixdep ini
e762dc
e762dc
%build
e762dc
# nothing to build
e762dc
e762dc
%install
e762dc
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
e762dc
cp -pr package.json *.js lib %{buildroot}%{nodejs_sitelib}/%{module_name}
e762dc
%nodejs_symlink_deps
e762dc
e762dc
%if 0%{?enable_tests}
e762dc
e762dc
%check
e762dc
%nodejs_symlink_deps --check
e762dc
set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js
e762dc
%endif
e762dc
e762dc
%files
e762dc
%doc README.md LICENSE.MIT LICENSE.APACHE2 LICENSE.BSD
e762dc
%{nodejs_sitelib}/%{module_name}
e762dc
e762dc
%changelog
e762dc
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.2-6
e762dc
- rh-nodejs8 rebuild
e762dc
e762dc
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.2-5
e762dc
- Use macro in -runtime dependency
e762dc
e762dc
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.2-4
e762dc
- Rebuilt with updated metapackage
e762dc
e762dc
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.1.2-3
e762dc
- Enable scl macros
e762dc
e762dc
* Fri Dec 18 2015 Troy Dawson <tdawson@redhat.com> - 1.1.2-1
e762dc
- Update to 1.1.2
e762dc
e762dc
* Sat Dec 12 2015 Piotr Popieluch <piotr1212@gmail.com> - 0.6.0-3
e762dc
- Fixdep updated minimist
e762dc
e762dc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
e762dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e762dc
e762dc
* Wed Feb 04 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.6.0-1
e762dc
- update to 0.6.0 upstream release
e762dc
e762dc
* Mon Dec 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.5.4-2
e762dc
- Add missing multilicense tag and its text
e762dc
e762dc
* Thu Dec 04 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.5.4-1
e762dc
- Initial packaging