!1 package init

Merge pull request !1 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-08-24 17:22:27 +08:00 committed by Gitee
commit 4e6fc06234
3 changed files with 50 additions and 0 deletions

BIN
2.1.17.tar.gz Normal file

Binary file not shown.

46
nodejs-mime-types.spec Normal file
View File

@ -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 <wutao61@huawei.com> - 2.1.17-1
- Package init

4
nodejs-mime-types.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: jshttp/mime-types
tag_prefix: "^"
seperator: "."