Files
nodejs-coffeestack/nodejs-coffeestack.spec

64 lines
1.8 KiB
RPMSpec

#
# 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