diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aab1251 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mime-types-2.1.13.tgz diff --git a/.rh-nodejs6-nodejs-mime-types.metadata b/.rh-nodejs6-nodejs-mime-types.metadata new file mode 100644 index 0000000..0146dd2 --- /dev/null +++ b/.rh-nodejs6-nodejs-mime-types.metadata @@ -0,0 +1 @@ +e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88 SOURCES/mime-types-2.1.13.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-mime-types.spec b/SPECS/nodejs-mime-types.spec new file mode 100644 index 0000000..bddd054 --- /dev/null +++ b/SPECS/nodejs-mime-types.spec @@ -0,0 +1,67 @@ +%{?scl:%scl_package nodejs-mime-types} +%{!?scl:%global pkg_name %{name}} +%global npm_name mime-types + +%{?nodejs_find_provides_and_requires} + +%{!?scl:%global enable_tests 0} + +Name: %{?scl_prefix}nodejs-mime-types +Version: 2.1.13 +Release: 1%{?dist} +Summary: The ultimate javascript content-type utility. +Url: https://github.com/jshttp/mime-types +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: MIT + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: npm(istanbul) +BuildRequires: npm(mocha) +%endif + +%description +The ultimate javascript content-type utility. + +%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 +mocha --reporter spec test/test.js +%endif + +%files +%{nodejs_sitelib}/mime-types + +%doc README.md +%license LICENSE + +%changelog +* Thu Jan 05 2017 Zuzana Svetlikova - 2.1.13-1 +- Updated with script + +* Tue Sep 13 2016 Zuzana Svetlikova - 2.1.10-1 +- Updated with script + +* Sun Feb 14 2016 Zuzana Svetlikova - 2.1.3-2 +- rebuilt + +* Thu Jul 16 2015 Zuzana Svetlikova - 2.1.3-1 +- Initial build