# sed will replace these values %global build_version 0.63.0 %global branch master %global commit 0 %global debug_package %{nil} Name: frp Version: %{build_version} Release: 3%{?dist} Summary: unofficial spec file for frp License: Apache-2.0 URL: https://github.com/fatedier/frp Source0: https://github.com/fatedier/frp/archive/refs/tags/v%{build_version}.tar.gz BuildRequires: golang BuildRequires: make BuildRequires: git %description FRP rpm build %prep %setup -n frp-%{build_version} %build make build cat < frps.service [Unit] Description=FRP Server After=network.target syslog.target Wants=network.target [Service] Type=simple ExecStart=/usr/bin/frps -c /etc/frp/frps.toml Restart=on-failure [Install] WantedBy=multi-user.target EOF cat < frpc.service [Unit] Description=FRP Client After=network.target syslog.target Wants=network.target [Service] Type=simple ExecStart=/usr/bin/frpc -c /etc/frp/frpc.toml Restart=on-failure [Install] WantedBy=multi-user.target EOF %check # ensure output is correct %install install -D -m 0655 conf/frps.toml %{buildroot}/etc/frp/frps.toml install -D -m 0655 conf/frpc.toml %{buildroot}/etc/frp/frpc.toml install -D -m 0655 frps.service %{buildroot}/etc/systemd/system/frps.service install -D -m 0655 frpc.service %{buildroot}/etc/systemd/system/frpc.service install -D -m 0755 bin/frps %{buildroot}%{_bindir}/frps install -D -m 0755 bin/frpc %{buildroot}%{_bindir}/frpc %files %{_bindir}/frps %{_bindir}/frpc /etc/frp/frps.toml /etc/frp/frpc.toml /etc/systemd/system/frps.service /etc/systemd/system/frpc.service %changelog * Tue Jul 01 2025 Max K 0.63.0-3 - * Tue Jul 01 2025 Max K - * Tue Jul 01 2025 Max K - actually add the systemd file lol * Tue Jul 01 2025 Max K - actually added the systemd file lol * Tue Jul 01 2025 Max K 0.63.0-2 - * Tue Jul 01 2025 Max K - * Tue Jul 01 2025 Unknown name 0.63.0-1 - new package built with tito