/[packages]/updates/8/nodejs-minimist/current/SPECS/nodejs-minimist.spec
ViewVC logotype

Annotation of /updates/8/nodejs-minimist/current/SPECS/nodejs-minimist.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1936944 - (hide annotations) (download)
Mon Jan 30 09:15:24 2023 UTC (14 months, 2 weeks ago) by ns80
File size: 1111 byte(s)
- new version 1.2.7 for CVE-2021-44906 (mga#31445)

1 spuhler 892929 %{?nodejs_find_provides_and_requires}
2    
3     # sometimes you might need to disable tests to get it to build since tap
4 spuhler 892939 # depends on this. enabling tast require a lot of deps.
5     %global enable_tests 0
6 spuhler 892929
7     Name: nodejs-minimist
8 ns80 1936944 Version: 1.2.7
9 neoclust 1666468 Release: %mkrel 1
10 spuhler 892929 Summary: Parse argument options in Node.js
11    
12 spuhler 892940 Group: System/Libraries
13 spuhler 892929 License: MIT
14 ns80 1936944 URL: https://github.com/minimistjs/minimist
15     Source0: https://github.com/minimistjs/minimist/archive/refs/tags/v%{version}.tar.gz
16 spuhler 892929 BuildRequires: nodejs-packaging
17    
18     %if 0%{?enable_tests}
19     BuildRequires: npm(tap)
20     BuildRequires: npm(tape)
21     %endif
22 spuhler 892939 BuildArch: noarch
23 spuhler 892929
24 spuhler 892939
25 spuhler 892929 %description
26     This module is the guts of nodejs-optimist's argument parser without all the
27     fanciful decoration.
28    
29     %prep
30 neoclust 1666468 %setup -q -n minimist-%version
31 spuhler 892929
32     %build
33     #nothing to do
34    
35     %install
36     mkdir -p %{buildroot}%{nodejs_sitelib}/minimist
37     cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/minimist
38    
39     %check
40     %if 0%{?enable_tests}
41     %nodejs_symlink_deps --check
42     %tap test/*.js
43     %endif
44    
45    
46     %files
47     %{nodejs_sitelib}/minimist
48     %doc LICENSE readme.markdown example
49    

  ViewVC Help
Powered by ViewVC 1.1.30