%global plugin_name org.miryugaming.startmenu %global plugin_dir %{_datadir}/plasma/plasmoids/%{plugin_name} %global gettext_domain plasma_applet_%{plugin_name} Name: miryu-start Version: 45.0.1 Release: 3%{?dist} Summary: One stop KDE Plasma 6 Start Menu License: GPL-3.0-or-later URL: https://github.com/evernightvista/miryu-start-menu Source0: https://github.com/evernightvista/miryu-start-menu/archive/refs/heads/main.zip BuildRequires: gettext BuildRequires: unzip Requires: plasma-desktop Requires: python3 Requires: qt6-qttools Requires: miryu-search BuildArch: noarch %description Miryu Start Menu is a one-stop start menu for KDE Plasma 6. It provides a modern application launcher with pinned/favorite apps, search, power/session actions and a time-aware greeting. %prep %autosetup -n miryu-start-menu-main %build # Compile the gettext catalogs. The repo ships .po files but no build.sh, so # we build the binary .mo files straight into the bundled locale tree. for po in translate/*.po; do lang="$(basename "$po" .po)" install -d "contents/locale/${lang}/LC_MESSAGES" msgfmt -o "contents/locale/${lang}/LC_MESSAGES/%{gettext_domain}.mo" "$po" done %install rm -rf %{buildroot} install -d %{buildroot}%{plugin_dir} cp -a metadata.json %{buildroot}%{plugin_dir}/ cp -a contents %{buildroot}%{plugin_dir}/ # Also ship translations through the system locale tree (tracked by %find_lang). install -d %{buildroot}%{_datadir}/locale cp -a %{buildroot}%{plugin_dir}/contents/locale/* %{buildroot}%{_datadir}/locale/ find %{buildroot}%{plugin_dir} -type d -exec chmod 0755 {} \; find %{buildroot}%{plugin_dir} -type f -exec chmod 0644 {} \; find %{buildroot}%{_datadir}/locale -type d -exec chmod 0755 {} \; find %{buildroot}%{_datadir}/locale -type f -exec chmod 0644 {} \; install -d %{buildroot}%{_datadir}/licenses/%{name} install -m 0644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/ install -d %{buildroot}%{_datadir}/doc/%{name} install -m 0644 README.md %{buildroot}%{_datadir}/doc/%{name}/ %find_lang %{gettext_domain} %files -f %{gettext_domain}.lang %license %{_datadir}/licenses/%{name}/LICENSE %doc %{_datadir}/doc/%{name}/README.md %dir %{plugin_dir} %{plugin_dir}/metadata.json %{plugin_dir}/contents/ %changelog * Tue Nov 17 2026 KairikiFedora <13278297951@sina.cn> - 45.0.1-3 - Redesign Start Menu UI * Fri Oct 30 2026 KairikiFedora <13278297951@sina.cn> - 45.0.1-2 - Fix Bug * Fri Oct 30 2026 KairikiFedora <13278297951@sina.cn> - 45.0.1-1 - Initial RPM package for Miryu Start Menu (org.miryugaming.startmenu)