%global forgeurl https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/conjure %global version 0.0.0 %global commit a773daab19928f37caf2ec4181f0da2e0d20d35a %global date 20241111 %global debug_package %{nil} %global gomodulesmode GO111MODULE=on %forgemeta Name: conjure Version: %{forgeversion} Release: %{autorelease} Summary: Pluggable transport for Tor License: BSD-3-Clause URL: %{forgeurl} Source0: %{forgesource} Source1: %{name}.howto BuildRequires: git-core BuildRequires: golang-bin BuildRequires: go-rpm-macros %description Conjure is a pluggable transport for Tor. This transport relies on refraction networking. %prep %forgesetup %build export GOPROXY="https://proxy.golang.org,direct" export GOFLAGS="-trimpath" export GO_LDFLAGS="-s -w" for CMD in client server do %gobuild -o %{name}-${CMD} ./${CMD} done %install for CMD in client server do install -p -D -m 755 -t %{buildroot}%{_bindir} %{name}-${CMD} install -p -D -m 644 ${CMD}/torrc %{buildroot}%{_pkgdocdir}/${CMD}.torrc done install -p -D -m 644 -t %{buildroot}%{_pkgdocdir} %{SOURCE1} README.md %files %license LICENSE %doc %{_pkgdocdir} %{_bindir}/*