# Generated by go2rpm 1 %bcond_with check %bcond_without bootstrap # https://github.com/v2ray/v2ray-core %global goipath github.com/v2ray/v2ray-core Version: 4.27.0 %gometa %global common_description %{expand: A platform for building proxies to bypass network restrictions.} %global golicenses LICENSE external/github.com/lucas-clemente/quic-\\\ go/LICENSE\\\ external/github.com/cheekybits/genny/LICENSE\\\ external/github.com/marten-seemann/qtls/LICENSE\\\ external/github.com/cloudflare/sidh/LICENSE %global godocs README.md SECURITY.md doc external/README.md\\\ external/github.com/lucas-clemente/quic-\\\ go/Changelog.md external/github.com/lucas-\\\ clemente/quic-go/README.md\\\ external/github.com/marten-seemann/qtls/README.md Name: v2ray Release: 1%{?dist} Summary: A platform for building proxies to bypass network restrictions License: MIT URL: %{gourl} Source0: %{gosource} %if %{without bootstrap} BuildRequires: golang(github.com/golang/mock/gomock) BuildRequires: golang(github.com/golang/protobuf/proto) BuildRequires: golang(github.com/gorilla/websocket) BuildRequires: golang(github.com/refraction-networking/utls) BuildRequires: golang(github.com/seiflotfy/cuckoofilter) BuildRequires: golang(go.starlark.net/starlark) BuildRequires: golang(go.starlark.net/syntax) BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) BuildRequires: golang(golang.org/x/crypto/curve25519) BuildRequires: golang(golang.org/x/crypto/hkdf) BuildRequires: golang(golang.org/x/crypto/openpgp) BuildRequires: golang(golang.org/x/crypto/sha3) BuildRequires: golang(golang.org/x/net/dns/dnsmessage) BuildRequires: golang(golang.org/x/net/http2) BuildRequires: golang(golang.org/x/net/http2/h2c) BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(google.golang.org/grpc/codes) BuildRequires: golang(google.golang.org/grpc/status) BuildRequires: golang(google.golang.org/protobuf/reflect/protoreflect) BuildRequires: golang(google.golang.org/protobuf/runtime/protoimpl) BuildRequires: golang(v2ray.com/core) BuildRequires: golang(v2ray.com/core/app/commander) BuildRequires: golang(v2ray.com/core/app/dispatcher) BuildRequires: golang(v2ray.com/core/app/dns) BuildRequires: golang(v2ray.com/core/app/log) BuildRequires: golang(v2ray.com/core/app/log/command) BuildRequires: golang(v2ray.com/core/app/policy) BuildRequires: golang(v2ray.com/core/app/proxyman) BuildRequires: golang(v2ray.com/core/app/proxyman/command) BuildRequires: golang(v2ray.com/core/app/proxyman/inbound) BuildRequires: golang(v2ray.com/core/app/proxyman/outbound) BuildRequires: golang(v2ray.com/core/app/reverse) BuildRequires: golang(v2ray.com/core/app/router) BuildRequires: golang(v2ray.com/core/app/stats) BuildRequires: golang(v2ray.com/core/app/stats/command) BuildRequires: golang(v2ray.com/core/common) BuildRequires: golang(v2ray.com/core/common/antireplay) BuildRequires: golang(v2ray.com/core/common/bitmask) BuildRequires: golang(v2ray.com/core/common/buf) BuildRequires: golang(v2ray.com/core/common/bytespool) BuildRequires: golang(v2ray.com/core/common/cmdarg) BuildRequires: golang(v2ray.com/core/common/crypto) BuildRequires: golang(v2ray.com/core/common/crypto/internal) BuildRequires: golang(v2ray.com/core/common/dice) BuildRequires: golang(v2ray.com/core/common/errors) BuildRequires: golang(v2ray.com/core/common/log) BuildRequires: golang(v2ray.com/core/common/mux) BuildRequires: golang(v2ray.com/core/common/net) BuildRequires: golang(v2ray.com/core/common/platform) BuildRequires: golang(v2ray.com/core/common/platform/ctlcmd) BuildRequires: golang(v2ray.com/core/common/platform/filesystem) BuildRequires: golang(v2ray.com/core/common/protocol) BuildRequires: golang(v2ray.com/core/common/protocol/bittorrent) BuildRequires: golang(v2ray.com/core/common/protocol/dns) BuildRequires: golang(v2ray.com/core/common/protocol/http) BuildRequires: golang(v2ray.com/core/common/protocol/tls) BuildRequires: golang(v2ray.com/core/common/protocol/tls/cert) BuildRequires: golang(v2ray.com/core/common/protocol/udp) BuildRequires: golang(v2ray.com/core/common/retry) BuildRequires: golang(v2ray.com/core/common/serial) BuildRequires: golang(v2ray.com/core/common/session) BuildRequires: golang(v2ray.com/core/common/signal) BuildRequires: golang(v2ray.com/core/common/signal/done) BuildRequires: golang(v2ray.com/core/common/signal/pubsub) BuildRequires: golang(v2ray.com/core/common/signal/semaphore) BuildRequires: golang(v2ray.com/core/common/strmatcher) BuildRequires: golang(v2ray.com/core/common/task) BuildRequires: golang(v2ray.com/core/common/uuid) BuildRequires: golang(v2ray.com/core/external/github.com/cheekybits/genny/generic) BuildRequires: golang(v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny) BuildRequires: golang(v2ray.com/core/external/github.com/cloudflare/sidh/internal/utils) BuildRequires: golang(v2ray.com/core/external/github.com/cloudflare/sidh/p503) BuildRequires: golang(v2ray.com/core/external/github.com/cloudflare/sidh/p751) BuildRequires: golang(v2ray.com/core/external/github.com/cloudflare/sidh/sidh) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/ackhandler) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/handshake) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/qerr) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils) BuildRequires: golang(v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire) BuildRequires: golang(v2ray.com/core/external/github.com/marten-seemann/qtls) BuildRequires: golang(v2ray.com/core/features) BuildRequires: golang(v2ray.com/core/features/dns) BuildRequires: golang(v2ray.com/core/features/dns/localdns) BuildRequires: golang(v2ray.com/core/features/inbound) BuildRequires: golang(v2ray.com/core/features/outbound) BuildRequires: golang(v2ray.com/core/features/policy) BuildRequires: golang(v2ray.com/core/features/routing) BuildRequires: golang(v2ray.com/core/features/stats) BuildRequires: golang(v2ray.com/core/infra/conf) BuildRequires: golang(v2ray.com/core/infra/conf/json) BuildRequires: golang(v2ray.com/core/infra/conf/serial) BuildRequires: golang(v2ray.com/core/infra/control) BuildRequires: golang(v2ray.com/core/main/confloader) BuildRequires: golang(v2ray.com/core/main/confloader/external) BuildRequires: golang(v2ray.com/core/main/distro/all) BuildRequires: golang(v2ray.com/core/main/json) BuildRequires: golang(v2ray.com/core/proxy) BuildRequires: golang(v2ray.com/core/proxy/blackhole) BuildRequires: golang(v2ray.com/core/proxy/dns) BuildRequires: golang(v2ray.com/core/proxy/dokodemo) BuildRequires: golang(v2ray.com/core/proxy/freedom) BuildRequires: golang(v2ray.com/core/proxy/http) BuildRequires: golang(v2ray.com/core/proxy/mtproto) BuildRequires: golang(v2ray.com/core/proxy/shadowsocks) BuildRequires: golang(v2ray.com/core/proxy/socks) BuildRequires: golang(v2ray.com/core/proxy/vmess) BuildRequires: golang(v2ray.com/core/proxy/vmess/aead) BuildRequires: golang(v2ray.com/core/proxy/vmess/encoding) BuildRequires: golang(v2ray.com/core/proxy/vmess/inbound) BuildRequires: golang(v2ray.com/core/proxy/vmess/outbound) BuildRequires: golang(v2ray.com/core/transport) BuildRequires: golang(v2ray.com/core/transport/internet) BuildRequires: golang(v2ray.com/core/transport/internet/domainsocket) BuildRequires: golang(v2ray.com/core/transport/internet/headers/http) BuildRequires: golang(v2ray.com/core/transport/internet/headers/noop) BuildRequires: golang(v2ray.com/core/transport/internet/headers/srtp) BuildRequires: golang(v2ray.com/core/transport/internet/headers/tls) BuildRequires: golang(v2ray.com/core/transport/internet/headers/utp) BuildRequires: golang(v2ray.com/core/transport/internet/headers/wechat) BuildRequires: golang(v2ray.com/core/transport/internet/headers/wireguard) BuildRequires: golang(v2ray.com/core/transport/internet/http) BuildRequires: golang(v2ray.com/core/transport/internet/kcp) BuildRequires: golang(v2ray.com/core/transport/internet/quic) BuildRequires: golang(v2ray.com/core/transport/internet/tcp) BuildRequires: golang(v2ray.com/core/transport/internet/tls) BuildRequires: golang(v2ray.com/core/transport/internet/udp) BuildRequires: golang(v2ray.com/core/transport/internet/websocket) BuildRequires: golang(v2ray.com/core/transport/pipe) %if %{with check} # Tests BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts) BuildRequires: golang(github.com/miekg/dns) BuildRequires: golang(golang.org/x/net/proxy) BuildRequires: golang(golang.org/x/sync/errgroup) BuildRequires: golang(h12.io/socks) BuildRequires: golang(v2ray.com/core/testing/servers/http) BuildRequires: golang(v2ray.com/core/testing/servers/tcp) BuildRequires: golang(v2ray.com/core/testing/servers/udp) %endif %endif %description %{common_description} %gopkg %prep %goprep %if %{without bootstrap} %build # for cmd in main infra/control/main; do %gobuild -o %{gobuilddir}/bin/v2ray %{goipath}/main %gobuild -o %{gobuilddir}/bin/v2ctl %{goipath}/infra/control/main # infra/vprotogen common/errors/errorgen are not included in upstream release %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_libexecdir}/v2ray/ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_libexecdir}/v2ray/ %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %files %if %{without bootstrap} %license LICENSE external/github.com/lucas-clemente/quic-go/LICENSE %license external/github.com/cheekybits/genny/LICENSE %license external/github.com/marten-seemann/qtls/LICENSE %license external/github.com/cloudflare/sidh/LICENSE %doc README.md SECURITY.md external/README.md %doc external/github.com/lucas-clemente/quic-go/Changelog.md %doc external/github.com/lucas-clemente/quic-go/README.md %doc external/github.com/marten-seemann/qtls/README.md %{buildroot}%{_libexecdir}/v2ray/* %endif %gopkgfiles %changelog * Tue Jul 07 20:21:30 CST 2020 Qiyu Yan - 4.25.1-1 - Initial package