element-web/element-web.spec
Dominik Heidler c73fe0207d - Version 1.11.65
##  Features
  * Make empty state copy for TAC depend on the value of the setting (https://github.com/matrix-org/matrix-react-sdk/pull/12419). Contributed by @dbkr.
  * Linkify User Interactive Authentication errors (https://github.com/matrix-org/matrix-react-sdk/pull/12271). Contributed by @t3chguy.
  * Add support for device dehydration v2 (https://github.com/matrix-org/matrix-react-sdk/pull/12316). Contributed by @uhoreg.
  * Replace `SecurityCustomisations` with `CryptoSetupExtension` (https://github.com/matrix-org/matrix-react-sdk/pull/12342). Contributed by @thoraj.
  * Add activity toggle for TAC (https://github.com/matrix-org/matrix-react-sdk/pull/12413). Contributed by @dbkr.
  * Humanize spell check language labels (https://github.com/matrix-org/matrix-react-sdk/pull/12409). Contributed by @t3chguy.
  * Call Guest Access, give user the option to change the acces level so they can generate a call link. (https://github.com/matrix-org/matrix-react-sdk/pull/12401). Contributed by @toger5.
  * TAC: Release Announcement (https://github.com/matrix-org/matrix-react-sdk/pull/12380). Contributed by @florianduros.
  * Show the call and share button if the user can create a guest link. (https://github.com/matrix-org/matrix-react-sdk/pull/12385). Contributed by @toger5.
  * Add analytics for mark all threads unread (https://github.com/matrix-org/matrix-react-sdk/pull/12384). Contributed by @dbkr.
  * Add `EventType.RoomEncryption` to the auto approve capabilities of Element Call widgets (https://github.com/matrix-org/matrix-react-sdk/pull/12386). Contributed by @toger5.
  ## 🐛 Bug Fixes
  * Fix link modal not shown after access upgrade (https://github.com/matrix-org/matrix-react-sdk/pull/12411). Contributed by @toger5.
  * Fix thread navigation in timeline (https://github.com/matrix-org/matrix-react-sdk/pull/12412). Contributed by @florianduros.
  * Fix inability to join a `knock` room via space hierarchy view (https://github.com/matrix-org/matrix-react-sdk/pull/12404). Contributed by @t3chguy.
  * Focus the thread panel when clicking on an item in the TAC (https://github.com/matrix-org/matrix-react-sdk/pull/12410). Contributed by @dbkr.
  * Fix space hierarchy tile busy state being stuck after join error (https://github.com/matrix-org/matrix-react-sdk/pull/12405). Contributed by @t3chguy.
  * Fix room topic in-app links not being handled correctly on topic dialog (https://github.com/matrix-org/matrix-react-sdk/pull/12406). Contributed by @t3chguy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=69
2024-04-23 13:53:42 +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.65
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