fuanan add package
This commit is contained in:
parent
f053aceb38
commit
d11937708b
@ -1,90 +0,0 @@
|
||||
%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
|
||||
Loading…
x
Reference in New Issue
Block a user