File osu-lazer.spec of Package osu-lazer
#
# spec file for package osu-lazer
#
%define program_version 2025.912.0.lazer
Name: osu-lazer
Version: %{program_version}
Release: 0%{?dist}
Summary: The future of osu! and the beginning of an open era
License: MIT AND CC-BY-NC-4.0
URL: https://osu.ppy.sh
Source0: https://github.com/ppy/osu/releases/download/%{version}/osu.AppImage
Source1: https://github.com/ppy/osu/raw/master/assets/lazer.png#/%{name}.png
Source2: https://github.com/ppy/osu-resources/raw/master/LICENCE.md#/%{name}-LICENCE.md
Source3: osu!.desktop
BuildRequires: update-desktop-files
Requires: ffmpeg
Requires: zlib
%description
A free-to-win rhythm game. Rhythm is just a click away!
The future of osu! and the beginning of an open era! Currently known by and
released under the release codename "lazer". As in sharper than cutting-edge.
%prep
%build
%install
# Install image
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Install license
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/licenses/%{name}/LICENCE.md
# Install desktop file
install -Dm644 -t %{buildroot}%{_datadir}/applications/ %{SOURCE3}
# Install binary
install -Dm755 %{SOURCE0} %{buildroot}%{_bindir}/%{name}
%suse_update_desktop_file 'osu!'
%files
%{_bindir}/osu-lazer
%{_datadir}/applications/osu*.desktop
%{_datadir}/pixmaps/osu-lazer.png
%license LICENCE.md
%changelog