## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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.17.1 %bcond check 1 # https://github.com/dundee/gdu %global goipath github.com/dundee/gdu/v5 Version: 5.31.0 %gometa -L -f Name: gdu Release: %autorelease Summary: Fast disk usage analyzer with console interface written in Go # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description Fast disk usage analyzer with console interface written in Go. %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 export GO_LDFLAGS="-X %{goipath}/build.Version=%{version} \ -X %{goipath}/build.Time=$SOURCE_DATE_EPOCH \ -X %{goipath}/build.User=$USER" %gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{name} %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}%{_mandir}/man1 install -m 0644 -vp gdu.1 %{buildroot}%{_mandir}/man1/ %check %go_vendor_license_check -c %{S:2} %if %{with check} for test in "TestAnalyzePathWithIgnoring" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc docs README.md configuration.md %{_bindir}/gdu %{_mandir}/man1/gdu.1* %changelog ## START: Generated by rpmautospec * Fri Aug 29 2025 Mikel Olasagasti Uranga - 5.31.0-1 - Update to 5.31.0 - Closes rhbz#2370708 rhbz#2391602 * Fri Aug 15 2025 Maxwell G - 5.30.1-6 - Rebuild for golang-1.25.0 * Fri Aug 15 2025 Maxwell G - 5.30.1-5 - Revert "Rebuild for golang-1.25.0" * Fri Aug 15 2025 Maxwell G - 5.30.1-4 - Rebuild for golang-1.25.0 * Wed Jul 23 2025 Fedora Release Engineering - 5.30.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jan 16 2025 Fedora Release Engineering - 5.30.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Dec 31 2024 Alexey Lunev - 5.30.1-1 - Update to 5.30.1 (rhbz#2335011) * Sun Nov 10 2024 Alexey Lunev - 5.29.0-1 - Initial import (Closes rhbz#2314746) ## END: Generated by rpmautospec