Accepting request 250355 from home:MargueriteSu:branches:devel:languages:nodejs

OBS-URL: https://build.opensuse.org/request/show/250355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-coffeestack?expand=0&rev=1
This commit is contained in:
2014-09-20 16:19:29 +00:00
committed by Git OBS Bridge
commit 17d8d7befb
6 changed files with 110 additions and 0 deletions

63
nodejs-coffeestack.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# spec file for package nodejs-coffeestack
#
# Copyright (c) 2014 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-coffeestack
Version: 0.7.0
Release: 0
Summary: CoffeeScript Stacktrace Converter
License: BSD-3-Clause
Group: Development/Languages/Other
Url: https://github.com/kevinsawicki/coffeestack
Source: coffeestack-%{version}.tar.gz
Patch: coffeestack-remove-dependency-tag.patch
BuildRequires: coffeescript
BuildRequires: nodejs
BuildRequires: nodejs-source-map
BuildRequires: npm
Requires: coffeescript
Requires: nodejs-source-map
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{nodejs_requires}
%description
Module to convert JavaScript stack traces to CoffeeScript
stack traces.
%prep
%setup -q -n coffeestack-%{version}
cp -r package.json ..
%patch -p1
pushd ..
tar -czf %{SOURCE0} coffeestack-%{version}
popd
%build
%install
%{nodejs_install}
# manual install original package.json
install -m 0644 ../package.json %{buildroot}%{nodejs_modulesdir}/coffeestack
%files
%defattr(-,root,root,-)
%doc README.md
%{nodejs_modulesdir}/coffeestack
%changelog