%define version %(date +%%Y%%m%%d) Name: meta-rules-dat Version: %{version} Release: 1%{?dist} Summary: rules-dat for mihomo License: GPL-3.0-only URL: https://github.com/MetaCubeX/%{name} Source: https://github.com/MetaCubeX/%{name}/releases/download/latest/geoip.metadb %description %install install -vd %{buildroot}%{_datadir}/%{name}/ install -vp %{_sourcedir}/geoip.metadb "$_"/ %files %{_datadir} %license %changelog %autochangelog