%define version %(date +%%Y%%m%%d) Name: metacubexd Version: %{version} Release: 1%{?dist} Summary: Mihomo Dashboard, The Official One, XD License: MIT URL: https://github.com/MetaCubeX/%{name}/tree/gh-pages Source: https://github.com/MetaCubeX/%{name}/archive/refs/heads/gh-pages.tar.gz %description %install /usr/lib/rpm/rpmuncompress -x %{_sourcedir}/gh-pages.tar.gz install -d %{buildroot}%{_datadir}/ cp -a %{name}-gh-pages "$_"/%{name} %files %{_datadir} %license %changelog