## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## RPMAUTOSPEC: autorelease, autochangelog %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.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 %{_prefix}/%{_lib}/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} Name: browserpass Release: %autorelease -b 2 Summary: Browserpass native client app License: ISC URL: %{gourl} Source: %{gourl}/releases/download/%{version}/%{name}-native-%{version}-src.tar.gz Source: %{gourl}/releases/download/%{version}/%{name}-native-%{version}-src.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 BuildArch: noarch Requires: %{name} = %{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 BuildArch: noarch Requires: %{name} = %{version}-%{release} # Note: we probably should need/require an hypothetical `chromium-filesystem` Recommends: chromium %description chromium Browserpass native component for the Chromium extension %gopkg %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %goprep %autopatch -p1 %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} %{native_chromepath}/%{native_id}.json %changelog ## START: Generated by rpmautospec * Sun Nov 12 2023 Antoine Damhet - 3.1.0-7 - own chromium native-messaging hosts directory * Sun Nov 12 2023 Antoine Damhet - 3.1.0-6 - verify upstream source gpg signature * Tue Oct 24 2023 Antoine Damhet - 3.1.0-5 - gitignore: ignore `noarch/` directory * Mon Oct 23 2023 Antoine Damhet - 3.1.0-4 - browserpass-{firefox,chromium} are architecture intependent * Mon Oct 23 2023 Antoine Damhet - 3.1.0-3 - browserpass-firefox: require `mozilla-filesystem` wich owns the `native- messaging-hosts` directory * Thu Oct 19 2023 Antoine Damhet - 3.1.0-2 - Add chromium support - Rework package with `go2rpm` + respect packaging guidelines * Sun Oct 8 2023 Antoine Damhet - 3.1.0-1 - Bump to 3.1.0 * Sun May 9 2021 Antoine Damhet - 3.0.7-1 - First package for Fedora ## END: Generated by rpmautospec