]> git.pld-linux.org Git - SPECS.git/blob - nodejs-proto-list.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / nodejs-proto-list.spec
1 %define         pkg     proto-list
2 Summary:        A list of objects bound by prototype chain
3 Name:           nodejs-%{pkg}
4 Version:        1.2.2
5 Release:        1
6 License:        MIT
7 Group:          Development/Libraries
8 URL:            https://github.com/isaacs/proto-list
9 Source0:        http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
10 # Source0-md5:  ecd652b4aa9724ee1ca902599dd8deac
11 #BuildRequires:  nodejs-tap
12 BuildRequires:  rpmbuild(macros) >= 1.634
13 Requires:       nodejs
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 A list of objects bound by prototype chain. Used for the Node.js
19 package manager (npm) configuration.
20
21 %prep
22 %setup -qc
23 mv package/* .
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27
28 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
29 cp -p %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
30
31 # We currently don't run tests because I'd have to file another ten or
32 # so review reuqests for the node.js TAP testing framework and methinks there
33 # are enough of those for now.  ;-)
34 ##%%check
35 ##%%nodejs %{pkg}.js
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %doc LICENSE README.md
43 %{nodejs_libdir}/%{pkg}
This page took 0.568766 seconds and 3 git commands to generate.