/[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 892929 - (hide annotations) (download)
Mon Oct 19 23:45:45 2015 UTC (8 years, 5 months ago) by spuhler
Original Path: cauldron/nodejs-minimist/current/SPECS/nodejs-minimist.spec
File size: 1336 byte(s)
imported package nodejs-minimist
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     # depends on this
5     %global enable_tests 1
6    
7     Name: nodejs-minimist
8     Version: 0.0.1
9     Release: 3%{?dist}
10     Summary: Parse argument options in Node.js
11    
12     Group: System Environment/Libraries
13     License: MIT
14     URL: http://github.com/substack/minimist
15     Source0: http://registry.npmjs.org/minimist/-/minimist-%{version}.tgz
16     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17    
18     BuildArch: noarch
19     %if 0%{?fedora} >= 19
20     ExclusiveArch: %{nodejs_arches} noarch
21     %else
22     ExclusiveArch: %{ix86} x86_64 %{arm} noarch
23     %endif
24    
25     BuildRequires: nodejs-packaging
26    
27     %if 0%{?enable_tests}
28     BuildRequires: npm(tap)
29     BuildRequires: npm(tape)
30     %endif
31    
32     %description
33     %{summary}.
34    
35     This module is the guts of nodejs-optimist's argument parser without all the
36     fanciful decoration.
37    
38     %prep
39     %setup -q -n package
40    
41     %build
42     #nothing to do
43    
44     %install
45     rm -rf %buildroot
46     mkdir -p %{buildroot}%{nodejs_sitelib}/minimist
47     cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/minimist
48    
49     %check
50     %if 0%{?enable_tests}
51     %nodejs_symlink_deps --check
52     %tap test/*.js
53     %endif
54    
55     %clean
56     rm -rf %buildroot
57    
58     %files
59     %defattr(-,root,root,-)
60     %{nodejs_sitelib}/minimist
61     %doc LICENSE readme.markdown example
62    

  ViewVC Help
Powered by ViewVC 1.1.30