2017-11-24 10:29:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package nodejs-underscore
|
|
|
|
#
|
2022-12-24 08:42:27 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-11-24 10:29:46 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-04-15 13:59:43 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-11-24 10:29:46 +00:00
|
|
|
#
|
|
|
|
|
2021-04-15 13:59:43 +00:00
|
|
|
|
2017-11-24 10:29:46 +00:00
|
|
|
%define _name underscore
|
2018-01-23 13:35:32 +00:00
|
|
|
%if 0%{?suse_version} == 1315
|
2017-11-24 10:29:46 +00:00
|
|
|
%define nodejs_modulesdir /usr/lib/node_modules
|
|
|
|
%endif
|
|
|
|
|
2022-12-24 08:42:27 +00:00
|
|
|
Name: nodejs-underscore
|
|
|
|
Version: 1.13.6
|
2017-11-24 10:29:46 +00:00
|
|
|
Release: 0
|
2017-12-10 23:14:36 +00:00
|
|
|
Summary: A utility belt library for JavaScript
|
2017-11-24 10:29:46 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/NodeJS
|
|
|
|
URL: https://github.com/jashkenas/underscore
|
|
|
|
Source0: https://github.com/jashkenas/underscore/archive/%{version}/%{_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2018-01-23 13:35:32 +00:00
|
|
|
%if 0%{?suse_version} < 1315 || 0%{?suse_version} > 1315
|
2017-11-24 10:29:46 +00:00
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
%endif
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{?nodejs_requires}
|
|
|
|
|
|
|
|
%description
|
2021-04-15 13:59:43 +00:00
|
|
|
Underscore.js is a utility belt library for JavaScript that provides support
|
|
|
|
for the usual functional suspects (each, map, reduce, filter...) without
|
2017-11-24 10:29:46 +00:00
|
|
|
extending any core JavaScript objects.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{_name}
|
|
|
|
cp -R * %{buildroot}%{nodejs_modulesdir}/%{_name}
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{nodejs_modulesdir}/underscore/test/.eslintrc
|
|
|
|
|
|
|
|
%fdupes %{buildroot}/%{nodejs_modulesdir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2021-04-15 14:10:07 +00:00
|
|
|
%doc CONTRIBUTING.md README.md
|
|
|
|
%license LICENSE
|
2017-11-24 10:29:46 +00:00
|
|
|
%dir %{nodejs_modulesdir}
|
|
|
|
%{nodejs_modulesdir}/%{_name}
|
|
|
|
|
|
|
|
%changelog
|