diff --git a/_service b/_service index 367c3a4..b08cb24 100644 --- a/_service +++ b/_service @@ -1,16 +1,19 @@ - + + gosec https://github.com/securego/gosec.git git - master v2.14.0 @PARENT_TAG@ - v(.*) + v(.*) + \1 + - + + *.tar - gz + xz gz diff --git a/gosec-2.14.0.obscpio b/gosec-2.14.0.obscpio new file mode 100644 index 0000000..e236a22 --- /dev/null +++ b/gosec-2.14.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bad4eba5c692bd7fe37f37ba1140c442fc089cbb6d2343e2f8bc0ef4dec6e95e +size 586252 diff --git a/gosec-2.14.0.tar.gz b/gosec-2.14.0.tar.gz deleted file mode 100644 index 6b6fb5e..0000000 --- a/gosec-2.14.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:53644a1705b0962cc4b84bfaad92ee4dd4f20c57ead434fc25be6201c6d0b266 -size 140538 diff --git a/gosec.changes b/gosec.changes index 97f258e..80e5658 100644 --- a/gosec.changes +++ b/gosec.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Dec 12 19:31:05 UTC 2022 - Felix Niederwanger + +- Switch OBS source service from tar_scm to obs_scm. + * Embed version info with go build arg GIT_TAG="v%{version}" + * _service obs_scm switch from tar_scm + * _service obs_scm switch param revision (branch) to version (tag) + * _service tar set to buildtime + * _service recompress set to buildtime + * _service recompress change tar compression from gz to xz + ------------------------------------------------------------------- Mon Oct 17 13:45:23 UTC 2022 - Felix Niederwanger diff --git a/gosec.obsinfo b/gosec.obsinfo new file mode 100644 index 0000000..d8b5c6c --- /dev/null +++ b/gosec.obsinfo @@ -0,0 +1,4 @@ +name: gosec +version: 2.14.0 +mtime: 1670844022 +commit: f9a8bf0152af9f9bda93de373ddb3762f0d12f14 diff --git a/gosec.spec b/gosec.spec index 2c7ede1..d844f1e 100644 --- a/gosec.spec +++ b/gosec.spec @@ -21,11 +21,12 @@ Version: 2.14.0 Release: 0 Summary: Golang security checker License: Apache-2.0 +Group: Development/Languages/Other URL: https://github.com/securego/gosec -Source: gosec-%{version}.tar.gz +Source: gosec-%{version}.tar.xz Source1: vendor.tar.gz -BuildRequires: golang-packaging BuildRequires: go >= 1.16 +BuildRequires: golang-packaging %{go_nostrip} %description @@ -37,9 +38,9 @@ Inspects source code for security problems by scanning the go abstract syntax tr %build # Native linux build includes version tags but currently works only on x86_64 %ifarch x86_64 -GOFLAGS="-buildmode=pie" make build-linux +GOFLAGS="-buildmode=pie" GIT_TAG="v%{version}" make build-linux %else -GOFLAGS="-buildmode=pie" make build +GOFLAGS="-buildmode=pie" GIT_TAG="v%{version}" make build %endif %check @@ -58,4 +59,3 @@ install -Dm 755 gosec %{buildroot}/%{_bindir}/gosec %{_bindir}/gosec %changelog - diff --git a/vendor.tar.gz b/vendor.tar.gz index 38f96b4..f344a58 100644 --- a/vendor.tar.gz +++ b/vendor.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a2dd0e4dd98a7610ef9ba18679985fb06949e949ed50891020579a23b0000556 -size 3889657 +oid sha256:380a90f82b1969ae09966f2aafdd9e988f72d3b272dc63b62aff19befb45ebdf +size 3996746