package init

This commit is contained in:
yaokai13 2020-08-20 11:37:12 +08:00
parent 4c3b49e2cf
commit 5be206eeb8
4 changed files with 66 additions and 0 deletions

22
LICENSE Normal file
View File

@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) 2013 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Binary file not shown.

View File

@ -0,0 +1,40 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-github-url-from-git
Version: 1.5.0
Release: 1
Summary: Parse a GitHub git URL and return the GitHub repository URL
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
License: MIT
URL: https://github.com/visionmedia/node-github-url-from-git
Source0: https://registry.npmjs.org/github-url-from-git/-/github-url-from-git-%{version}.tgz
Source1: https://raw.github.com/tchollingsworth/node-github-url-from-git/154fb09296b79637e25952638782995ad6812612/LICENSE
BuildRequires: nodejs-packaging
BuildRequires: npm(mocha) npm(should) npm(better-assert)
%description
%{summary}.
%prep
%setup -q -n package
cp %{SOURCE1} LICENSE
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/github-url-from-git
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/github-url-from-git
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
mocha test.js --reporter spec --require should
%files
%{nodejs_sitelib}/github-url-from-git
%doc *.md
%license LICENSE
%changelog
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.5.0-1
- Package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: tj/node-github-url-from-git
tag_pattern: "^v"
seperator: "."