%global debug_package %{nil} Name: dae Version: 2.1.1 Release: 3%{?dist} Summary: A Linux lightweight and high-performance transparent proxy solution based on eBPF License: AGPL-3.0-or-later URL: https://github.com/daeuniverse/dae Source0: https://github.com/daeuniverse/dae/releases/download/v%{version}/dae-full-src.tar.xz Source1: https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/202609302207/geoip.dat Source2: https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/202609302207/geosite.dat %{?systemd_requires} BuildRequires: clang-devel BuildRequires: llvm-devel BuildRequires: systemd-rpm-macros BuildRequires: golang >= 1.26 BuildRequires: git-core %description dae, means goose, is a high-performance transparent proxy solution. %prep %setup -q -c %build export GOPROXY="https://proxy.golang.org,direct" export GOSUMDB="sum.golang.org" export GOFLAGS="-buildmode=pie -trimpath -modcacherw" export CFLAGS="-fno-stack-protector" make VERSION=%{version} %install install -D -p -m 0755 dae %{buildroot}%{_bindir}/dae install -D -p -m 0644 install/dae.service %{buildroot}%{_unitdir}/dae.service install -D -p -m 0640 install/empty.dae %{buildroot}%{_sysconfdir}/dae/config.dae install -D -p -m 0644 example.dae %{buildroot}%{_sysconfdir}/dae/config.dae.example install -D -p -m 0644 %{S:1} %{buildroot}%{_datadir}/dae/geoip.dat install -D -p -m 0644 %{S:2} %{buildroot}%{_datadir}/dae/geosite.dat %check %post %systemd_post dae.service %preun %systemd_preun dae.service %postun %systemd_postun_with_restart dae.service %files %{_bindir}/dae %{_unitdir}/dae.service %{_sysconfdir}/dae/config.dae.example %config %{_sysconfdir}/dae/config.dae %{_datadir}/dae/geoip.dat %{_datadir}/dae/geosite.dat %license LICENSE %doc README.md %changelog