forked from theforeman/npm2rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.n2r
56 lines (43 loc) · 860 Bytes
/
default.n2r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# FIXME
# Remove nodejs_symlink_deps if installing bundled module with NPM
%global npm_name $NAME
%global enable_tests 0
%{?nodejs_find_provides_and_requires}
Name: nodejs-%{npm_name}
Version: $VERSION
Release: $RELEASE%{?dist}
Summary: $SUMMARY
License: $LICENSE
URL: $PROJECTURL
$SOURCES
BuildRequires: nodejs-packaging
BuildArch: noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%endif
$PROVIDES
%description
%{summary}
%prep
$SETUP
%build
$BUILD
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
$COPYFILES
# If any binaries are included, symlink them to bindir here
$BINSNIPPET
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%{nodejs_symlink_deps} --check
#$CHECK
%endif
%files
%{nodejs_sitelib}/%{npm_name}
$FILESBINSNIPPET
$LICENSEFILE
$DOCFILES
%changelog