Blame nodejs-got.spec

5b3c9df
%global enable_tests 0
5b3c9df
# Tests require npm(ava), which isn't packaged in Fedora yet
5b3c9df
f8c1fc0
%global module_name got
f8c1fc0
f8c1fc0
Name:           nodejs-%{module_name}
6c4a666
Version:        6.7.1
af57852
Release:        10%{?dist}
f8c1fc0
Summary:        Simplified HTTP/HTTPS requests
f8c1fc0
f8c1fc0
License:        MIT
f8c1fc0
URL:            https://github.com/sindresorhus/got
d6fd3c9
Source0:        https://github.com/sindresorhus/%{module_name}/archive/v%{version}.tar.gz
7527faf
Patch0:		nodejs-got_use-decompress-response.patch
7527faf
f8c1fc0
BuildArch:      noarch
f8c1fc0
ExclusiveArch:  %{nodejs_arches} noarch
f8c1fc0
f8c1fc0
BuildRequires:  nodejs-packaging
f8c1fc0
fccb93a
%if 0%{?enable_tests}
5b3c9df
BuildRequires: npm(ava)
fccb93a
BuildRequires: npm(create-error-class)
1578819
BuildRequires: npm(duplexer3)
1578819
BuildRequires: npm(get-stream)
fccb93a
BuildRequires: npm(is-redirect)
1578819
BuildRequires: npm(is-retry-allowed)
fccb93a
BuildRequires: npm(is-stream)
fccb93a
BuildRequires: npm(lowercase-keys)
1578819
BuildRequires: npm(timed-out)
2a7630a
BuildRequires: npm(decompress-response)
1578819
BuildRequires: npm(url-parse-lax)
1578819
BuildRequires: npm(into-stream)
1578819
BuildRequires: npm(pem)
08ffbdf
BuildRequires: npm(safe-buffer)
fccb93a
%endif
fccb93a
f8c1fc0
%description
f8c1fc0
Simplified HTTP/HTTPS requests. A nicer interface to the built-in http module.
f8c1fc0
It also supports following redirects and automagically handling gzip/deflate.
f8c1fc0
f8c1fc0
%prep
d6fd3c9
%setup -q -n %{module_name}-%{version}
f8c1fc0
rm -rf node_modules
7527faf
%patch0 -p1
f8c1fc0
e951a37
#Remove following get-stream in next release > 6.6.3
e951a37
%nodejs_fixdep get-stream
9da1066
%nodejs_fixdep timed-out 
04691ff
%nodejs_fixdep url-parse-lax
f2173d3
f8c1fc0
%build
f8c1fc0
# nothing to build
f8c1fc0
f8c1fc0
%install
f8c1fc0
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
f8c1fc0
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
f8c1fc0
%nodejs_symlink_deps
f8c1fc0
f8c1fc0
%if 0%{?enable_tests}
f8c1fc0
%check
f8c1fc0
%nodejs_symlink_deps --check
900f64b
%{__nodejs} -e 'require("./")'
fccb93a
# These tests not working so remove them for now
5b3c9df
#rm -f test/test-error.js
5b3c9df
#rm -f test/test-arguments.js
5b3c9df
#rm -f test/test-https.js
5b3c9df
#rm -f test/test-http.js
fccb93a
tap test/test-*.js
f8c1fc0
%endif
f8c1fc0
f8c1fc0
%files
b5c8fb2
%doc readme.md
b5c8fb2
%license license
f8c1fc0
%{nodejs_sitelib}/%{module_name}
f8c1fc0
f8c1fc0
%changelog
af57852
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.1-10
af57852
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
af57852
7527faf
* Fri Apr 06 2018 Jared K. Smith <jsmith@fedoraproject.org> - 6.7.1-9
7527faf
- Add patch to move to using decompress-response
7527faf
2a7630a
* Mon Feb 26 2018 Jared Smith <jsmith@fedoraproject.org> - 6.7.1-8
2a7630a
- Use npm(decompress-response) instead of npm(unzip-response)
2a7630a
5b3c9df
* Wed Feb 21 2018 Jared Smith <jsmith@fedoraproject.org> - 6.7.1-7
5b3c9df
- Fix up building, waiting on RHBZ#1547588
5b3c9df
a1b1a97
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.1-6
a1b1a97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a1b1a97
04691ff
* Mon Oct 23 2017 Parag Nemade <pnemade AT redhat DOT com> - 6.7.1-5
04691ff
- Add back fixdep on url-parse-lax
04691ff
8bf4a1b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.1-4
8bf4a1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8bf4a1b
900f64b
* Sun Feb 19 2017 Parag Nemade <pnemade AT redhat DOT com> - 6.7.1-3
900f64b
- Add check for missing dependencies
900f64b
b427fae
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.1-2
b427fae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b427fae
ba7f93a
* Fri Dec 30 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.7.1-1
6c4a666
- Update to 6.7.1 release
6c4a666
e951a37
* Mon Nov 28 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.6.3-3
e951a37
- Add back fixdep on get-stream
e951a37
1578819
* Sun Nov 27 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.6.3-2
1578819
- Update BuildRequires and remove not needed fixdeps in %%prep
1578819
9354422
* Tue Nov 08 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.6.3-1
9354422
- Update to 6.6.3 release
9354422
37c5fa7
* Thu Nov 03 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.6.0-1
37c5fa7
- Update to 6.6.0 release
37c5fa7
9da1066
* Mon Sep 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.5.0-2
9da1066
- fixdep for npm(timed-out)
9da1066
80bce69
* Fri Sep 16 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.5.0-1
80bce69
- Update to 6.5.0 release
80bce69
8a790ae
* Sun Apr 10 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.3.0-1
8a790ae
- Update to 6.3.0 release
8a790ae
e27362b
* Fri Mar  4 2016 Tom Hughes <tom@compton.nu> - 6.2.0-2
e27362b
- Update npm(get-stream) dependency
e27362b
172fb30
* Thu Mar 03 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.2.0-1
172fb30
- Update to 6.2.0 release
172fb30
7e732f1
* Mon Feb 29 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.1.2-1
7e732f1
- Update to 6.1.2 release
7e732f1
bd832a6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-2
bd832a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bd832a6
7393297
* Thu Jan 28 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.1.1-1
7393297
- Update to 6.1.1
7393297
09cbefa
* Tue Jan 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.1.0-1
09cbefa
- Update to 6.1.0
09cbefa
0026126
* Tue Jan 12 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.0.1-1
0026126
- Update to 6.0.1
0026126
9d4dba5
* Fri Jan 08 2016 Parag Nemade <pnemade AT redhat DOT com> - 6.0.0-1
9d4dba5
- Update to 6.0.0
9d4dba5
f19e7cf
* Mon Dec 21 2015 Parag Nemade <pnemade AT redhat DOT com> - 5.3.0-1
f19e7cf
- Update to 5.3.0
f19e7cf
d6fd3c9
* Thu Nov 26 2015 Parag Nemade <pnemade AT redhat DOT com> - 5.1.0-1
d6fd3c9
- Update to 5.1.0
d6fd3c9
ec91d97
* Thu Nov 26 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.2.0-2
ec91d97
- fixdep npm(pinkie-promise)
ec91d97
ec91d97
* Fri Sep 11 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.2.0-1
ec91d97
- Update to 4.2.0
ec91d97
8dca5af
* Wed Aug 26 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.1.1-2
8dca5af
- fixdep npm(object-assign)
8dca5af
fccb93a
* Mon Aug 24 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.1.1-1
fccb93a
- Update to 4.1.1
fccb93a
9470ae3
* Thu Jul 30 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.1.0-1
9470ae3
- Update to 4.1.0
9470ae3
caf9d34
* Wed Jul 29 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.0.0-1
caf9d34
- Update to 4.0.0
caf9d34
f2173d3
* Wed Jul 22 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.1-2
f2173d3
- fixdep npm(readable-stream)
f2173d3
2260061
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.1-1
2260061
- Update to 3.3.1
2260061
b6131b6
* Fri Jul 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.0-1
b6131b6
- Update to 3.3.0
b6131b6
d272756
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
d272756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d272756
b5c8fb2
* Tue Feb 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.3.2-1
b5c8fb2
- Update to 2.3.2
b5c8fb2
b5c8fb2
* Sun Jan 11 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.3.0-1
b5c8fb2
- Update to 2.3.0
4e41c03
f8c1fc0
* Wed Dec 03 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.2.0-1
f8c1fc0
- Initial packaging
f8c1fc0