2014-09-26 13:52:41 +00:00
|
|
|
#
|
|
|
|
# spec file for package nodejs-pathwatcher
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
%define base_name pathwatcher
|
|
|
|
|
|
|
|
Name: nodejs-pathwatcher
|
|
|
|
Version: 2.1.3
|
|
|
|
Release: 0
|
|
|
|
License: MIT
|
|
|
|
Summary: Watch files and directories for changes
|
|
|
|
URL: http://atom.github.io/node-pathwatcher
|
|
|
|
Group: Development/Languages/Other
|
|
|
|
Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
|
|
|
BuildRequires: nodejs-devel
|
|
|
|
BuildRequires: nodejs-node-gyp
|
|
|
|
BuildRequires: nodejs-nan
|
2014-12-11 16:28:16 +00:00
|
|
|
BuildRequires: nodejs-packaging
|
2014-09-26 13:52:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
|
|
|
|
|
|
2014-10-09 15:16:47 +00:00
|
|
|
%nodejs_find_provides_and_requires
|
|
|
|
|
2014-09-26 13:52:41 +00:00
|
|
|
%description
|
|
|
|
Node.js pathwatcher module. Watch files and directories for changes.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n package
|
|
|
|
|
|
|
|
%build
|
|
|
|
# nan
|
|
|
|
mkdir node_modules
|
|
|
|
ln -sf %{nodejs_modulesdir}/nan node_modules/nan
|
|
|
|
# build
|
|
|
|
node-gyp configure
|
|
|
|
node-gyp build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
|
|
|
|
sed -i "s/build\/Release\///" lib/main.js
|
|
|
|
cp -pr *.json lib build/Release/pathwatcher.node \
|
|
|
|
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.md LICENSE.md
|
|
|
|
%{nodejs_modulesdir}/%{base_name}
|
|
|
|
|
|
|
|
%changelog
|