commit 23aa121edab3e16bf8422f6bb7d2a578b05b7d874905354438122e12b01196e7 Author: Adam Majer Date: Fri Jul 7 14:14:44 2017 +0000 - Initial release. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/node b/node new file mode 100644 index 0000000..1161cd6 --- /dev/null +++ b/node @@ -0,0 +1,7 @@ +#!/bin/sh + +PROG=$(basename $0) +PROG_VERSION=${NODE_VERSION:--default} + +exec ${PROG}${PROG_VERSION} "$@" + diff --git a/nodejs-common.changes b/nodejs-common.changes new file mode 100644 index 0000000..545d09c --- /dev/null +++ b/nodejs-common.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jul 7 13:09:29 UTC 2017 - adam.majer@suse.de + +- Initial release. diff --git a/nodejs-common.spec b/nodejs-common.spec new file mode 100644 index 0000000..86cc8fa --- /dev/null +++ b/nodejs-common.spec @@ -0,0 +1,51 @@ +# +# spec file for package nodejs-common +# +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + +Name: nodejs-common +Version: 1.0 +Release: 0 +License: GPL-3.0+ +Summary: Common files for NodeJS ecosystem +Url: https://github.com/AdamMajer/nodejs-packaging +Group: Development/Languages/NodeJS +Source1: node +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 +%install +install -D -m 0755 %{S:1} %{buildroot}%{_bindir}/node +ln -s node %{buildroot}%{_bindir}/npm + +%files +%defattr(-,root,root) +%{_bindir}/node +%{_bindir}/npm + +%changelog +