From 5be206eeb819a357cbaaf6ca345784e4c7186bab Mon Sep 17 00:00:00 2001 From: yaokai13 Date: Thu, 20 Aug 2020 11:37:12 +0800 Subject: [PATCH] package init --- LICENSE | 22 ++++++++++++++++++ github-url-from-git-1.5.0.tgz | Bin 0 -> 2772 bytes nodejs-github-url-from-git.spec | 40 ++++++++++++++++++++++++++++++++ nodejs-github-url-from-git.yaml | 4 ++++ 4 files changed, 66 insertions(+) create mode 100644 LICENSE create mode 100644 github-url-from-git-1.5.0.tgz create mode 100644 nodejs-github-url-from-git.spec create mode 100644 nodejs-github-url-from-git.yaml 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 0000000000000000000000000000000000000000..4b4dbca57695a9010c3519f2014f0460b51fc6ee GIT binary patch literal 2772 zcmV;_3M=&=iwFP!000001MM1X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%@~8P)>?zYCyLkCaLFQ zau9Mlm-vYR-Ccf>-AexXCyV`TtiXwSUCQ!4_is_I08=$?oi|LnSZbQ*ieLrGO`N5* zMx)l;!r*PJtgOHurc0^hv0*%$6(=ZHjDaRrLg}8$@+`6vokr=Sg7V2q^9v;O;y6Vw z-K{`|-0))y&^wzV=km4D3cv}ljra{u4w%nkS>IR7Vi*8kVHwifFDI{#~K zH4Fd$EgE{uB@V$be*5jWv$&|>7Zv=Xf?rhdiwb^G!7nQKMFqd8;1?DAqJm#k@QVsQ a*#@^r#W_jQidMAmxBU-Uuu>`jMgRbxFM`hi literal 0 HcmV?d00001 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: "."