81600ec
%global npm_name mysql
81600ec
# Although there are tests
81600ec
# the dependancies aren't in Fedora yet
81600ec
%global enable_tests 0
81600ec
76f3bea
%{?nodejs_find_provides_and_requires}
76f3bea
81600ec
Summary:       A node.js driver for mysql
81600ec
Name:          nodejs-%{npm_name}
2b79a2b
Version:       2.10.1
f2beeec
Release:       4%{?dist}
81600ec
Group:         Development/Languages
81600ec
License:       MIT
81600ec
URL:           http://github.com/felixge/node-mysql
76f3bea
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
81600ec
BuildRequires: nodejs-devel
81600ec
%if 0%{?enable_tests}
81600ec
BuildRequires:  npm(underscore)
81600ec
BuildRequires:  npm(urun)
81600ec
BuildRequires:  npm(utest)
81600ec
%endif
81600ec
BuildArch:     noarch
838f2df
ExclusiveArch: %{nodejs_arches} noarch
81600ec
81600ec
%description
81600ec
This is a node.js driver for mysql.
81600ec
It is written in JavaScript, does not require compiling, 
81600ec
and is 100% MIT licensed.
81600ec
81600ec
%prep
81600ec
%setup -q -n package
2b79a2b
2b79a2b
%nodejs_fixdep bignumber.js '>=2.1.2'
2b79a2b
%nodejs_fixdep readable-stream '>=1.1.13'
81600ec
81600ec
%build
81600ec
#nothing to do
81600ec
81600ec
%install
81600ec
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
675b29d
cp -pr index.js lib package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
81600ec
81600ec
%if 0%{?enable_tests}
81600ec
%check
81600ec
make test
81600ec
%endif
81600ec
81600ec
%files
2b79a2b
%doc Changes.md Readme.md
2b79a2b
%license License
81600ec
%{nodejs_sitelib}/%{npm_name}
81600ec
81600ec
%changelog
f2beeec
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-4
f2beeec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f2beeec
838f2df
* Thu Dec 22 2016 Tom Hughes <tom@compton.nu> - 2.10.1-3
838f2df
- Update supported architectures
838f2df
fa2155f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-2
fa2155f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fa2155f
858ac6b
* Tue Jan 12 2016 Troy Dawson <tdawson@redhat.com> - 2.10.1-1
2b79a2b
- Update to 2.10.1
2b79a2b
2b79a2b
* Mon Sep 21 2015 Troy Dawson <tdawson@redhat.com> - 2.9.0-1
2b79a2b
- Update to 2.9.0
2b79a2b
c48feed
* Mon Sep 21 2015 Troy Dawson <tdawson@redhat.com> - 2.9.0-1
c48feed
- Update to 2.9.0
c48feed
f85aad7
* Mon Jul 27 2015 Troy Dawson <tdawson@redhat.com> - 2.8.0-1
f85aad7
- Update to 2.8.0
f85aad7
1e902d9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-2
1e902d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1e902d9
bf32335
* Tue May 05 2015 Troy Dawson <tdawson@redhat.com> - 2.6.2-1
bf32335
- Updated to latest release
bf32335
675b29d
* Wed Feb 25 2015 Troy Dawson <tdawson@redhat.com> - 2.5.5-1
675b29d
- Updated to latest release
675b29d
8e54c7e
* Thu Jan 22 2015 Troy Dawson <tdawson@redhat.com> - 2.5.4-1
8e54c7e
- Updated to latest release
8e54c7e
5ffcfec
* Fri Oct 24 2014 Troy Dawson <tdawson@redhat.com> - 2.5.2-1
5ffcfec
- Updated to latest release
5ffcfec
36bf41b
* Mon Jun 09 2014 Troy Dawson <tdawson@redhat.com> - 2.3.2-1
36bf41b
- Update to version 2.3.2
36bf41b
2484c0c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
2484c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2484c0c
69beb4e
* Wed May 28 2014 Troy Dawson <tdawson@redhat.com> - 2.3.1-1
69beb4e
- Update to version 2.3.1
69beb4e
c3b3130
* Tue Apr 29 2014 Troy Dawson <tdawson@redhat.com> - 2.2.0-1
c3b3130
- Update to version 2.2.0
c3b3130
1a6ed42
* Fri Mar 14 2014 Troy Dawson <tdawson@redhat.com> - 2.1.1-1
1a6ed42
- Update to version 2.1.1
1a6ed42
779e4ff
* Thu Feb 20 2014 Troy Dawson <tdawson@redhat.com> - 2.1.0-1
779e4ff
- Update to version 2.1.0
779e4ff
45dc7cf
* Fri Feb 07 2014 Troy Dawson <tdawson@redhat.com> - 2.0.1-2
45dc7cf
- readable-stream not needed in nodejs >= 0.10
45dc7cf
76f3bea
* Thu Feb 06 2014 Troy Dawson <tdawson@redhat.com> - 2.0.1-1
76f3bea
- Update to version 2.0.1
76f3bea
- add nodejs exclusive arch
76f3bea
- add macro to invoke dependency generator on EL6
76f3bea
5ec147b
* Thu Oct 10 2013 Troy Dawson <tdawson@redhat.com> - 2.0.0-alpha9.2
5ec147b
- Fix require-all dependancy to work with version in Fedora
5ec147b
81600ec
* Thu Oct 03 2013 Troy Dawson <tdawson@redhat.com> - 2.0.0-alpha9.1
81600ec
- Updated to version 2.0.0-alpha9
81600ec
81600ec
* Tue May 21 2013 Troy Dawson <tdawson@redhat.com> - 2.0.0-alpha8.1
81600ec
- Initial build
81600ec