Files
element-web/element-web.spec
Dominik Heidler 441e9250c6 - Version 1.11.82
##  Features
  * Deduplicate more icons using Compound Design Tokens (https://github.com/element-hq/matrix-react-sdk/pull/132). Contributed by @t3chguy.
  * Always show link new device flow even if unsupported (https://github.com/element-hq/matrix-react-sdk/pull/147). Contributed by @t3chguy.
  * Update design of files list in right panel (https://github.com/element-hq/matrix-react-sdk/pull/144). Contributed by @t3chguy.
  * Remove feature\_dehydration (https://github.com/element-hq/matrix-react-sdk/pull/138). Contributed by @florianduros.
  * Upgrade emojibase-bindings and remove local handling of emoticon variations (https://github.com/element-hq/matrix-react-sdk/pull/127). Contributed by @langleyd.
  * Add support for rendering media captions (https://github.com/element-hq/matrix-react-sdk/pull/43). Contributed by @tulir.
  * Replace composer icons with Compound variants (https://github.com/element-hq/matrix-react-sdk/pull/123). Contributed by @t3chguy.
  * Tweak default right panel size to be 320px except for maximised widgets at 420px (https://github.com/element-hq/matrix-react-sdk/pull/110). Contributed by @t3chguy.
  * Add a pinned message badge under a pinned message (https://github.com/element-hq/matrix-react-sdk/pull/118). Contributed by @florianduros.
  * Ditch right panel tabs and re-add close button (https://github.com/element-hq/matrix-react-sdk/pull/99). Contributed by @t3chguy.
  * Force verification even for refreshed clients (https://github.com/element-hq/matrix-react-sdk/pull/44). Contributed by @dbkr.
  * Update emoji text, border and background colour in timeline (https://github.com/element-hq/matrix-react-sdk/pull/119). Contributed by @florianduros.
  * Disable ICE fallback based on well-known configuration (https://github.com/element-hq/matrix-react-sdk/pull/111). Contributed by @t3chguy.
  * Remove legacy room header and promote beta room header (https://github.com/element-hq/matrix-react-sdk/pull/105). Contributed by @t3chguy.
  * Respect `io.element.jitsi` `useFor1To1Calls` in well-known (https://github.com/element-hq/matrix-react-sdk/pull/112). Contributed by @t3chguy.
  * Use Compound close icon in favour of mishmash of x/close icons (https://github.com/element-hq/matrix-react-sdk/pull/108). Contributed by @t3chguy.
  ## 🐛 Bug Fixes
  * Correct typo in option documentation (https://github.com/element-hq/element-web/pull/28148). Contributed by @AndrewKvalheim.
  * Revert #124 and #135 (https://github.com/element-hq/matrix-react-sdk/pull/139). Contributed by @dbkr.
  * Add aria-label to e2e icon (https://github.com/element-hq/matrix-react-sdk/pull/136). Contributed by @florianduros.
  * Fix bell icons on room list hover being black squares (https://github.com/element-hq/matrix-react-sdk/pull/135). Contributed by @dbkr.
  * Fix vertical overflow on the mobile register screen (https://github.com/element-hq/matrix-react-sdk/pull/137). Contributed by @langleyd.
  * Allow to unpin redacted event (https://github.com/element-hq/matrix-react-sdk/pull/98). Contributed by @florianduros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=85
2024-10-22 13:58:13 +00:00

90 lines
3.0 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.82
Release: 0
Summary: A glossy Matrix collaboration client - web files
License: AGPL-3.0-only or GPL-3.0-only
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 -v LICENSE* dist/element-%{version}/
%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-AGPL-3.0 LICENSE-GPL-3.0
%dir %{_datadir}/webapps
%{_datadir}/webapps/element
%dir %{_sysconfdir}/webapps
%dir %{_sysconfdir}/webapps/element
%config %{_sysconfdir}/webapps/element/config.sample.json
%changelog