Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package swag for openSUSE:Factory checked in 
at 2024-09-29 18:10:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/swag (Old)
 and      /work/SRC/openSUSE:Factory/.swag.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "swag"

Sun Sep 29 18:10:42 2024 rev:2 rq:1204253 version:1.16.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/swag/swag.changes        2024-09-27 
17:12:43.765751262 +0200
+++ /work/SRC/openSUSE:Factory/.swag.new.29891/swag.changes     2024-09-29 
18:11:33.559914841 +0200
@@ -1,0 +2,16 @@
+Fri Sep 27 11:11:22 UTC 2024 - Jeff Kowalczyk <jkowalc...@suse.com>
+
+- Packaging improvements:
+  * Re-enable binary stripping and debuginfo boo#1210938
+  * Use BuildRequires: golang(API) >= 1.22 rather than pin go1.22.
+    The golang(API) expression allows use of newer go versions and
+    integrates with the go metapackage via OBS prjconf Prefer:
+  * Drop autosetup -p 1 arg only needed when package has patches
+  * Build PIE with pattern that may become recommended procedure:
+    %%ifnarch ppc64 GOFLAGS="-buildmode=pie" %%endif go build
+    A go toolchain buildmode default config would be preferable
+    but none exist at this time.
+  * Drop mod=vendor, go1.14+ will detect vendor dir and auto-enable
+  * Drop go build -o arg, default binary name is package of main()
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ swag.spec ++++++
--- /var/tmp/diff_new_pack.nLgJxA/_old  2024-09-29 18:11:34.143938970 +0200
+++ /var/tmp/diff_new_pack.nLgJxA/_new  2024-09-29 18:11:34.143938970 +0200
@@ -16,17 +16,15 @@
 #
 
 
-%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
-
 Name:           swag
 Version:        1.16.3
 Release:        0
 Summary:        Automatically generate RESTful API documentation with Swagger 
2.0 for Go
 License:        MIT
-URL:            https://github.com/swaggo/swag/
+URL:            https://github.com/swaggo/swag
 Source:         %{name}-%{version}.tar.gz
 Source1:        vendor.tar.gz
-BuildRequires:  go >= 1.22
+BuildRequires:  golang(API) >= 1.22
 
 %description
 Swag converts Go annotations to Swagger Documentation 2.0. We've created a
@@ -34,17 +32,16 @@
 integrate with an existing Go project (using Swagger UI).
 
 %prep
-%autosetup -p 1 -a 1
+%autosetup -a 1
 
 %build
-go build \
-   -mod=vendor \
-   -buildmode=pie \
-   -o bin/%{name} ./cmd/%{name}
+%ifnarch ppc64
+export GOFLAGS="-buildmode=pie"
+%endif
+go build ./cmd/%{name}
 
 %install
-# Install the binary.
-install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
+install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
 
 %files
 %doc README.md

Reply via email to