File sing-geoip.spec of Package sing-geoip
#
# spec file for package sing-geoip
#
# Copyright (c) 2025 Dmitry Ivanov
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: sing-geoip
Version: 20241212
Release: 0
Summary: GeoIP database for NekoRay
License: GPL-3.0-or-later
URL: https://github.com/SagerNet/sing-geoip
Source: geoip.db
Source1: geoip-cn.db
BuildArch: noarch
BuildRequires: rpm
%description
This package provides GeoIP database for routing purpose in Project V.
%prep
%build
%install
mkdir -p %{buildroot}/%{_datadir}/sing-geoip
cp %{_sourcedir}/geoip.db %{buildroot}/%{_datadir}/sing-geoip/geoip.db
cp %{_sourcedir}/geoip-cn.db %{buildroot}/%{_datadir}/sing-geoip/geoip-cn.db
%files
%defattr(-,root,root)
%dir %{_datadir}/sing-geoip
%{_datadir}/sing-geoip/geoip.db
%{_datadir}/sing-geoip/geoip-cn.db
%changelog
* Tue Jan 7 2025 Dmitry Ivanov <dm.vl.ivanov@gmail.com>
- Initial version