element-web/element-web.spec
Dominik Heidler 6969ed2b8a - Version 1.11.71
##  Features
  * Add Modernizr rule for Intl.Segmenter (https://github.com/element-hq/element-web/pull/27677). Contributed by @t3chguy.
  * Add tabs to the right panel (https://github.com/matrix-org/matrix-react-sdk/pull/12672). Contributed by @MidhunSureshR.
  * Promote new room header from labs to Beta (https://github.com/matrix-org/matrix-react-sdk/pull/12739). Contributed by @t3chguy.
  * Redesign room search interface (https://github.com/matrix-org/matrix-react-sdk/pull/12677). Contributed by @t3chguy.
  * Move language settings to 'preferences' (https://github.com/matrix-org/matrix-react-sdk/pull/12723). Contributed by @dbkr.
  * New layout selector ui in user settings (https://github.com/matrix-org/matrix-react-sdk/pull/12676). Contributed by @florianduros.
  * Prevent Element appearing in system media controls  (https://github.com/matrix-org/matrix-react-sdk/pull/10995). Contributed by @SuperKenVery.
  * Move the account management button (https://github.com/matrix-org/matrix-react-sdk/pull/12663). Contributed by @dbkr.
  * Disable profile controls if the HS doesn't allow them to be set (https://github.com/matrix-org/matrix-react-sdk/pull/12652). Contributed by @dbkr.
  * New theme ui in user settings (https://github.com/matrix-org/matrix-react-sdk/pull/12576). Contributed by @florianduros.
  * Adjust room header hover transition from 300ms to 200ms (https://github.com/matrix-org/matrix-react-sdk/pull/12703). Contributed by @t3chguy.
  * Split out email \& phone number settings to separate components \& move discovery to privacy tab (https://github.com/matrix-org/matrix-react-sdk/pull/12670). Contributed by @dbkr.
  ## 🐛 Bug Fixes
  * Ensure we do not load matrix-react-sdk is a manner which can white-screen (https://github.com/element-hq/element-web/pull/27685). Contributed by @t3chguy.
  * Fix incoming call toast crash due to audio refactor (https://github.com/matrix-org/matrix-react-sdk/pull/12737). Contributed by @t3chguy.
  * Improve new room header accessibility (https://github.com/matrix-org/matrix-react-sdk/pull/12725). Contributed by @t3chguy.
  * Fix closing all modals (https://github.com/matrix-org/matrix-react-sdk/pull/12728). Contributed by @dbkr.
  * Fix close button on forgot password flow (https://github.com/matrix-org/matrix-react-sdk/pull/12732). Contributed by @dbkr.
  * Don't consider textual characters to be emoji (https://github.com/matrix-org/matrix-react-sdk/pull/12582). Contributed by @robintown.
  * Clear autocomplete input on selection accept (https://github.com/matrix-org/matrix-react-sdk/pull/12709). Contributed by @dbkr.
  * Fix `Match system theme` toggle (https://github.com/matrix-org/matrix-react-sdk/pull/12719). Contributed by @florianduros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=74
2024-07-17 14:39:56 +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.71
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