fuanan add package
This commit is contained in:
parent
337dd742fa
commit
00d75c364d
BIN
difflet-0.2.3.tgz
Normal file
BIN
difflet-0.2.3.tgz
Normal file
Binary file not shown.
49
nodejs-difflet.spec
Normal file
49
nodejs-difflet.spec
Normal file
@ -0,0 +1,49 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 0
|
||||
Name: nodejs-difflet
|
||||
Version: 0.2.3
|
||||
Release: 1
|
||||
Summary: Colorful diffs for JavaScript objects
|
||||
License: MIT
|
||||
URL: https://github.com/substack/difflet
|
||||
Source0: http://registry.npmjs.org/difflet/-/difflet-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
%if 0%{?fedora} >= 19
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
%else
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||
%endif
|
||||
BuildRequires: nodejs-packaging
|
||||
BuildRequires: npm(charm) npm(deep-equal) npm(traverse)
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tap) npm(ent)
|
||||
%endif
|
||||
%description
|
||||
Creates colorful diffs for JavaScript objects,
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%nodejs_fixdep charm '~0.1.0'
|
||||
%nodejs_fixdep deep-equal '^1.0.1'
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/difflet
|
||||
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/difflet
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%__nodejs -e "require('./')"
|
||||
%if 0%{?enable_tests}
|
||||
%tap test/*.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{nodejs_sitelib}/difflet
|
||||
%doc README.markdown example
|
||||
|
||||
%changelog
|
||||
* Tue Aug 18 2020 Anan Fu <fuanan3@huawei.com> - 0.2.3-1
|
||||
- package init
|
||||
113
nodejs-difflet.spec.old
Normal file
113
nodejs-difflet.spec.old
Normal file
@ -0,0 +1,113 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
|
||||
%global enable_tests 0
|
||||
|
||||
Name: nodejs-difflet
|
||||
Version: 0.2.3
|
||||
Release: 16%{?dist}
|
||||
Summary: Colorful diffs for JavaScript objects
|
||||
|
||||
#no license file included; "MIT" indicated in package.json
|
||||
License: MIT
|
||||
URL: https://github.com/substack/difflet
|
||||
Source0: http://registry.npmjs.org/difflet/-/difflet-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
|
||||
%if 0%{?fedora} >= 19
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
%else
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||
%endif
|
||||
|
||||
BuildRequires: nodejs-packaging
|
||||
|
||||
BuildRequires: npm(charm)
|
||||
BuildRequires: npm(deep-equal)
|
||||
BuildRequires: npm(traverse)
|
||||
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tap)
|
||||
BuildRequires: npm(ent)
|
||||
%endif
|
||||
|
||||
%description
|
||||
Creates colorful diffs for JavaScript objects,
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%nodejs_fixdep charm '~0.1.0'
|
||||
%nodejs_fixdep deep-equal '^1.0.1'
|
||||
|
||||
|
||||
%build
|
||||
#nothing to do
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/difflet
|
||||
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/difflet
|
||||
%nodejs_symlink_deps
|
||||
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%__nodejs -e "require('./')"
|
||||
%if 0%{?enable_tests}
|
||||
%tap test/*.js
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%{nodejs_sitelib}/difflet
|
||||
%doc README.markdown example
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2016 Tom Hughes <tom@compton.nu> - 0.2.3-10
|
||||
- Cleanup spec file, removing %%defattr
|
||||
|
||||
* Fri Sep 4 2015 Tom Hughes <tom@compton.nu> - 0.2.3-9
|
||||
- Fix deep-equal dependency
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed Oct 29 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.3-7
|
||||
- fix version of npm(deep-equal) dependency
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Sun Jul 21 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.3-4
|
||||
- restrict to compatible arches
|
||||
|
||||
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.3-3
|
||||
- add macro to enable dependency generation on EPEL6
|
||||
|
||||
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.3-2
|
||||
- fix charm dep for newer version already in repos
|
||||
|
||||
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.3-1
|
||||
- initial package generated by npm2rpm
|
||||
4
nodejs-difflet.yaml
Normal file
4
nodejs-difflet.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: substack/difflet
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user