diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-07-30 22:48:40 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-07-30 22:48:40 -0700 |
| commit | e9a506c2e9e27ad1310400adf5cbe9afd29a1065 (patch) | |
| tree | 4e846673cf8dfee269b022b82008fd36e6ab0fa8 /nodejs | |
| parent | bc6051116a2954c155cb99e176c8a243cbe19ee9 (diff) | |
+nodejs/bitwarden-cli.spec
Diffstat (limited to 'nodejs')
| -rw-r--r-- | nodejs/bitwarden-cli.spec | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/nodejs/bitwarden-cli.spec b/nodejs/bitwarden-cli.spec new file mode 100644 index 0000000..e6c4a97 --- /dev/null +++ b/nodejs/bitwarden-cli.spec @@ -0,0 +1,66 @@ +%global npm_name @bitwarden/cli + +%{?nodejs_default_filter} +%{?nodejs_find_provides_and_requires} + +Name: bitwarden-cli +Version: 1.11.0 +Release: 1%{?dist} +Summary: Bitwarden vault CLI tool + +License: GPLv3 +URL: https://github.com/bitwarden/cli +Source0: https://registry.npmjs.org/%{npm_name}/-/cli-%{version}.tgz#/%{name}-%{version}.tgz +# rename from @bitwarden/cli to bitwarden-cli +Patch0: %{name}-1.11.0-fixname.diff + +# BuildRequires: nodejs +BuildRequires: nodejs-packaging + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +%description +The Bitwarden CLI is a powerful, full-featured command-line interface (CLI) tool +to access and manage a Bitwarden vault. The CLI is written with TypeScript and +Node.js + + +%prep +%autosetup -p1 -n package + + +%build +#nothing to do + + +%install +# not using npm_name as it contains a / which confuses the packaging scripts +mkdir -p %{buildroot}%{nodejs_sitelib}/%{name} +cp -pr build package.json %{buildroot}%{nodejs_sitelib}/%{name} +BIN=%{nodejs_sitelib}/%{name}/build/bw.js +chmod +x %{buildroot}${BIN} +pushd %{buildroot} +mkdir -p ./%{_bindir} +ln -s ${BIN} ./%{_bindir}/bw +popd + +%nodejs_symlink_deps + + +%check +#pushd build +#{__nodejs} -e 'require("./")' +#popd + + +%files +%license LICENSE.txt +%doc README.md +%{_bindir}/bw +%{nodejs_sitelib}/%{name} + + +%changelog +* Wed Jul 29 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.11.0-1 +- Initial package |
