%global sys_name peers_updater %global debug_package %{nil} %undefine _package_note_file Name: peers-updater Version: 0.3.1 Release: 2%{?dist} Summary: Check the availability of peers and automatically update them in the Yggdrasil License: MIT URL: https://github.com/ygguser/peers_updater Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cargo >= 1.65 BuildRequires: gcc BuildRequires: rust >= 1.65 # BuildRequires: pkgconfig(openssl) %description The utility is designed to check the availability of peers and automatically update them in the Yggdrasil configuration file, as well as using the admin API - addPeer method. By setting up the automatic launch of the utility on a schedule, you can forget that public peers sometimes stop working and you need to update them manually. %prep %autosetup -n %{sys_name}-%{version} %install export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_OPT_LEVEL=3 cargo install --root=%{buildroot}%{_prefix} --path=. rm -f %{buildroot}%{_prefix}/.crates.toml \ %{buildroot}%{_prefix}/.crates2.json strip --strip-all %{buildroot}%{_bindir}/* %files %license LICENSE %doc README.md README_ru.md CHANGELOG.md %{_bindir}/%{sys_name} %changelog * Fri Jul 28 2023 Artem Polishchuk - 0.3.1-1 - Initial package