# # spec file for package nodejs-source-map0.6 # # Copyright (c) 2020 Stasiek Michalski . # # 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 https://bugs.opensuse.org/ # Name: nodejs-source-map0.6 Version: 0.6.1 Release: 0 License: BSD-3.0-clause Summary: Consume and generate source maps Url: https://github.com/mozilla/source-map Source: https://registry.npmjs.org/source-map/-/source-map-%{version}.tgz BuildRequires: nodejs BuildRequires: nodejs-packaging-fedora BuildArch: noarch %{?nodejs_requires} %description %{summary}. %prep %autosetup -n package %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/source-map/dist cp -pr package.json source-map.js source-map.d.ts lib/ %{buildroot}%{nodejs_sitelib}/source-map/ cp -p dist/source-map.debug.js dist/source-map.js dist/source-map.min.js dist/source-map.min.js.map %{buildroot}%{nodejs_sitelib}/source-map/dist/ %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %files %dir %{nodejs_sitelib} %{nodejs_sitelib}/source-map %changelog