File runas.spec of Package runas

#
# spec file for package runas
#
# Copyright (c) 2016 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/
#


Name:           runas
Version:        3.1.1
Release:        0
Summary:        Run command synchronously with administrator privilege
License:        MIT
Group:          Development/Languages/NodeJS
Url:            https://github.com/atom/node-runas
Source0:        %{name}.json
# DO NOT CHANGE MANUALLY START
# pasted from %{name}.source generated by nova
Source1:	http://registry.npmjs.org/nan/-/nan-2.2.0.tgz
Source2:	http://registry.npmjs.org/runas/-/runas-3.1.1.tgz
# DO NOT CHANGE MANUALLY END
BuildRequires:	fdupes
BuildRequires:  nodejs-packaging
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{nodejs_find_provides_and_requires}

%description
Run command synchronously with administrator privilege

%prep
%nodejs_prep

%build

%install
%nodejs_mkdir
%nodejs_copy
%nodejs_build
%nodejs_clean
# strip needless requires
rm -rf %{buildroot}%{nodejs_sitelib}/runas/node_modules/nan/tools
%nodejs_filelist
%fdupes %{buildroot}

%files -f %{_sourcedir}/files.lst
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by