summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2021-01-19 18:17:05 -0800
committerMichel Alexandre Salim <salimma@fedoraproject.org>2021-01-19 18:17:05 -0800
commit55186260f2238f62a9fe60785c1fb01060978618 (patch)
tree8f15c187f831158e2cde9a7ee70f5b7259b4ca9b
parent013a041379ce4cd5bd3f15ec18f4ffe336630a65 (diff)
downloadspecs-55186260f2238f62a9fe60785c1fb01060978618.tar.gz
specs-55186260f2238f62a9fe60785c1fb01060978618.tar.xz
specs-55186260f2238f62a9fe60785c1fb01060978618.zip
update bitwarden-cli spec
- add licenses - rename source files based on feedback from https://src.fedoraproject.org/rpms/nodejs-packaging/pull-request/4 - drop dev source, no meaningful tests Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--nodejs/bitwarden-cli.spec29
1 files changed, 7 insertions, 22 deletions
diff --git a/nodejs/bitwarden-cli.spec b/nodejs/bitwarden-cli.spec
index 7d63c6d..f23b454 100644
--- a/nodejs/bitwarden-cli.spec
+++ b/nodejs/bitwarden-cli.spec
@@ -1,5 +1,4 @@
%global npm_name @bitwarden/cli
-%bcond_with tests
%{?nodejs_default_filter}
#{?nodejs_find_provides_and_requires}
@@ -9,12 +8,12 @@ Version: 1.13.3
Release: 1%{?dist}
Summary: Bitwarden vault CLI tool
-License: GPLv3
+# json-schema is (AFLv2.1 or BSD)
+License: GPLv3 and 0BSD and (AFL or BSD) and ASL 2.0 and BSD and (BSD or GPLv3) and ISC and MIT and Unlicense
URL: https://github.com/bitwarden/cli
Source0: https://registry.npmjs.org/%{npm_name}/-/cli-%{version}.tgz#/%{name}-%{version}.tgz
-Source1: %{name}-%{version}-nm-prod.tgz
-Source2: %{name}-%{version}-nm-dev.tgz
-Source3: %{name}-%{version}-bundled-licenses.txt
+Source1: @%{name}-%{version}-nm-prod.tgz
+Source3: @%{name}-%{version}-bundled-licenses.txt
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
@@ -61,28 +60,14 @@ node %{nodejs_sitelib}/%{npm_name}/build/bw.js \$@
EOF
-%if %{with tests}
-%check
-%nodejs_symlink_deps --check
-# Setup bundled dev node_modules for testing
-tar xfz %{SOURCE2}
-pushd node_modules
-ln -s ../node_modules_dev/* .
-popd
-pushd node_modules/.bin
-ln -s ../../node_modules_dev/.bin/* .
-popd
-%endif
-
-
%files
-%license LICENSE.txt %{name}-%{version}-bundled-licenses.txt
+%license LICENSE.txt @%{name}-%{version}-bundled-licenses.txt
%doc README.md
%attr(0755,root,root) %{_bindir}/bw
-%dir %{nodejs_sitelib}/@bitwarden
+# dir #{nodejs_sitelib}/@bitwarden
%{nodejs_sitelib}/%{npm_name}
%changelog
-* Sun Jan 17 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.13.3-1
+* Tue Jan 19 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.13.3-1
- Initial package