# Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/openSUSE/transactional-update-notifier %global goipath github.com/openSUSE/transactional-update-notifier Version: 1.1.2 %gometa -L -f Name: transactional-update-notifier Release: %autorelease Summary: This tool can be used in conjunction with `transactional-update`'s notify method in order to notify all graphically logged in users about updates performed # Generated by go-vendor-tools License: BSD-2-Clause AND GPL-3.0-only URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description This tool can be used in conjunction with `transactional-update`'s notify method in order to notify all graphically logged in users about updates performed. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/transactional-update-notifier %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/transactional-update-notifier %changelog %autochangelog