/[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 1676552 - (hide annotations) (download)
Wed Feb 24 21:21:24 2021 UTC (3 years, 1 month ago) by umeabot
File size: 1096 byte(s)
SILENT Branching for Mageia 8
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 neoclust 1666468 Version: 1.2.5
9     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     URL: http://github.com/substack/minimist
15 neoclust 1666468 Source0: http://registry.npmjs.org/minimist/-/minimist-%{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