1 %define pkg mysql-native
2 Summary: MySQL protocol client for Node.js
7 Group: Development/Libraries
8 Source0: http://registry.npmjs.org/mysql-native/-/%{pkg}-%{version}.tgz
9 # Source0-md5: e08a768366196f6a3917ed29038d3f66
10 URL: http://github.com/sidorares/nodejs-mysql-native
11 BuildRequires: rpmbuild(macros) >= 1.634
12 Requires: nodejs >= 0.6.0
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 MySQL client module for node.js, written in JavaScript. No other mysql
20 Deprecated. If you are using it, please consider migrating to
28 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
31 cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
33 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
34 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
41 %doc AUTHORS Changelog LICENSE README.md
42 %{nodejs_libdir}/%{pkg}
43 %{_examplesdir}/%{name}-%{version}