forked from pool/element-desktop
Dominik Heidler
11290c5877
## ✨ Features * Allow desktop app to expose recent rooms in UI integrations ([\#16940](https://github.com/vector-im/element-web/pull/16940)). * Add API params to mute audio and/or video in Jitsi calls by default ([\#24820](https://github.com/vector-im/element-web/pull/24820)). Contributed by @dhenneke. * Style mentions as pills in rich text editor ([\#10448](https://github.com/matrix-org/matrix-react-sdk/pull/10448)). Contributed by @alunturner. * Show room create icon if "UIComponent.roomCreation" is enabled ([\#10364](https://github.com/matrix-org/matrix-react-sdk/pull/10364)). Contributed by @maheichyk. * Mentions as links rte ([\#10463](https://github.com/matrix-org/matrix-react-sdk/pull/10463)). Contributed by @alunturner. * Better error handling in jump to date ([\#10405](https://github.com/matrix-org/matrix-react-sdk/pull/10405)). Contributed by @MadLittleMods. * Show "Invite" menu option if "UIComponent.sendInvites" is enabled. ([\#10363](https://github.com/matrix-org/matrix-react-sdk/pull/10363)). Contributed by @maheichyk. * Added `UserProfilesStore`, `LruCache` and user permalink profile caching ([\#10425](https://github.com/matrix-org/matrix-react-sdk/pull/10425)). Fixes #10559. * Mentions as links rte ([\#10422](https://github.com/matrix-org/matrix-react-sdk/pull/10422)). Contributed by @alunturner. * Implement MSC3952: intentional mentions ([\#9983](https://github.com/matrix-org/matrix-react-sdk/pull/9983)). * Implement MSC3973: Search users in the user directory with the Widget API ([\#10269](https://github.com/matrix-org/matrix-react-sdk/pull/10269)). Contributed by @dhenneke. * Permalinks to message are now displayed as pills ([\#10392](https://github.com/matrix-org/matrix-react-sdk/pull/10392)). Fixes #24751 and #24706. * Show search,dial,explore in filterContainer if "UIComponent.filterContainer" is enabled ([\#10381](https://github.com/matrix-org/matrix-react-sdk/pull/10381)). Contributed by @maheichyk. * Increase space panel collapse clickable area ([\#6084](https://github.com/matrix-org/matrix-react-sdk/pull/6084)). Fixes #17379. Contributed by @jaiwanth-v. * Add fallback for replies to Polls ([\#10380](https://github.com/matrix-org/matrix-react-sdk/pull/10380)). Fixes #24197. Contributed by @kerryarchibald. * Permalinks to rooms and users are now pillified ([\#10388](https://github.com/matrix-org/matrix-react-sdk/pull/10388)). Fixes #24825. * Poll history - access poll history from room settings ([\#10356](https://github.com/matrix-org/matrix-react-sdk/pull/10356)). Contributed by @kerryarchibald. * Add API params to mute audio and/or video in Jitsi calls by default ([\#10376](https://github.com/matrix-org/matrix-react-sdk/pull/10376)). Contributed by @dhenneke. * Notifications: inline error message on notifications saving error ([\#10288](https://github.com/matrix-org/matrix-react-sdk/pull/10288)). Contributed by @kerryarchibald. * Support dynamic room predecessor in SpaceProvider ([\#10348](https://github.com/matrix-org/matrix-react-sdk/pull/10348)). Contributed by @andybalaam. * Support dynamic room predecessors for RoomProvider ([\#10346](https://github.com/matrix-org/matrix-react-sdk/pull/10346)). Contributed by @andybalaam. * Support dynamic room predecessors in OwnBeaconStore ([\#10339](https://github.com/matrix-org/matrix-react-sdk/pull/10339)). Contributed by @andybalaam. * Support dynamic room predecessors in ForwardDialog ([\#10344](https://github.com/matrix-org/matrix-react-sdk/pull/10344)). Contributed by @andybalaam. * Support dynamic room predecessors in SpaceHierarchy ([\#10341](https://github.com/matrix-org/matrix-react-sdk/pull/10341)). Contributed by @andybalaam. * Support dynamic room predecessors in AddExistingToSpaceDialog ([\#10342](https://github.com/matrix-org/matrix-react-sdk/pull/10342)). Contributed by @andybalaam. * Support dynamic room predecessors in leave-behaviour ([\#10340](https://github.com/matrix-org/matrix-react-sdk/pull/10340)). Contributed by @andybalaam. * Support dynamic room predecessors in StopGapWidgetDriver ([\#10338](https://github.com/matrix-org/matrix-react-sdk/pull/10338)). Contributed by @andybalaam. * Support dynamic room predecessors in WidgetLayoutStore ([\#10326](https://github.com/matrix-org/matrix-react-sdk/pull/10326)). Contributed by @andybalaam. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=32
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.29
|
|
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
|