%global forgeurl https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird %global commit 89d54872b176f936232ff39f7a8189b77d83d65e %global gomodulesmode GO111MODULE=on %forgemeta Name: lyrebird Version: 0.9.0^20260921git89d54872 Release: 5%{?dist} Summary: Tor pluggable transport proxy License: 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND GPL-3.0-only AND MIT URL: %{forgeurl} Provides: obfs4 = %{version}-%{release} Provides: obfs4proxy = %{version}-%{release} Obsoletes: obfs4 <= %{version}-%{release} Source0: %{forgesource} # Generated offline vendor archive using go-vendor-tools Source1: vendor.tar.bz2 Source2: go-vendor-tools.toml Source3: obfs4.torrc BuildRequires: go-vendor-tools BuildRequires: go-rpm-macros BuildRequires: golang %description Lyrebird is a pluggable transport for Tor. Protocols supported by this transport: - Obfs2/3/4 - Meek client - ScrambleSuit client - WebTunnel client %prep %autosetup -n lyrebird-%{commit} -a 1 %build %gobuild -mod=vendor -o %{name} ./cmd/%{name} %install %go_vendor_license_install -c %{SOURCE2} install -D -p -m 0755 -t %{buildroot}%{_bindir} %{name} ln -s %{name} %{buildroot}%{_bindir}/obfs4proxy install -D -p -m 0644 -t %{buildroot}%{_mandir}/man1 doc/%{name}.1 install -D -p -m 0644 -t %{buildroot}%{_pkgdocdir} README.md ChangeLog doc/obfs4-spec.txt install -m 0755 -vd %{buildroot}%{_sysconfdir}/tor install -m 0644 -vp %{SOURCE3} %{buildroot}%{_sysconfdir}/tor/obfs4.torrc %check ./%{name} -version || : %files -f %{go_vendor_license_filelist} %doc %{_pkgdocdir} %{_bindir}/%{name} %{_bindir}/obfs4proxy %{_mandir}/man1/%{name}.1* %dir %{_sysconfdir}/tor %config(noreplace) %{_sysconfdir}/tor/obfs4.torrc %changelog * Thu Oct 22 2026 Packager - %{version}-%{release} - Initial test build * Thu Oct 20 2026 Packager - %{version}-%{release} - Initial test build