fuanan add package
This commit is contained in:
parent
bb9d06bed5
commit
6a0ec3b525
BIN
clone-1.0.2.tgz
Normal file
BIN
clone-1.0.2.tgz
Normal file
Binary file not shown.
1
nodejs-clone
Submodule
1
nodejs-clone
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a0b6aa5786a87d1c8e623320b27ea3c99913add4
|
||||||
43
nodejs-clone.spec
Normal file
43
nodejs-clone.spec
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
%global enable_tests 1
|
||||||
|
%global srcname clone
|
||||||
|
Name: nodejs-%{srcname}
|
||||||
|
Version: 1.0.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Deep cloning of objects and arrays
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/pvorb/node-clone
|
||||||
|
Source0: https://registry.npmjs.org/clone/-/clone-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: nodeunit npm(underscore)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
Offers foolproof deep cloning of variables in JavaScript.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
rm -rf node_modules/
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||||
|
cp -pr package.json clone.js %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
nodeunit test.js
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{srcname}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 1.0.2-1
|
||||||
|
- package init
|
||||||
90
nodejs-clone.spec.old
Normal file
90
nodejs-clone.spec.old
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
%global enable_tests 1
|
||||||
|
%global srcname clone
|
||||||
|
|
||||||
|
Name: nodejs-%{srcname}
|
||||||
|
Version: 1.0.2
|
||||||
|
Release: 7%{?dist}
|
||||||
|
Summary: Deep cloning of objects and arrays
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/pvorb/node-clone
|
||||||
|
Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: nodeunit
|
||||||
|
BuildRequires: npm(underscore)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Offers foolproof deep cloning of variables in JavaScript.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
rm -rf node_modules/
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
#nothing to do
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||||
|
cp -pr package.json clone.js %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||||
|
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
nodeunit test.js
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{srcname}
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Nov 12 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.2-1
|
||||||
|
- Update to new version
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Dec 19 2014 Piotr Popieluch <piotr1212@gmail.com> - 0.2.0-1
|
||||||
|
- updated to latest upstream
|
||||||
|
|
||||||
|
* Sat Dec 6 2014 Piotr Popieluch <piotr1212@gmail.com> - 0.1.18-2
|
||||||
|
- Added LICENSE to %%files
|
||||||
|
- Added rm -rf node_modules to %%prep
|
||||||
|
- Capitalized summary
|
||||||
|
- Removed Group tag
|
||||||
|
|
||||||
|
* Fri Nov 21 2014 Piotr Popieluch <piotr1212@gmail.com> - 0.1.18-1
|
||||||
|
- Initial package
|
||||||
4
nodejs-clone.yaml
Normal file
4
nodejs-clone.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: pvorb/node-clone
|
||||||
|
tag_prefix: "^"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user