diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..757562e --- /dev/null +++ b/LICENSE @@ -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. \ No newline at end of file diff --git a/nodejs-generate-function.spec b/nodejs-generate-function.spec new file mode 100644 index 0000000..9ecfdbb --- /dev/null +++ b/nodejs-generate-function.spec @@ -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/v%{version}.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 +%autosetup -n generate-function-%{version} +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 - 2.0.0-1 +- package init diff --git a/nodejs-generate-function.yaml b/nodejs-generate-function.yaml new file mode 100644 index 0000000..a41e028 --- /dev/null +++ b/nodejs-generate-function.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: mafintosh/generate-function +tag_prefix: "^v" +seperator: "." diff --git a/v2.0.0.tar.gz b/v2.0.0.tar.gz new file mode 100644 index 0000000..96065a4 Binary files /dev/null and b/v2.0.0.tar.gz differ