diff --git a/2.1.17.tar.gz b/2.1.17.tar.gz new file mode 100644 index 0000000..54778e4 Binary files /dev/null and b/2.1.17.tar.gz differ diff --git a/nodejs-mime-types.spec b/nodejs-mime-types.spec new file mode 100644 index 0000000..7caaaca --- /dev/null +++ b/nodejs-mime-types.spec @@ -0,0 +1,46 @@ +%{?nodejs_find_provides_and_requires} +%global packagename mime-types +%global enable_tests 1 +Name: nodejs-mime-types +Version: 2.1.17 +Release: 1 +Summary: The ultimate javascript content-type utility +License: MIT +URL: https://github.com/jshttp/mime-types +Source0: https://github.com/jshttp/%{packagename}/archive/%{version}.tar.gz +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: mocha npm(mime-db) +%endif +Requires: nodejs +%description +The ultimate javascript content-type utility + +%prep +%setup -q -n %{packagename}-%{version} +%nodejs_fixdep mime-db '^1.19.0' + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +/usr/bin/mocha -R spec +%endif + +%files +%doc README.md HISTORY.md +%license LICENSE +%{nodejs_sitelib}/%{packagename} + +%changelog +* Mon Aug 17 2020 wutao - 2.1.17-1 +- Package init diff --git a/nodejs-mime-types.yaml b/nodejs-mime-types.yaml new file mode 100644 index 0000000..226f0e6 --- /dev/null +++ b/nodejs-mime-types.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: jshttp/mime-types +tag_prefix: "^" +seperator: "."