public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/browserpass] rawhide: Adopt Go Vendor Tools
@ 2026-07-20 15:25 Mikel Olasagasti Uranga
  0 siblings, 0 replies; only message in thread
From: Mikel Olasagasti Uranga @ 2026-07-20 15:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/browserpass
Branch : rawhide
Commit : 922bbe5a0f70d2295a9d4785a249dbb1a6967ab0
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date   : 2026-07-20T14:07:38+00:00
Stats  : +37/-25 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/browserpass/c/922bbe5a0f70d2295a9d4785a249dbb1a6967ab0?branch=rawhide

Log:
Adopt Go Vendor Tools

---
diff --git a/.gitignore b/.gitignore
index 1fa055c..fa97e2b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /browserpass-native-3.1.0.tar.gz
 /browserpass-native-3.1.2.tar.gz
+/browserpass-native-3.1.2-vendor.tar.bz2

diff --git a/browserpass.spec b/browserpass.spec
index fa8a767..4044028 100644
--- a/browserpass.spec
+++ b/browserpass.spec
@@ -1,36 +1,40 @@
-# Generated by go2rpm 1.9.0
-%bcond_without check
+# Generated by go2rpm 1.19.0
+%bcond check 1
 
 # https://github.com/browserpass/browserpass-native
-%global goipath         github.com/browserpass/browserpass-native
-%global tag             %{version}
+%global goipath         github.com/browserpass/browserpass-native/v3
 Version:                3.1.2
 
+%gometa -L -f
+
 %global native_mozpath %{_libdir}/mozilla/native-messaging-hosts
 %global native_chromepath %{_sysconfdir}/chromium/native-messaging-hosts
 %global native_id com.github.browserpass.native
 
-%gometa -f
-
-%global common_description %{expand:
-This is a host application for browserpass browser extension providing it
-access to your password store. The communication is handled through
-Native Messaging API.}
 
 Name:           browserpass
 Release:        %autorelease
 Summary:        Native messaging host
 
-License:        ISC
+# Generated by go-vendor-tools
+License:        BSD-3-Clause AND ISC AND MIT
 URL:            %{gourl}
-Source:         %{gosource}
-Source:         %{gourl}/releases/download/v%{version}/%{name}-native-%{version}.tar.gz.asc
-Source:         https://maximbaz.com/pgp_keys.asc
+Source0:        %{gosource}
+# Generated by go-vendor-tools
+Source1:        %{archivename}-vendor.tar.bz2
+Source2:        go-vendor-tools.toml
+Source3:         %{gourl}/releases/download/v%{version}/%{name}-native-%{version}.tar.gz.asc
+Source4:         https://maximbaz.com/pgp_keys.asc
 
-BuildRequires: jq
-BuildRequires: gnupg2
 
-%description %{common_description}
+BuildRequires:  jq
+BuildRequires:  gnupg2
+BuildRequires:  go-vendor-tools
+
+%description
+This is a host application for browserpass browser extension providing it
+access to your password store. The communication is handled through
+Native Messaging API.
 
 %package firefox
 Summary: Native component for the Firefox extension
@@ -49,19 +53,21 @@ Recommends: chromium
 %description chromium
 Browserpass native component for the Chromium extension
 
-%gopkg
 
 %prep
-%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
-%goprep
+%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}'
+%goprep -p1
+tar -xf %{S:1}
 
 %generate_buildrequires
-%go_generate_buildrequires
+%go_vendor_license_buildrequires -c %{S:2}
 
 %build
+%global gomodulesmode GO111MODULE=on
 %gobuild -o %{gobuilddir}/bin/browserpass-native %{goipath}
 
 %install
+%go_vendor_license_install -c %{S:2}
 install -m 0755 -vd                     %{buildroot}%{_bindir}
 install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 install -m 0755 -vd                     %{buildroot}%{native_mozpath}
@@ -69,13 +75,13 @@ jq '.path = "%{_bindir}/browserpass-native"' browser-files/firefox-host.json > %
 install -m 0755 -vd                     %{buildroot}%{native_chromepath}
 jq '.path = "%{_bindir}/browserpass-native"' browser-files/chromium-host.json > %{buildroot}%{native_chromepath}/%{native_id}.json
 
-%if %{with check}
 %check
-%gocheck
+%go_vendor_license_check -c %{S:2}
+%if %{with check}
+%gotest ./...
 %endif
 
-%files
-%license LICENSE
+%files -f %{go_vendor_license_filelist}
 %doc PROTOCOL.md README.md
 %{_bindir}/browserpass-native
 

diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml
new file mode 100644
index 0000000..6ab4062
--- /dev/null
+++ b/go-vendor-tools.toml
@@ -0,0 +1,4 @@
+[archive]
+
+[licensing]
+detector = "askalono"

diff --git a/sources b/sources
index 7ec1a6a..06dc5e9 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 SHA512 (browserpass-native-3.1.2.tar.gz) = d715897198776a9aac37578fedf39cb6a9353ef7cf8cd98d7264255db919a636816f721c3f4baed7fa3f4ceebc6cce59d775677bed4f5684fccb36cdc330a344
+SHA512 (browserpass-native-3.1.2-vendor.tar.bz2) = 13f8ad39ed88b6470985a58e466b5eb03310b303d165afee77782f50dc780969ad8605ededebccf80c08942454423c675f203f72586503923c44526effc22bd9

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-20 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 15:25 [rpms/browserpass] rawhide: Adopt Go Vendor Tools Mikel Olasagasti Uranga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox