fuanan add package
This commit is contained in:
parent
c978bf2129
commit
c13e28bd2c
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Mathias Buus
|
||||
|
||||
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.
|
||||
BIN
generate-function-3d5fc8d.tar.gz
Normal file
BIN
generate-function-3d5fc8d.tar.gz
Normal file
Binary file not shown.
48
nodejs-generate-function.spec
Normal file
48
nodejs-generate-function.spec
Normal file
@ -0,0 +1,48 @@
|
||||
%global enable_tests 1
|
||||
%global srcname generate-function
|
||||
%global commit0 3d5fc8de5859be95f58e3af9bfb5f663edd95149
|
||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
||||
Name: nodejs-%{srcname}
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: Module that helps you write generated functions in Node
|
||||
License: MIT
|
||||
URL: https://github.com/mafintosh/generate-function
|
||||
Source0: https://github.com/mafintosh/generate-function/archive/3d5fc8de5859be95f58e3af9bfb5f663edd95149.tar.gz#/generate-function-3d5fc8d.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/mafintosh/generate-function/master/LICENSE
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tape)
|
||||
%endif
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -qn %{srcname}-%{commit0}
|
||||
cp -p %{SOURCE1} .
|
||||
rm -rf node_modules
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
cp -pr package.json index.js \
|
||||
%{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
tape test.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc README.md example.js
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/%{srcname}
|
||||
|
||||
%changelog
|
||||
* Fri Aug 28 2020 Anan Fu <fuanan3@huawei.com> - 2.0.0-1
|
||||
- package init
|
||||
4
nodejs-generate-function.yaml
Normal file
4
nodejs-generate-function.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: mafintosh/generate-function
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user