diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b740930 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2013 TJ Holowaychuk + +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. diff --git a/github-url-from-git-1.5.0.tgz b/github-url-from-git-1.5.0.tgz new file mode 100644 index 0000000..4b4dbca Binary files /dev/null and b/github-url-from-git-1.5.0.tgz differ diff --git a/nodejs-github-url-from-git.spec b/nodejs-github-url-from-git.spec new file mode 100644 index 0000000..5376998 --- /dev/null +++ b/nodejs-github-url-from-git.spec @@ -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 - 1.5.0-1 +- Package init diff --git a/nodejs-github-url-from-git.yaml b/nodejs-github-url-from-git.yaml new file mode 100644 index 0000000..7c3be45 --- /dev/null +++ b/nodejs-github-url-from-git.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: tj/node-github-url-from-git +tag_pattern: "^v" +seperator: "."