]> git.pld-linux.org Git - SPECS.git/blob - nodejs-mysql-native.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / nodejs-mysql-native.spec
1 %define         pkg     mysql-native
2 Summary:        MySQL protocol client for Node.js
3 Name:           nodejs-%{pkg}
4 Version:        0.4.7
5 Release:        1
6 License:        MIT
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
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 MySQL client module for node.js, written in JavaScript. No other mysql
18 runtime required.
19
20 Deprecated. If you are using it, please consider migrating to
21 node-mysql2
22
23 %prep
24 %setup -qc
25 mv package/* .
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29
30 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
31 cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
32
33 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
34 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %files
40 %defattr(644,root,root,755)
41 %doc AUTHORS Changelog LICENSE README.md
42 %{nodejs_libdir}/%{pkg}
43 %{_examplesdir}/%{name}-%{version}
This page took 0.584592 seconds and 3 git commands to generate.