Accepting request 314102 from home:MargueriteSu:branches:devel:languages:nodejs
OBS-URL: https://build.opensuse.org/request/show/314102 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-grunt-cli?expand=0&rev=2
This commit is contained in:
30
grunt-cli-0.1.13-deps.patch
Normal file
30
grunt-cli-0.1.13-deps.patch
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
Index: package/package.json
|
||||||
|
===================================================================
|
||||||
|
--- package.orig/package.json
|
||||||
|
+++ package/package.json
|
||||||
|
@@ -21,19 +21,19 @@
|
||||||
|
"grunt": "bin/grunt"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
- "node": ">= 0.8.0"
|
||||||
|
+ "node": ">= 0.10.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "node bin/grunt test"
|
||||||
|
},
|
||||||
|
"preferGlobal": true,
|
||||||
|
"dependencies": {
|
||||||
|
- "nopt": "~1.0.10",
|
||||||
|
- "findup-sync": "~0.1.0",
|
||||||
|
- "resolve": "~0.3.1"
|
||||||
|
+ "nopt": "^3.0.1",
|
||||||
|
+ "findup-sync": "^0.2.1",
|
||||||
|
+ "resolve": "^1.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
- "grunt": "~0.4.0",
|
||||||
|
- "grunt-contrib-jshint": "~0.2.0"
|
||||||
|
+ "grunt": "^0.4.5",
|
||||||
|
+ "grunt-contrib-jshint": "^0.11.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 27 15:16:55 UTC 2015 - i@marguerite.su
|
||||||
|
|
||||||
|
- use nodejs-packaging
|
||||||
|
- clean specfile
|
||||||
|
- add patch: grunt-cli-0.1.13-deps.patch
|
||||||
|
* upstream just bumped dependency version in git without any
|
||||||
|
changes, so it's safe for us to bump them too
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 13 20:46:33 UTC 2015 - darin@darins.net
|
Fri Feb 13 20:46:33 UTC 2015 - darin@darins.net
|
||||||
|
|
||||||
- Initial build
|
- initial version 0.1.13
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +1,45 @@
|
|||||||
|
#
|
||||||
|
# spec file for package nodejs-grunt-cli
|
||||||
|
#
|
||||||
|
# Copyright (c) 2015 SUSE LINUX 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%define base_name grunt-cli
|
%define base_name grunt-cli
|
||||||
|
Name: nodejs-%{base_name}
|
||||||
|
Version: 0.1.13
|
||||||
|
Release: 0
|
||||||
|
Summary: The grunt command line interface
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Languages/Other
|
||||||
|
Url: https://github.com/gruntjs/grunt-cli
|
||||||
|
Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
||||||
|
#PATH-FIX-UPSTREAM marguerite@opensuse.org - bump dependencies versions safely
|
||||||
|
Patch: grunt-cli-0.1.13-deps.patch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
BuildRequires: zsh
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
Name: nodejs-%{base_name}
|
%nodejs_find_provides_and_requires
|
||||||
Version: 0.1.13
|
|
||||||
Release: 0
|
|
||||||
License: MIT
|
|
||||||
Summary: The grunt command line interface
|
|
||||||
URL: http://gruntjs.com/
|
|
||||||
Group: Development/Languages/Other
|
|
||||||
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
|
||||||
Requires: nodejs
|
|
||||||
Requires: nodejs-nopt
|
|
||||||
BuildRequires: nodejs
|
|
||||||
BuildRequires: nodejs-packaging
|
|
||||||
BuildRequires: zsh
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
||||||
BuildArch: noarch
|
|
||||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Node.js grunt-cli module. The grunt command line interface.
|
Node.js grunt-cli module. The grunt command line interface.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n package
|
%setup -q -n package
|
||||||
|
%patch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@@ -31,21 +48,17 @@ mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
|
|||||||
cp -pr package.json lib \
|
cp -pr package.json lib \
|
||||||
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
|
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
|
||||||
|
|
||||||
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/bash_completion.d
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/bash_completion.d
|
||||||
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/zsh_completion.d
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/zsh_completion.d
|
||||||
%{__install} -d -m 0755 %{buildroot}%{_bindir}
|
install -d -m 0755 %{buildroot}%{_bindir}
|
||||||
|
|
||||||
%{__install} -m 0755 bin/grunt %{buildroot}%{_bindir}
|
install -m 0755 bin/grunt %{buildroot}%{_bindir}
|
||||||
%{__install} -m 0755 completion/bash %{buildroot}%{_sysconfdir}/bash_completion.d/%{base_name}
|
install -m 0755 completion/bash %{buildroot}%{_sysconfdir}/bash_completion.d/%{base_name}
|
||||||
%{__install} -m 0755 completion/zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/%{base_name}
|
install -m 0755 completion/zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/%{base_name}
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.md
|
%doc README.md LICENSE-MIT AUTHORS
|
||||||
%{nodejs_modulesdir}/%{base_name}
|
%{nodejs_modulesdir}/%{base_name}
|
||||||
%{_bindir}/grunt
|
%{_bindir}/grunt
|
||||||
%{_sysconfdir}/bash_completion.d/%{base_name}
|
%{_sysconfdir}/bash_completion.d/%{base_name}
|
||||||
|
|||||||
Reference in New Issue
Block a user