2024-07-25 18:09:16 +02:00
|
|
|
%define pkg_release 0.1.3
|
2024-06-22 19:43:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
Name: fedora-kernel-manager
|
|
|
|
Version: %{pkg_release}
|
2024-06-24 03:48:03 +02:00
|
|
|
Release: 2%{?dist}
|
2024-06-22 19:43:00 +02:00
|
|
|
License: GPLv2
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Summary: A Libadwaita rust based application for managing and installing kernels.
|
|
|
|
|
|
|
|
|
|
|
|
URL: https://github.com/CosmicFusion/fedora-kernel-manager
|
2024-06-22 22:01:03 +02:00
|
|
|
Source0: %{URL}/releases/download/%{pkg_release}/fedora-kernel-manager.tar.gz
|
2024-06-22 19:43:00 +02:00
|
|
|
|
|
|
|
BuildRequires: wget
|
|
|
|
BuildRequires: cargo
|
|
|
|
BuildRequires: gdk-pixbuf2-devel
|
|
|
|
BuildRequires: gtk4-devel
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
BuildRequires: libadwaita-devel
|
|
|
|
BuildRequires: openssl-devel
|
2024-06-22 22:44:43 +02:00
|
|
|
BuildRequires: llvm-devel
|
2024-06-22 22:58:41 +02:00
|
|
|
BuildRequires: clang-devel
|
2024-06-22 19:43:00 +02:00
|
|
|
|
|
|
|
Requires: /usr/bin/bash
|
|
|
|
Requires: gtk4
|
|
|
|
Requires: gtk3
|
|
|
|
Requires: libadwaita
|
|
|
|
Requires: glib2
|
|
|
|
Requires: util-linux
|
|
|
|
Requires: polkit
|
|
|
|
Requires: iputils
|
|
|
|
|
2024-07-25 17:45:23 +02:00
|
|
|
Recommends: scx-scheds
|
2024-06-22 20:15:37 +02:00
|
|
|
|
2024-06-22 19:43:00 +02:00
|
|
|
%description
|
|
|
|
A Libadwaita rust based application for managing and installing kernels.
|
|
|
|
|
|
|
|
%prep
|
2024-06-22 22:23:27 +02:00
|
|
|
%autosetup -p1 -n fedora-kernel-manager
|
2024-06-22 19:43:00 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
DESTDIR=%{buildroot} make install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_prefix}/lib/fedora-kernel-manager/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/*.svg
|
2024-06-22 20:15:37 +02:00
|
|
|
%{_datadir}/polkit-1/actions/fkm.change.scx.policy
|
2024-06-22 21:39:18 +02:00
|
|
|
%{_datadir}/polkit-1/actions/fkm.modify.package.policy
|
2024-06-24 03:22:35 +02:00
|
|
|
%{_prefix}/lib/fedora-kernel-manager/kernel_branches/kernel.json
|
2024-06-22 23:54:09 +02:00
|
|
|
%exclude %{_prefix}/lib/fedora-kernel-manager/kernel_branches/kernel-cachyos.json
|
2024-06-24 03:48:03 +02:00
|
|
|
%exclude %{_prefix}/lib/fedora-kernel-manager/scripts/kernel-cachyos-init.sh
|
2024-06-22 23:54:09 +02:00
|
|
|
|
|
|
|
%package cachyos-config
|
2024-06-24 03:48:03 +02:00
|
|
|
Summary: Config files to enable coprs/bieszczaders/kernel-cachyos in fedora-kernel-manager.
|
2024-06-22 23:54:09 +02:00
|
|
|
Requires: fedora-kernel-manager
|
|
|
|
|
|
|
|
%description cachyos-config
|
2024-06-24 03:48:03 +02:00
|
|
|
Config files to enable coprs/bieszczaders/kernel-cachyos in fedora-kernel-manager.
|
2024-06-22 23:54:09 +02:00
|
|
|
|
|
|
|
%files cachyos-config
|
|
|
|
%{_prefix}/lib/fedora-kernel-manager/kernel_branches/kernel-cachyos.json
|
2024-06-24 03:48:03 +02:00
|
|
|
%{_prefix}/lib/fedora-kernel-manager/scripts/kernel-cachyos-init.sh
|
2024-06-22 23:54:09 +02:00
|
|
|
%{_datadir}/polkit-1/actions/fkm.kernel.cachyos.init.policy
|
2024-06-24 03:48:03 +02:00
|
|
|
%{_datadir}/polkit-1/rules.d/99-fkm.kernel.cachyos.init.rules
|