element-web/element-web.spec
Dominik Heidler ec7df627c2 - Version 1.11.76
##  Features
  
  * Message Pinning: rework the message pinning list in the right panel (https://github.com/matrix-org/matrix-react-sdk/pull/12825). Contributed by @florianduros.
  * Tweak UIA postMessage check to work cross-origin (https://github.com/matrix-org/matrix-react-sdk/pull/12878). Contributed by @t3chguy.
  * Delayed events (Futures) / MSC4140 for call widget (https://github.com/matrix-org/matrix-react-sdk/pull/12714). Contributed by @AndrewFerr.
  * Stop the ongoing ring if another device joins the call session. (https://github.com/matrix-org/matrix-react-sdk/pull/12866). Contributed by @toger5.
  * Rich text Editor: Auto-replace plain text emoticons with emoji (https://github.com/matrix-org/matrix-react-sdk/pull/12828). Contributed by @langleyd.
  * Clean up editor drafts for unknown rooms  (https://github.com/matrix-org/matrix-react-sdk/pull/12850). Contributed by @langleyd.
  * Rename general user settings to account (https://github.com/matrix-org/matrix-react-sdk/pull/12841). Contributed by @dbkr.
  * Update settings tab icons (https://github.com/matrix-org/matrix-react-sdk/pull/12867). Contributed by @dbkr.
  * Disable jump to read receipt button instead of hiding when nothing to jump to (https://github.com/matrix-org/matrix-react-sdk/pull/12863). Contributed by @t3chguy.
  
  ## 🐛 Bug Fixes
  
  * Ensure elements on Login page are disabled when in-flight (https://github.com/matrix-org/matrix-react-sdk/pull/12895). Contributed by @t3chguy.
  * Hide pinned messages when grouped in timeline when feature pinning is disabled (https://github.com/matrix-org/matrix-react-sdk/pull/12888). Contributed by @florianduros.
  * Add chat button on new room header for maximised widgets (https://github.com/matrix-org/matrix-react-sdk/pull/12882). Contributed by @t3chguy.
  * Show spinner whilst initial search request is in progress (https://github.com/matrix-org/matrix-react-sdk/pull/12883). Contributed by @t3chguy.
  * Fix user menu font (https://github.com/matrix-org/matrix-react-sdk/pull/12879). Contributed by @florianduros.
  * Allow selecting text in the right panel topic (https://github.com/matrix-org/matrix-react-sdk/pull/12870). Contributed by @t3chguy.
  * Add missing presence indicator to new room header (https://github.com/matrix-org/matrix-react-sdk/pull/12865). Contributed by @t3chguy.
  * Fix permissions in release tarballs (https://github.com/element-hq/element-web/pull/27904). Contributed by @t3chguy.
  
  ## 🧰 Maintenance
  
  * Update dependencies for MSC4157 (https://github.com/element-hq/element-web/pull/27906). Contributed by @AndrewFerr.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=78
2024-08-30 08:41:29 +00:00

90 lines
2.9 KiB
RPMSpec

#
# spec file for package element-web
#
# Copyright (c) 2023 SUSE LLC
#
# 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: element-web
Version: 1.11.76
Release: 0
Summary: A glossy Matrix collaboration client - web files
License: Apache-2.0
Group: Productivity/Networking/Talk/Clients
URL: https://github.com/vector-im/element-web
Source0: https://github.com/vector-im/element-web/archive/v%{version}.tar.gz#/element-web-%{version}.tar.gz
Source1: npm-packages-offline-cache.tar.gz
Source2: jitsi_external_api.min.js
Source3: prepare.sh
Patch0: fix-webpack-oom.patch
BuildRequires: fdupes
BuildRequires: nodejs-packaging
BuildRequires: yarn
BuildRequires: rust
BuildRequires: cargo
BuildArch: noarch
%description
A glossy Matrix collaboration client - web files
%prep
%autosetup -n element-web-%{version} -a1 -p1
%build
echo 'yarn-offline-mirror "./npm-packages-offline-cache"' > .yarnrc
ls -l ./npm-packages-offline-cache | head
# fix some strange dependency
#cp npm-packages-offline-cache/matrix-analytics-events-0.0.1.tgz \
# npm-packages-offline-cache/@matrix-analytics-events-0.0.1.tgz
#ls -l ./npm-packages-offline-cache/*matrix-analytics-events*
#sed -i -e 's| matrix-analytics-events "github:matrix-org/matrix-analytics-events.git#[^"]*"| matrix-analytics-events "^0.0.1"|' yarn.lock
#sed -i -e 's|"matrix-analytics-events@github:matrix-org/matrix-analytics-events#[^"]*"|matrix-analytics-events@^0.0.1|' yarn.lock
export SENTRYCLI_SKIP_DOWNLOAD=1
yarn install --offline --pure-lockfile
mkdir -p webapp
cp %{SOURCE2} ./webapp/jitsi_external_api.min.js
echo > scripts/build-jitsi.ts
DIST_VERSION=%{version} ./scripts/package.sh
pushd dist || exit 1
tar xf element-%{version}.tar.gz
popd
cp LICENSE dist/element-%{version}/LICENSE
%install
install -d -m 0755 %{buildroot}%{_datadir}/webapps/element
cp -av dist/element-%{version}/* "%{buildroot}%{_datadir}/webapps/element/"
install -d -m 0755 %{buildroot}%{_sysconfdir}/webapps/element/
install -m 0644 config.sample.json "%{buildroot}%{_sysconfdir}/webapps/element/config.sample.json"
%fdupes %{buildroot}%{_datadir}/webapps/element/
%files
%license LICENSE
%dir %{_datadir}/webapps
%{_datadir}/webapps/element
%dir %{_sysconfdir}/webapps
%dir %{_sysconfdir}/webapps/element
%config %{_sysconfdir}/webapps/element/config.sample.json
%changelog