diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a04815a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mime-db-1.15.0.tgz diff --git a/.nodejs010-nodejs-mime-db.metadata b/.nodejs010-nodejs-mime-db.metadata new file mode 100644 index 0000000..3f3c589 --- /dev/null +++ b/.nodejs010-nodejs-mime-db.metadata @@ -0,0 +1 @@ +d219e6214bbcae23a6fa69c0868c4fadc1405e8a SOURCES/mime-db-1.15.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-mime-db.spec b/SPECS/nodejs-mime-db.spec new file mode 100644 index 0000000..fe41e79 --- /dev/null +++ b/SPECS/nodejs-mime-db.spec @@ -0,0 +1,71 @@ +%{?scl:%scl_package nodejs-mime-db} +%{!?scl:%global pkg_name %{name}} +%global npm_name mime-db + +%{!?scl:%global enable_tests 0} + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-mime-db +Version: 1.15.0 +Release: 3%{?dist} +Summary: Media Type Database +Url: https://github.com/jshttp/mime-db +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(bluebird) +BuildRequires: npm(co) +BuildRequires: npm(cogent) +BuildRequires: npm(csv-parse) +BuildRequires: npm(gnode) +BuildRequires: npm(istanbul) +BuildRequires: npm(mocha) +BuildRequires: npm(raw-body) +BuildRequires: npm(stream-to-array) +%endif + +%description +Media Type Database + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr db.json package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check +mocha --reporter spec --bail --check-leaks test/ +%endif + +%files +%{nodejs_sitelib}/mime-db + +%doc README.md +%license LICENSE + +%changelog +* Tue Sep 22 2015 Zuzana Svetlikova - 1.15.0-3 +- Add missing files to %%install + +* Mon Jul 20 2015 Zuzana Svetlikova - 1.15.0-2 +- Correct variable + +* Mon Jul 20 2015 Zuzana Svetlikova - 1.15.0-1 +- Initial build