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