## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; 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.9.0 %bcond_without check # https://github.com/browserpass/browserpass-native %global goipath github.com/browserpass/browserpass-native Version: 3.1.0 %global tag %{version} %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 URL: %{gourl} Source: %{gosource} Source: %{gourl}/releases/download/%{version}/%{name}-native-%{version}.tar.gz.asc Source: https://maximbaz.com/pgp_keys.asc BuildRequires: jq BuildRequires: gnupg2 %description %{common_description} %package firefox Summary: Native component for the Firefox extension Requires: %{name}%{?_isa} = %{version}-%{release} Requires: mozilla-filesystem Recommends: firefox %description firefox Browserpass native component for the Firefox extension %package chromium Summary: Native component for the Chromium extension Requires: %{name}%{?_isa} = %{version}-%{release} Recommends: chromium %description chromium Browserpass native component for the Chromium extension %gopkg %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %goprep %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/browserpass-native %{goipath} %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{native_mozpath} jq '.path = "%{_bindir}/browserpass-native"' browser-files/firefox-host.json > %{buildroot}%{native_mozpath}/%{native_id}.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 %endif %files %license LICENSE %doc PROTOCOL.md README.md %{_bindir}/browserpass-native %files firefox %{native_mozpath}/%{native_id}.json %files chromium %dir %{_sysconfdir}/chromium %dir %{native_chromepath} # plain %config used because it contains no user configurable entries %config %{native_chromepath}/%{native_id}.json %changelog ## START: Generated by rpmautospec * Fri Aug 15 2025 Maxwell G - 3.1.0-7 - Rebuild for golang-1.25.0 * Fri Aug 15 2025 Maxwell G - 3.1.0-6 - Revert "Rebuild for golang-1.25.0" * Fri Aug 15 2025 Maxwell G - 3.1.0-5 - Rebuild for golang-1.25.0 * Wed Jul 30 2025 Łukasz Wojniłowicz - 3.1.0-4 - Rebuild after the macros fix * Wed Jul 23 2025 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Mar 03 2025 Łukasz Wojniłowicz - 3.1.0-2 - Try to fix noarch build error * Mon Mar 03 2025 Łukasz Wojniłowicz - 3.1.0-1 - Initial import (fedora#2345961). ## END: Generated by rpmautospec