!1 package init
From: @yaokai13 Reviewed-by: @solarhu Signed-off-by: @solarhu
This commit is contained in:
commit
e47e2f0c4d
BIN
1.0.1.tar.gz
Normal file
BIN
1.0.1.tar.gz
Normal file
Binary file not shown.
48
nodejs-mdurl.spec
Normal file
48
nodejs-mdurl.spec
Normal file
@ -0,0 +1,48 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global packagename mdurl
|
||||
%global enable_tests 1
|
||||
Name: nodejs-mdurl
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Summary: URL utilities for markdown-it
|
||||
License: MIT
|
||||
URL: https://github.com/markdown-it/mdurl
|
||||
Source0: https://github.com/markdown-it/mdurl/archive/%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: mocha
|
||||
%endif
|
||||
Requires: nodejs
|
||||
Provides: bundled(nodejs)
|
||||
%description
|
||||
URL utilities for markdown-it
|
||||
|
||||
%prep
|
||||
%autosetup -n mdurl-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/mdurl
|
||||
cp -pr package.json *.js \
|
||||
%{buildroot}%{nodejs_sitelib}/mdurl
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%if 0%{?enable_tests}
|
||||
/usr/bin/mocha -R spec
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc *.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/mdurl
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.0.1-1
|
||||
- Package init
|
||||
4
nodejs-mdurl.yaml
Normal file
4
nodejs-mdurl.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: markdown-it/mdurl
|
||||
tag_pattern: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user