Files
Raboneko 9b9d1c0d91 bump: anki-bin discord-canary-openasar discord-canary discord-openasar discord-ptb-openasar discord-ptb discord fontviewer komikku nekoray ruffle-nightly elementary-appcenter elementary-camera elementary-capnet-assist elementary-code elementary-files elementary-greeter elementary-icon-theme elementary-notifications elementary-onboarding elementary-photos elementary-screenshot-tool elementary-settings-daemon elementary-shortcut-overlay elementary-sideload elementary-terminal elementary-theme gala granite-7 pantheon-agent-polkit switchboard-plug-about switchboard-plug-applications switchboard-plug-bluetooth switchboard-plug-datetime switchboard-plug-display switchboard-plug-keyboard switchboard-plug-locale switchboard-plug-mouse-touchpad switchboard-plug-networking switchboard-plug-onlineaccounts switchboard-plug-pantheon-shell switchboard-plug-parental-controls switchboard-plug-power switchboard-plug-printers switchboard-plug-security-privacy switchboard-plug-sharing switchboard-plug-sound switchboard-plug-tweaks switchboard-plug-useraccounts switchboard-plug-wacom switchboard wingpanel-applications-menu wingpanel-indicator-power wingpanel-indicator-sound wingpanel xdg-desktop-portal-pantheon lomiri-system-settings lomiri-url-dispatcher bun-bin zed-preview zed maple-fonts heroic-games-launcher inputplumber osu-lazer prismlauncher-qt5 chezmoi golang-github-xyproto-textoutput golang-github-xyproto-vt100 nimble python-pip-system-certs python-pywal16 zig-master-bootstrap libhelium tdlib-nightly sass uutils-coreutils helium-gtk-theme arduino-cli rust-mise electron yt-dlp-git
2025-06-15 14:51:44 +00:00

64 lines
1.8 KiB
RPMSpec

%define debug_package %{nil}
%global _build_id_links none
%ifarch x86_64
%global garch x64
%elifarch aarch64
%global garch arm64
%endif
# Exclude private libraries
%global __requires_exclude libffmpeg.so
%global __provides_exclude_from %{_libdir}/%{name}/.*\\.so
Name: electron
Version: 36.4.0
Release: 1%?dist
Summary: Build cross platform desktop apps with web technologies
License: MIT
URL: https://electronjs.org/
Source0: https://github.com/electron/electron/releases/download/v%{version}/chromedriver-v%{version}-linux-%{garch}.zip
Source1: https://github.com/electron/electron/releases/download/v%{version}/electron-v%{version}-linux-%{garch}.zip
Source2: https://raw.githubusercontent.com/electron/electron/v%version/README.md
Requires: c-ares gtk3 minizip nss re2
BuildRequires: unzip
%description
The Electron framework lets you write cross-platform desktop applications using
JavaScript, HTML and CSS. It is based on Node.js and Chromium and is used by
the Atom editor and many other apps.
%prep
unzip %{SOURCE0}
unzip -o %{SOURCE1}
%build
%install
install -dm755 %buildroot%_libdir/%name/
find . -mindepth 1 -maxdepth 1 -type f ! -name "*.zip" ! -name "LICENSE*" -exec cp -r --no-preserve=ownership --preserve=mode -t %buildroot%_libdir/%name/. {} +
for _folder in 'locales' 'resources'; do
cp -r --no-preserve=ownership --preserve=mode "${_folder}/" %buildroot%_libdir/%name/${_folder}/
done
chmod 0755 %buildroot%_libdir/%name/chrome-sandbox
install -dm755 %buildroot%_bindir
ln -nfs %_libdir/%name/%name %buildroot%_bindir/%name
mkdir -p %buildroot%_docdir/%name/
install -Dm644 %SOURCE2 %buildroot%_docdir/%name/
%files
%doc README.md
%license LICENSE
%license LICENSES.chromium.html
%_libdir/%name
%_bindir/%name
%changelog
* Fri Feb 10 2023 windowsboy111 <windowsboy111@fyralabs.com> - 20.3.12-1
- Initial package