SHA256
1
0
forked from pool/bitwarden

Accepting request 1175640 from home:dziobian:gulgul-ultron:19

- New upstream release 2024.5.0
  * no changelog provided
- Use new %electron_rebuild and %electron_check_native macros in specfile

OBS-URL: https://build.opensuse.org/request/show/1175640
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/bitwarden?expand=0&rev=54
This commit is contained in:
Bruno Pitrus 2024-05-21 22:00:48 +00:00 committed by Git OBS Bridge
parent ec0f56810a
commit 58ff3794d2
9 changed files with 32 additions and 75 deletions

View File

@ -2,8 +2,8 @@
<service name="obs_scm" mode="manual"> <service name="obs_scm" mode="manual">
<param name="scm">git</param> <param name="scm">git</param>
<param name="url">https://github.com/bitwarden/clients.git</param> <param name="url">https://github.com/bitwarden/clients.git</param>
<param name="revision">desktop-v2024.4.3</param> <param name="revision">desktop-v2024.5.0</param>
<param name="version">2024.4.3</param> <param name="version">2024.5.0</param>
<param name="filename">bitwarden</param> <param name="filename">bitwarden</param>
<param name="exclude">bitwarden_license/*</param> <param name="exclude">bitwarden_license/*</param>
<!-- The code in bitwarden_license MUST NOT be included in published tarballs as it is non-redistributable! --> <!-- The code in bitwarden_license MUST NOT be included in published tarballs as it is non-redistributable! -->

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d220947941c7be2c627c4aa51e7869475a811dbe6545550c45b967243816f05
size 36523021

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13d896e1b850054f37d8e455a9764e5feb0a0fc3a8d2eaeb7cc1cea1ba9a48be
size 36655629

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 21 21:38:33 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 2024.5.0
* no changelog provided
- Use new %electron_rebuild and %electron_check_native macros in specfile
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 6 18:31:43 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com> Mon May 6 18:31:43 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>

View File

@ -1,4 +1,4 @@
name: bitwarden name: bitwarden
version: 2024.4.3 version: 2024.5.0
mtime: 1715000695 mtime: 1716237070
commit: edbbfe751c7f94ce01a2865e05cb2a9c3b89d56c commit: a22d83fd57beae492dfbdfa7e29223309d2dcc16

View File

@ -18,7 +18,7 @@
# #
Name: bitwarden Name: bitwarden
Version: 2024.4.3 Version: 2024.5.0
Release: 0 Release: 0
Summary: A secure and free password manager for all of your devices Summary: A secure and free password manager for all of your devices
Group: Productivity/Security Group: Productivity/Security
@ -136,9 +136,6 @@ mv -v libs/angular/src/scss/bwicons/fonts/bwi-font.woff %{_builddir}
rm -rvf libs/angular/src/scss/bwicons/fonts rm -rvf libs/angular/src/scss/bwicons/fonts
mkdir %{_builddir}/cargo
#Rust config #Rust config
cd apps/desktop/desktop_native cd apps/desktop/desktop_native
tar --zstd -xf %SOURCE4 tar --zstd -xf %SOURCE4
@ -151,46 +148,8 @@ jq -cj '.files={}' .cargo-checksum.json >tmp && mv tmp .cargo-checksum.json && p
done done
# Make `node` and `npm` binaries refer to Electron
%if 0%{?suse_version}
NODEJS_DEFAULT_VER=$(echo %nodejs_version|sed 's/\..*//')
%else
NODEJS_DEFAULT_VER=
%endif
# Electron has a little known feature that make it work like a nodejs binary.
# We make use of it since the system node may be too bleeding-edge
# and to avoid building the same modules twice.
# Not all scripts work when run under electron,
# but importantly npm/yarn and GYP do.
mkdir %{_builddir}/path
cp -v /dev/stdin %{_builddir}/path/node << EOF
#!/bin/sh
ELECTRON_RUN_AS_NODE=1 exec %{_libdir}/electron/electron "\$@"
EOF
# HACK: This will refer to /usr/bin/npm17 on openSUSE, /usr/bin/npm on Fedora which are Node scripts
cp -v /dev/stdin %{_builddir}/path/npm << EOF
#!/bin/sh
exec node %{_bindir}/npm${NODEJS_DEFAULT_VER} "\$@"
EOF
cp -v /dev/stdin %{_builddir}/path/npx << EOF
#!/bin/sh
exec node %{_bindir}/npx${NODEJS_DEFAULT_VER} "\$@"
EOF
chmod +x %{_builddir}/path/*
%build %build
export PATH="%{_builddir}/cargo:$PATH"
%ifarch %ix86 %ifarch %ix86
export RUSTC_BOOTSTRAP=1 export RUSTC_BOOTSTRAP=1
%endif %endif
@ -216,7 +175,7 @@ auditable='auditable -vv'
PATH="%{_builddir}/path:$PATH" npm rebuild --verbose --foreground-scripts --nodedir=%{_includedir}/electron %electron_rebuild
cd apps/desktop cd apps/desktop
pushd desktop_native pushd desktop_native
@ -300,16 +259,7 @@ find . -type d -empty -print -delete
%endif %endif
%check %check
# Sanity check that we don't have unresolved symbols, and only call napi_* functions (which are ABI stable, unlike node_* ones) %electron_check_native
pushd %{buildroot}%{_libdir}/%{name}
find . -name '*.node' -print0 | xargs -0 -t -IXXX sh -c '! ldd -d -r XXX | \
grep '\''^undefined symbol'\'' | \
grep -v '\''^undefined symbol: napi_'\'' '
# Check that all native modules are loadable.
find . -name '*.node' -print0 | xargs -0 -t -IXXX env ELECTRON_RUN_AS_NODE=1 %{_libdir}/electron/electron -e 'require("XXX")'
popd
%files %files

View File

@ -3,7 +3,7 @@
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
"target": "ES2016", "target": "ES2016",
"module": "ES2020", "module": "ES2020",
"lib": ["es5", "es6", "es7", "dom"], "lib": ["es5", "es6", "es7", "dom", "ES2021"],
- "sourceMap": true, - "sourceMap": true,
+ "sourceMap": false, + "sourceMap": false,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:18ffde20107c8f026c322d5626b55ec13f7c45da668a46e2271335fe283c37d4 oid sha256:b33a6719b27a8d03bc6a78e7fbfec25fa247e3743395e43d3dadb436b022fe9b
size 35026643 size 35002226

View File

@ -60,17 +60,17 @@
"@types/node": "18.19.29", "@types/node": "18.19.29",
- "@types/node-fetch": "2.6.4", - "@types/node-fetch": "2.6.4",
"@types/node-forge": "1.3.11", "@types/node-forge": "1.3.11",
"@types/node-ipc": "9.2.0", "@types/node-ipc": "9.2.3",
"@types/papaparse": "5.3.14", "@types/papaparse": "5.3.14",
- "@types/proper-lockfile": "4.1.4", - "@types/proper-lockfile": "4.1.4",
- "@types/react": "16.14.57", - "@types/react": "16.14.60",
- "@types/retry": "0.12.5", - "@types/retry": "0.12.5",
+ "@types/semver": "^7.3.4", + "@types/semver": "^7.3.4",
"@types/zxcvbn": "4.4.4", "@types/zxcvbn": "4.4.4",
- "@typescript-eslint/eslint-plugin": "7.4.0", - "@typescript-eslint/eslint-plugin": "7.7.1",
- "@typescript-eslint/parser": "7.4.0", - "@typescript-eslint/parser": "7.7.1",
- "@webcomponents/custom-elements": "1.6.0", - "@webcomponents/custom-elements": "1.6.0",
"autoprefixer": "10.4.18", "autoprefixer": "10.4.19",
- "base64-loader": "1.0.0", - "base64-loader": "1.0.0",
- "chromatic": "10.9.6", - "chromatic": "10.9.6",
"concurrently": "8.2.2", "concurrently": "8.2.2",
@ -102,7 +102,7 @@
"html-webpack-plugin": "5.6.0", "html-webpack-plugin": "5.6.0",
- "husky": "9.0.11", - "husky": "9.0.11",
- "jest-junit": "16.0.0", - "jest-junit": "16.0.0",
"jest-mock-extended": "3.0.5", "jest-mock-extended": "3.0.6",
- "jest-preset-angular": "14.0.3", - "jest-preset-angular": "14.0.3",
- "lint-staged": "15.2.2", - "lint-staged": "15.2.2",
"mini-css-extract-plugin": "2.8.1", "mini-css-extract-plugin": "2.8.1",
@ -112,10 +112,10 @@
"postcss": "8.4.38", "postcss": "8.4.38",
"postcss-loader": "8.1.1", "postcss-loader": "8.1.1",
- "prettier": "3.2.2", - "prettier": "3.2.2",
- "prettier-plugin-tailwindcss": "0.5.13", - "prettier-plugin-tailwindcss": "0.5.14",
- "process": "0.11.10", - "process": "0.11.10",
- "react": "18.2.0", - "react": "18.3.1",
- "react-dom": "18.2.0", - "react-dom": "18.3.1",
"regedit": "^3.0.3", "regedit": "^3.0.3",
- "remark-gfm": "3.0.1", - "remark-gfm": "3.0.1",
"rimraf": "5.0.5", "rimraf": "5.0.5",
@ -123,7 +123,7 @@
"sass-loader": "13.3.3", "sass-loader": "13.3.3",
- "storybook": "7.6.17", - "storybook": "7.6.17",
- "style-loader": "3.3.4", - "style-loader": "3.3.4",
- "tailwindcss": "3.4.1", - "tailwindcss": "3.4.3",
- "ts-jest": "29.1.2", - "ts-jest": "29.1.2",
"ts-loader": "9.5.1", "ts-loader": "9.5.1",
"tsconfig-paths-webpack-plugin": "4.1.0", "tsconfig-paths-webpack-plugin": "4.1.0",
@ -187,7 +187,7 @@
- "qrious": "4.0.2", - "qrious": "4.0.2",
"rxjs": "7.8.1", "rxjs": "7.8.1",
- "tabbable": "6.2.0", - "tabbable": "6.2.0",
"tldts": "6.1.16", "tldts": "6.1.18",
"utf-8-validate": "6.0.3", "utf-8-validate": "6.0.3",
"zone.js": "0.13.3", "zone.js": "0.13.3",
"zxcvbn": "4.4.2" "zxcvbn": "4.4.2"