# This setup is bad in many ways but it works for now. Name: xray-geodata Version: 20261026222938 # TODO: Look into proper %%autorelease setup Release: 2%{?dist} Summary: Geosite and geoip data for Xray License: GPL-3.0-only AND MIT URL: https://github.com/XTLS/Xray-rules-dat Source0: https://github.com/XTLS/Xray-rules-dat/releases/download/%{version}/geoip-full.dat Source1: https://github.com/XTLS/Xray-rules-dat/releases/download/%{version}/geosite-expand.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