Skip to content

Commit

Permalink
Update to v6.5.8-200.fc38
Browse files Browse the repository at this point in the history
This also fixes tiny-dfr
  • Loading branch information
sharpenedblade committed Oct 30, 2023
1 parent 40ccd4e commit 57d77bd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 142 deletions.
2 changes: 1 addition & 1 deletion build-packages.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash
set -e

packages=( "t2linux-config" "t2linux-repo" "t2linux-audio" "rust-icon-loader" "rust-tiny-dfr" "kernel" )
packages=( "t2linux-config" "t2linux-repo" "t2linux-audio" "rust-tiny-dfr" "kernel" )

mkdir -p /repo/builddir
builddir=$(mktemp -d -p "/repo/builddir"); export builddir
Expand Down
2 changes: 1 addition & 1 deletion kernel/kernel.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash
set -e

KERNEL_VERSION=6.5.7-200.fc38
KERNEL_VERSION=6.5.8-200.fc38

cd "$package_builddir"
koji download-build --quiet --arch=src "kernel-$KERNEL_VERSION"
Expand Down
6 changes: 0 additions & 6 deletions rust-icon-loader/downgrade-rust-ini.patch

This file was deleted.

119 changes: 0 additions & 119 deletions rust-icon-loader/rust-icon-loader.spec

This file was deleted.

29 changes: 14 additions & 15 deletions rust-tiny-dfr/rust-tiny-dfr.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
%global forgeurl https://github.com/kekrby/tiny-dfr/
%global commit 61223862921d2b1d4f88436ad9c89ddc879a5699
%global commit 5b45724fd5e98b716d0b26a037daaaad4c7a5eee
%global crate tiny-dfr
%forgemeta

Name: rust-tiny-dfr
Name: rust-%{crate}
Version: 0.1.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: The most basic dynamic function row daemon possible
License: MIT AND Apache-2.0
URL: %{forgeurl}
Source: %{forgesource}

# Use librsvg 2.57.0
Patch0: fix-librsvg-metadata.patch

BuildRequires: rust-packaging >= 23
BuildRequires: systemd-rpm-macros

Expand All @@ -26,10 +24,11 @@ License: Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND ISC AND LGPL-2.1-or-later A
%license LICENSE.material
%license LICENSE.dependencies
%doc README.md
%{_bindir}/tiny-dfr
%{_datadir}/tiny-dfr/*
%{_bindir}/%{crate}
%{_datadir}/%{crate}/
%{_udevrulesdir}/*.rules
%{_unitdir}/tiny-dfr.service
%{_unitdir}/%{crate}.service
%{_sysconfdir}/%{crate}.conf

%prep
%forgeautosetup -p1
Expand All @@ -44,16 +43,16 @@ License: Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND ISC AND LGPL-2.1-or-later A

%install
%cargo_install
mkdir -p %{buildroot}%{_datadir}/
cp -r -t %{buildroot}%{_datadir}/ share/tiny-dfr
install -Dpm0644 -t %{buildroot}%{_datadir}/%{crate} share/%{crate}/*.svg
install -Dpm0644 -t %{buildroot}%{_udevrulesdir} etc/udev/rules.d/*.rules
install -Dpm0644 -t %{buildroot}%{_unitdir} etc/systemd/system/tiny-dfr.service
install -Dpm0644 -t %{buildroot}%{_unitdir} etc/systemd/system/%{crate}.service
install -Dpm0644 -t %{buildroot}%{_sysconfdir} etc/%{crate}.conf

%post
%systemd_post tiny-dfr.service
%systemd_post %{crate}.service

%preun
%systemd_preun tiny-dfr.service
%systemd_preun %{crate}.service

%postun
%systemd_postun_with_restart tiny-dfr.service
%systemd_postun_with_restart %{crate}.service

0 comments on commit 57d77bd

Please sign in to comment.