%bcond_without check # Resources uses vendored Rust crates for reproducible, network-free builds. # Regenerate Source1 whenever Cargo.lock changes. %global app_id org.gnome.Resources Name: resources Version: 51.0 Release: 1%{?dist} Summary: Monitor system resources and processes # This covers upstream code. Review LICENSE.dependencies and amend the # effective SPDX License expression if vendored code requires other licenses. License: GPL-3.0-or-later URL: https://gitlab.gnome.org/GNOME/Incubator/resources Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.zst # Fedora i686 leaf-removal policy. ExcludeArch: %{ix86} BuildRequires: appstream BuildRequires: cargo-rpm-macros BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: git-core BuildRequires: itstool BuildRequires: meson BuildRequires: pkgconfig(glib-2.0) >= 2.66 BuildRequires: pkgconfig(gio-2.0) >= 2.66 BuildRequires: pkgconfig(gtk4) >= 4.12 BuildRequires: pkgconfig(libadwaita-1) >= 1.8 BuildRequires: pkgconfig(libsoup-3.0) BuildRequires: rust >= 1.85 Requires: dmidecode Requires: hicolor-icon-theme Requires: polkit %description Resources is a system monitor written in Rust, GTK 4, and libadwaita. It displays CPU, memory, GPU, network, storage, and battery utilization. It also lets users inspect and manage running applications and processes. %prep %autosetup -n %{name}-%{version} -p1 -a1 %cargo_prep -v vendor # Upstream Meson overrides CARGO_HOME with a private build directory. # Use the Cargo home prepared by Fedora's %%cargo_prep instead, so the # vendored registry configuration is picked up by Meson's Cargo commands. grep -Fq "cargo_env.append('CARGO_HOME'," src/meson.build sed -i "/cargo_env.append('CARGO_HOME',/d" src/meson.build # Preserve debuginfo for Fedora's automatic RPM debug subpackages. sed -i 's/^strip = true$/strip = false/' Cargo.toml %build # Cargo is invoked by Meson, not directly by RPM's Cargo build macros. # Make its configuration and compiler flags available to custom targets. export CARGO_HOME="${PWD}/.cargo" export CARGO_NET_OFFLINE=true export RUSTFLAGS="%{build_rustflags}" %meson -Dprofile=release %meson_build # Record bundled Rust crates and their licenses for RPM metadata. %cargo_license_summary %{cargo_license} > LICENSE.dependencies %cargo_vendor_manifest %install %meson_install %find_lang %{name} --with-gnome %check export CARGO_HOME="${PWD}/.cargo" export CARGO_NET_OFFLINE=true export RUSTFLAGS="%{build_rustflags}" %if %{with check} %meson_test %endif appstreamcli validate --no-net \ %{buildroot}%{_metainfodir}/%{app_id}.metainfo.xml desktop-file-validate \ %{buildroot}%{_datadir}/applications/%{app_id}.desktop %files -f %{name}.lang %license LICENSE LICENSE.dependencies cargo-vendor.txt %doc README.md %{_bindir}/%{name} %{_libexecdir}/%{name}/ %{_datadir}/%{name}/ %{_datadir}/applications/%{app_id}.desktop %{_datadir}/glib-2.0/schemas/%{app_id}.gschema.xml %{_datadir}/icons/hicolor/scalable/apps/%{app_id}.svg %{_datadir}/icons/hicolor/symbolic/apps/%{app_id}-symbolic.svg %{_datadir}/polkit-1/actions/%{app_id}.policy %{_metainfodir}/%{app_id}.metainfo.xml %changelog * Sun Nov 15 2026 Fedora Packagers - 51.0-1 - Update to GNOME Resources 51.0 - Adopt org.gnome.Resources application identifiers and files - Update GTK and libadwaita requirements; add libsoup 3 - Switch to the upstream release Cargo profile - Refresh offline Rust dependency packaging * Sun Nov 15 2026 Fedora Packagers - 1.8.0-2 - Prepare reproducible offline Rust builds with vendored dependencies - Improve Cargo integration, tests, and RPM file ownership - Switch upstream homepage and source archive to GNOME GitLab * Sat Mar 29 2025 Artem Polishchuk - 1.8.0-1 - chore: Update to latest release * Mon Dec 09 2024 Artem Polishchuk - 1.7.1-1 - chore: Update to latest release * Sun Dec 01 2024 Artem Polishchuk - 1.7.0-1 - chore: Update to latest release * Sun Jul 07 2024 Artem Polishchuk - 1.5.1-1 - chore: Update to latest release * Sun Jun 23 2024 Artem Polishchuk - 1.5.0-1 - chore: Update to latest release * Sun Apr 14 2024 Artem Polishchuk - 1.4.0-1 - chore: Update to latest release * Mon Feb 26 2024 Artem Polishchuk - 1.3.0-2 - build: Switch to default profile * Sun Dec 24 2023 Artem Polishchuk - 1.3.0-1 - chore: Update to latest release * Tue Oct 31 2023 Artem Polishchuk - 1.2.0-1 - Update to latest version * Mon Oct 16 2023 Artem Polishchuk - 1.1.0-1 - Initial