diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..141ef41 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rc-1.1.2.tgz diff --git a/.nodejs010-nodejs-rc.metadata b/.nodejs010-nodejs-rc.metadata new file mode 100644 index 0000000..0a716ae --- /dev/null +++ b/.nodejs010-nodejs-rc.metadata @@ -0,0 +1 @@ +8828cab62d8054602c063d9e5572686988c1c468 SOURCES/rc-1.1.2.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-rc.spec b/SPECS/nodejs-rc.spec new file mode 100644 index 0000000..d9b34b5 --- /dev/null +++ b/SPECS/nodejs-rc.spec @@ -0,0 +1,80 @@ +%{?scl:%scl_package nodejs-%{module_name}} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global module_name rc + +Name: %{?scl_prefix}nodejs-%{module_name} +Version: 1.1.2 +Release: 3%{?dist} +Summary: Hardwired configuration loader + +License: MIT or BSD or ASL 2.0 +URL: https://github.com/dominictarr/rc +Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs010-runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(ini) +BuildRequires: %{?scl_prefix}npm(strip-json-comments) +BuildRequires: %{?scl_prefix}npm(minimist) +BuildRequires: %{?scl_prefix}npm(deep-extend) +%endif + +%description +The non-configurable configuration loader for lazy people. + +%prep +%setup -q -n package +rm -rf node_modules + +%nodejs_fixdep deep-extend +%nodejs_fixdep minimist +%nodejs_fixdep strip-json-comments +%nodejs_fixdep ini + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json *.js lib %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js +%endif + +%files +%doc README.md LICENSE.MIT LICENSE.APACHE2 LICENSE.BSD +%{nodejs_sitelib}/%{module_name} + +%changelog +* Tue Jan 12 2016 Tomas Hrcka - 1.1.2-3 +- Enable scl macros + +* Fri Dec 18 2015 Troy Dawson - 1.1.2-1 +- Update to 1.1.2 + +* Sat Dec 12 2015 Piotr Popieluch - 0.6.0-3 +- Fixdep updated minimist + +* Wed Jun 17 2015 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Feb 04 2015 Parag Nemade - 0.6.0-1 +- update to 0.6.0 upstream release + +* Mon Dec 08 2014 Parag Nemade - 0.5.4-2 +- Add missing multilicense tag and its text + +* Thu Dec 04 2014 Parag Nemade - 0.5.4-1 +- Initial packaging