2017-07-07 16:14:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package nodejs-common
|
|
|
|
#
|
2018-04-03 13:21:05 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-07-07 16:14:44 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2017-08-02 16:59:33 +02:00
|
|
|
|
2017-07-12 14:32:58 +02:00
|
|
|
###########################################################
|
|
|
|
#
|
|
|
|
# WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
|
|
|
|
#
|
|
|
|
# This spec file is generated from a template hosted at
|
|
|
|
# https://github.com/AdamMajer/nodejs-packaging
|
|
|
|
#
|
|
|
|
###########################################################
|
|
|
|
|
2017-07-07 16:14:44 +02:00
|
|
|
Name: nodejs-common
|
2017-08-02 16:59:33 +02:00
|
|
|
Version: 2.0
|
2017-07-07 16:14:44 +02:00
|
|
|
Release: 0
|
2017-07-12 14:32:00 +02:00
|
|
|
Summary: Common files for the NodeJS ecosystem
|
2017-08-02 16:59:33 +02:00
|
|
|
License: MIT
|
2017-07-07 16:14:44 +02:00
|
|
|
Group: Development/Languages/NodeJS
|
2017-08-02 16:59:33 +02:00
|
|
|
Url: https://github.com/AdamMajer/nodejs-packaging
|
2017-07-07 16:14:44 +02:00
|
|
|
Source1: node
|
2018-06-22 15:55:12 +02:00
|
|
|
Source2: LICENSE
|
2017-07-07 16:14:44 +02:00
|
|
|
Requires: nodejs
|
|
|
|
Conflicts: nodejs4 < 4.8.4
|
|
|
|
Conflicts: nodejs6 < 6.11.1
|
|
|
|
Conflicts: nodejs7 < 7.10.1
|
|
|
|
Conflicts: nodejs8 < 8.1.4
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Common NodeJS files that allow recursive invocation of Node executable
|
|
|
|
while retaining the same codestream version.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%build
|
2018-06-22 15:55:12 +02:00
|
|
|
cp %{S:2} .
|
|
|
|
|
2017-07-07 16:14:44 +02:00
|
|
|
%install
|
|
|
|
install -D -m 0755 %{S:1} %{buildroot}%{_bindir}/node
|
|
|
|
ln -s node %{buildroot}%{_bindir}/npm
|
2017-08-02 16:59:33 +02:00
|
|
|
ln -s node %{buildroot}%{_bindir}/npx
|
2017-07-07 16:14:44 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/node
|
|
|
|
%{_bindir}/npm
|
2017-08-02 16:59:33 +02:00
|
|
|
%{_bindir}/npx
|
2018-06-22 15:55:12 +02:00
|
|
|
%license LICENSE
|
2017-07-07 16:14:44 +02:00
|
|
|
|
|
|
|
%changelog
|