55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
%global debug_package %{nil}
|
|
|
|
Name: element-desktop
|
|
Version: @VERSION@
|
|
Release: 1%{?dist}
|
|
Summary: Secure messaging and collaboration desktop client
|
|
License: Apache-2.0 AND BSD-3-Clause AND MIT
|
|
URL: https://element.io/
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: %{name}.desktop
|
|
BuildArch: x86_64
|
|
ExclusiveArch: x86_64
|
|
|
|
%description
|
|
Element Desktop is a Matrix client for secure messaging and collaboration.
|
|
This package repackages the upstream prebuilt Linux x86_64 tarball for RPM-
|
|
based distributions.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
%build
|
|
# Upstream ships prebuilt binaries in the source archive.
|
|
|
|
%install
|
|
install -d %{buildroot}%{_libdir}/%{name}
|
|
cp -a . %{buildroot}%{_libdir}/%{name}/
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{name}/resources/app-update.yml
|
|
printf 'rpm\n' > %{buildroot}%{_libdir}/%{name}/resources/package-type
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
cat > %{buildroot}%{_bindir}/%{name} <<'EOF'
|
|
#!/bin/sh
|
|
exec %{_libdir}/%{name}/element-desktop "$@"
|
|
EOF
|
|
chmod 0755 %{buildroot}%{_bindir}/%{name}
|
|
|
|
install -Dpm 0644 %{SOURCE1} \
|
|
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
install -Dpm 0644 resources/build/icon.png \
|
|
%{buildroot}%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
|
|
|
|
%files
|
|
%license LICENSE.electron.txt
|
|
%doc LICENSES.chromium.html
|
|
%{_bindir}/%{name}
|
|
%{_libdir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
|
|
|
|
%changelog
|
|
* Mon Apr 27 2026 Codex <codex@openai.com> - @VERSION@-1
|
|
- Initial RPM packaging for upstream Element Desktop tarballs
|