Dominik Heidler
bd772c552d
## ✨ Features * Remove experimental PWA support for Firefox and Safari ([\#24630](https://github.com/vector-im/element-web/pull/24630)). * Only allow to start a DM with one email if encryption by default is enabled ([\#10253](https://github.com/matrix-org/matrix-react-sdk/pull/10253)). Fixes vector-im/element-web#23133. * DM rooms are now encrypted if encryption by default is enabled and only inviting a single email address. Any action in the result DM room will be blocked until the other has joined. ([\#10229](https://github.com/matrix-org/matrix-react-sdk/pull/10229)). * Reduce bottom margin of ReplyChain on compact modern layout ([\#8972](https://github.com/matrix-org/matrix-react-sdk/pull/8972)). Fixes vector-im/element-web#22748. Contributed by @luixxiul. * Support for v2 of MSC3903 ([\#10165](https://github.com/matrix-org/matrix-react-sdk/pull/10165)). Contributed by @hughns. * When starting a DM, existing rooms with pending third-party invites will be reused. ([\#10256](https://github.com/matrix-org/matrix-react-sdk/pull/10256)). Fixes vector-im/element-web#23139. * Polls push rules: synchronise poll rules with message rules ([\#10263](https://github.com/matrix-org/matrix-react-sdk/pull/10263)). Contributed by @kerryarchibald. * New verification request toast button labels ([\#10259](https://github.com/matrix-org/matrix-react-sdk/pull/10259)). * Remove padding around integration manager iframe ([\#10148](https://github.com/matrix-org/matrix-react-sdk/pull/10148)). * Fix block code styling in rich text editor ([\#10246](https://github.com/matrix-org/matrix-react-sdk/pull/10246)). Contributed by @alunturner. * Poll history: fetch more poll history ([\#10235](https://github.com/matrix-org/matrix-react-sdk/pull/10235)). Contributed by @kerryarchibald. * Sort short/exact emoji matches before longer incomplete matches ([\#10212](https://github.com/matrix-org/matrix-react-sdk/pull/10212)). Fixes vector-im/element-web#23210. Contributed by @grimhilt. * Poll history: detail screen ([\#10172](https://github.com/matrix-org/matrix-react-sdk/pull/10172)). Contributed by @kerryarchibald. * Provide a more detailed error message than "No known servers" ([\#6048](https://github.com/matrix-org/matrix-react-sdk/pull/6048)). Fixes vector-im/element-web#13247. Contributed by @aaronraimist. * Say when a call was answered from a different device ([\#10224](https://github.com/matrix-org/matrix-react-sdk/pull/10224)). * Widget permissions customizations using module api ([\#10121](https://github.com/matrix-org/matrix-react-sdk/pull/10121)). Contributed by @maheichyk. * Fix copy button icon overlapping with copyable text ([\#10227](https://github.com/matrix-org/matrix-react-sdk/pull/10227)). Contributed by @Adesh-Pandey. * Support joining non-peekable rooms via the module API ([\#10154](https://github.com/matrix-org/matrix-react-sdk/pull/10154)). Contributed by @maheichyk. * The "new login" toast does now display the same device information as in the settings. "No" does now open the device settings. "Yes, it was me" dismisses the toast. ([\#10200](https://github.com/matrix-org/matrix-react-sdk/pull/10200)). * Do not prompt for a password when doing a „reset all“ after login ([\#10208](https://github.com/matrix-org/matrix-react-sdk/pull/10208)). ## 🐛 Bug Fixes * Fix macOS notarisation using keychain credentials ([\#557](https://github.com/vector-im/element-desktop/pull/557)). * Let electron-builder correctly set StartupWMClass ([\#526](https://github.com/vector-im/element-desktop/pull/526)). Fixes vector-im/element-web#13780. * Fix incorrect copy in space creation flow ([\#10296](https://github.com/matrix-org/matrix-react-sdk/pull/10296)). Fixes vector-im/element-web#24741. * Fix space settings dialog having rogue title tooltip ([\#10293](https://github.com/matrix-org/matrix-react-sdk/pull/10293)). Fixes vector-im/element-web#24740. * Show spinner when starting a DM from the user profile (right panel) ([\#10290](https://github.com/matrix-org/matrix-react-sdk/pull/10290)). * Reduce height of toggle on expanded view source event ([\#10283](https://github.com/matrix-org/matrix-react-sdk/pull/10283)). Fixes vector-im/element-web#22873. Contributed by @luixxiul. * Pillify http and non-prefixed matrix.to links ([\#10277](https://github.com/matrix-org/matrix-react-sdk/pull/10277)). Fixes vector-im/element-web#20844. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=30
116 lines
4.5 KiB
RPMSpec
116 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package element-desktop
|
|
#
|
|
# 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-desktop
|
|
Version: 1.11.25
|
|
Release: 0
|
|
Summary: A glossy Matrix collaboration client - desktop
|
|
License: Apache-2.0
|
|
URL: https://github.com/vector-im/element-desktop
|
|
Source0: https://github.com/vector-im/element-desktop/archive/v%{version}.tar.gz#/element-desktop-%{version}.tar.gz
|
|
Source1: https://github.com/vector-im/element-web/archive/v%{version}.tar.gz#/element-web-%{version}.tar.gz
|
|
Source2: npm-packages-offline-cache.tar.gz
|
|
Source3: io.element.Element.desktop
|
|
Source4: element-desktop.sh
|
|
Source5: prepare.sh
|
|
BuildRequires: element-web = %{version}
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: jq
|
|
BuildRequires: moreutils
|
|
BuildRequires: nodejs-electron-devel
|
|
BuildRequires: yarn
|
|
BuildRequires: fdupes
|
|
Requires: element-web = %{version}
|
|
Requires: nodejs-electron
|
|
|
|
#Element contains no native code
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
A glossy Matrix collaboration client - desktop
|
|
|
|
%prep
|
|
%setup -q -a1 -a2
|
|
%autopatch -p1
|
|
SYSTEM_ELECTRON_VERSION=$(<%{_libdir}/electron/version)
|
|
jq -c '.build["electronVersion"]="'$SYSTEM_ELECTRON_VERSION'" | .build["electronDist"]="%{_libdir}/electron"' < package.json | sponge package.json
|
|
jq -c '.build["linux"]["target"]="dir"' < package.json | sponge package.json
|
|
cat package.json
|
|
jq '.piwik=false | .update_base_url=null' < element.io/release/config.json | sponge element.io/release/config.json
|
|
|
|
%build
|
|
echo 'yarn-offline-mirror "./npm-packages-offline-cache"' >> .yarnrc
|
|
echo 'nodedir %{_includedir}/electron' >> .yarnrc
|
|
|
|
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
|
|
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
|
|
|
yarn install --offline --pure-lockfile
|
|
|
|
export PATH="$(pwd)/node_modules/.bin:${PATH}"
|
|
#export ELECTRON_BUILDER_CACHE="$(pwd)/electron-builder-offline-cache/"
|
|
#yarn run build:native
|
|
yarn run build:universal
|
|
|
|
%install
|
|
|
|
# Install the app content, replace the webapp with a symlink to the system package
|
|
install -d -m 0755 "%{buildroot}%{_datadir}/element/"
|
|
cp -av dist/linux-universal-unpacked/resources/* "%{buildroot}%{_datadir}/element/"
|
|
ln -s %{_datadir}/webapps/element "%{buildroot}%{_datadir}/element/webapp"
|
|
|
|
# Config file
|
|
install -m 0755 -d %{buildroot}%{_sysconfdir}/element
|
|
install -m 0644 element.io/release/config.json "%{buildroot}%{_sysconfdir}/element/config.json"
|
|
|
|
install -m 0755 -d %{buildroot}%{_sysconfdir}/webapps/element
|
|
ln -s %{_sysconfdir}/element/config.json "%{buildroot}%{_sysconfdir}/webapps/element/config.json"
|
|
|
|
install -d -m 0755 "%{buildroot}%{_datadir}/webapps/element/"
|
|
ln -s %{_sysconfdir}/element/config.json "%{buildroot}%{_datadir}/webapps/element/config.json" # moved here from element-web to make symlink check happy
|
|
|
|
# Required extras
|
|
install -d -m 0755 "%{buildroot}%{_datadir}/applications/"
|
|
install -m 0644 %{SOURCE3} "%{buildroot}%{_datadir}/applications/io.element.Element.desktop"
|
|
install -d -m 0755 "%{buildroot}%{_bindir}/"
|
|
install -m 0755 %{SOURCE4} "%{buildroot}%{_bindir}/%{name}"
|
|
|
|
# Icons
|
|
install -d -m 0755 "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/"
|
|
install -m 0644 element-web-%{version}/res/themes/element/img/logos/element-logo.svg "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/io.element.Element.svg"
|
|
for i in 16 24 48 64 96 128 256 512; do
|
|
install -d -m 0755 "%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/"
|
|
install -m 0644 build/icons/${i}x${i}.png "%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/io.element.Element.png"
|
|
done
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/element/
|
|
%config(noreplace) %{_sysconfdir}/element/config.json
|
|
%{_sysconfdir}/webapps/element/config.json
|
|
%{_datadir}/webapps/element/config.json
|
|
%{_sysconfdir}/element/
|
|
%{_datadir}/applications/io.element.Element.desktop
|
|
%{_datadir}/icons/hicolor/scalable/apps/io.element.Element.svg
|
|
%{_datadir}/icons/hicolor/*/apps/io.element.Element.png
|
|
|
|
%changelog
|