diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70dc53c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/caseless-0.11.0.tgz diff --git a/.rh-nodejs4-nodejs-caseless.metadata b/.rh-nodejs4-nodejs-caseless.metadata new file mode 100644 index 0000000..bee619f --- /dev/null +++ b/.rh-nodejs4-nodejs-caseless.metadata @@ -0,0 +1 @@ +715b96ea9841593cc33067923f5ec60ebda4f7d7 SOURCES/caseless-0.11.0.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-caseless.spec b/SPECS/nodejs-caseless.spec new file mode 100644 index 0000000..a6c4dee --- /dev/null +++ b/SPECS/nodejs-caseless.spec @@ -0,0 +1,60 @@ +%{?scl:%scl_package nodejs-caseless} +%{!?scl:%global pkg_name %{name}} +%global npm_name caseless + +%{?nodejs_find_provides_and_requires} + +%{!?scl:%global enable_tests 1} + +Name: %{?scl_prefix}nodejs-caseless +Version: 0.11.0 +Release: 2%{?dist} +Summary: Caseless object set/get/has, very useful when working with HTTP headers. +Url: https://github.com/mikeal/caseless +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: ASL 2.0 + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: npm(tape) +%endif + +%description +Caseless object set/get/has, very useful when working with HTTP headers. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check +node test.js +%endif + +%files +%{nodejs_sitelib}/caseless + +%doc README.md +%license LICENSE + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 0.11.0-2 +- rebuilt + +* Thu Jul 16 2015 Zuzana Svetlikova - 0.11.0-1 +- Initial build