# # spec file for package waylyrics # # Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: waylyrics Version: 0.3.21 Release: 1 Summary: The furry way to show desktop lyrics License: MIT URL: https://github.com/xiaozhangup/waylyrics Source: %{url}/archive/refs/tags/%{version}.tar.gz BuildRequires: cargo >= 1.93.0 BuildRequires: dbus-devel BuildRequires: gtk4-devel BuildRequires: graphene-devel BuildRequires: mimalloc-devel BuildRequires: openssl-devel BuildRequires: gettext %description The furry way to show desktop lyrics, and simple universal desktop lyrics made with GTK4 and love. %prep %autosetup %build export WAYLYRICS_THEME_PRESETS_DIR=%{_datadir}/waylyrics/themes cargo build --release %install export WAYLYRICS_THEME_PRESETS_DIR=%{_datadir}/waylyrics/themes install -Dm755 target/release/%{name} -t %{buildroot}%{_bindir}/ install -dm755 %{buildroot}%{_datadir}/waylyrics cp -r themes %{buildroot}%{_datadir}/waylyrics/ install -Dm644 "metainfo/io.github.waylyrics.Waylyrics.desktop" -t %{buildroot}%{_datadir}/applications/ install -Dm644 "metainfo/io.github.waylyrics.Waylyrics.gschema.xml" -t %{buildroot}%{_datadir}/glib-2.0/schemas/ cp -r res/icons %{buildroot}%{_datadir}/icons # Locale files install -dm755 %{buildroot}%{_datadir}/locale for po in locales/*/LC_MESSAGES/*.po; do locale=$(basename $(dirname $(dirname $po))) mkdir -p %{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES msgfmt -o %{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES/%{name}.mo $po done %check export WAYLYRICS_THEME_PRESETS_DIR=%{_datadir}/waylyrics/themes cargo test --release --features=offline-test %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/waylyrics/ %{_datadir}/applications/io.github.waylyrics.Waylyrics.desktop %{_datadir}/glib-2.0/schemas/io.github.waylyrics.Waylyrics.gschema.xml %{_datadir}/icons/hicolor/scalable/apps/io.github.waylyrics.Waylyrics.svg %{_datadir}/locale/*/LC_MESSAGES/%{name}.mo %changelog * Sun Feb 02 2026 xiaozhangup - 0.3.21-1 - Release 0.3.21