## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/beego/beego %global goipath github.com/beego/beego Version: 2.0.2 %gometa %global common_description %{expand: Beego is an open-source, high-performance web framework for the Go programming language.} %global golicenses LICENSE %global godocs ERROR_SPECIFICATION.md CHANGELOG.md CONTRIBUTING.md\\\ README.md Name: %{goname} Release: %autorelease Summary: Beego is an open-source, high-performance web framework for the Go programming language # Upstream license specification: MIT and Apache-2.0 License: MIT and ASL 2.0 URL: %{gourl} Source0: %{gosource} Patch0: 0001-Use-DataDog-s-golz4-instead-of-Cloudfare-s.patch BuildRequires: golang(github.com/clbanning/x2j) BuildRequires: golang(github.com/bradfitz/gomemcache/memcache) BuildRequires: golang(github.com/casbin/casbin) BuildRequires: golang(github.com/DataDog/golz4) BuildRequires: golang(github.com/couchbase/go-couchbase) BuildRequires: golang(github.com/elastic/go-elasticsearch/v6) BuildRequires: golang(github.com/elastic/go-elasticsearch/v6/esapi) BuildRequires: golang(github.com/elazarl/go-bindata-assetfs) BuildRequires: golang(github.com/go-kit/kit/log) BuildRequires: golang(github.com/go-kit/kit/tracing/opentracing) BuildRequires: golang(github.com/go-redis/redis/v7) BuildRequires: golang(github.com/go-sql-driver/mysql) BuildRequires: golang(github.com/gogo/protobuf/proto) BuildRequires: golang(github.com/gomodule/redigo/redis) BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/grpc-ecosystem/go-grpc-prometheus) BuildRequires: golang(github.com/hashicorp/golang-lru) BuildRequires: golang(github.com/ledisdb/ledisdb/config) BuildRequires: golang(github.com/ledisdb/ledisdb/ledis) BuildRequires: golang(github.com/lib/pq) BuildRequires: golang(github.com/mattn/go-sqlite3) BuildRequires: golang(github.com/mitchellh/mapstructure) BuildRequires: golang(github.com/opentracing/opentracing-go) BuildRequires: golang(github.com/opentracing/opentracing-go/log) BuildRequires: golang(github.com/pelletier/go-toml) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/prometheus/client_golang/prometheus) BuildRequires: golang(github.com/prometheus/client_golang/prometheus/promhttp) BuildRequires: golang(github.com/shiena/ansicolor) BuildRequires: golang(github.com/ssdb/gossdb/ssdb) BuildRequires: golang(go.etcd.io/etcd/client/v3) BuildRequires: golang(golang.org/x/crypto/acme/autocert) BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(google.golang.org/protobuf/proto) BuildRequires: golang(gopkg.in/yaml.v2) BuildRequires: golang(gopkg.in/yaml.v3) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 sed -i "s|github.com/beego/x2j|github.com/clbanning/x2j|" $(find . -iname "*.go" -type f) %install %gopkginstall %if %{with check} %check %gocheck -t adapter/cache \ -d adapter/httplib \ -t client/cache \ -d client/httplib \ -d client/orm \ -t core/config \ -d core/logs \ -d server/web/session/redis \ -d server/web \ -d adapter/toolbox %endif %gopkgfiles %changelog * Thu Jan 19 2023 Fedora Release Engineering 2.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Aug 10 2022 Maxwell G 2.0.2-5 - Rebuild to fix FTBFS * Thu Jul 21 2022 Fedora Release Engineering 2.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Robert-André Mauchin 2.0.2-3 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Sun Feb 06 2022 Robert-André Mauchin 2.0.2-2 - Disable a test failing on 32 bits arches * Sun Feb 06 2022 Robert-André Mauchin 2.0.2-1 - Initial import