# This setup is bad in many ways but it works for now. Name: xray-geodata # This value will be replaced in automation, and does not always reflect the latest build. Version: 202608232215 # TODO: Look into proper %%autorelease setup Release: 1%{?dist} Summary: Geosite and geoip data for Xray License: GPL-3.0-only URL: https://github.com/Loyalsoldier/v2ray-rules-dat Source0: https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/%{version}/geoip.dat Source1: https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/%{version}/geosite.dat BuildArch: noarch %description geoip.dat and geosite.dat for Xray and the like. %prep %setup -q -c -T %build # Nothing to build %install %{__install} -m 0755 -d %{buildroot}/usr/share/xray %{__install} -m 644 %{S:0} %{buildroot}/usr/share/xray/geoip.dat %{__install} -m 644 %{S:1} %{buildroot}/usr/share/xray/geosite.dat %check # Nothing to check %files # Yes this is bad. %{_datadir}/xray/*.dat %changelog %autochangelog