|
|
|
@ -0,0 +1,105 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.3.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 4;
|
|
|
|
|
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.10.0
|
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
# https://github.com/mvdan/gofumpt
|
|
|
|
|
%global goipath mvdan.cc/gofumpt
|
|
|
|
|
%global forgeurl https://github.com/mvdan/gofumpt
|
|
|
|
|
Version: 0.5.0
|
|
|
|
|
|
|
|
|
|
%gometa -f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
|
A stricter gofmt.}
|
|
|
|
|
|
|
|
|
|
%global golicenses LICENSE LICENSE.google
|
|
|
|
|
%global godocs CHANGELOG.md README.md
|
|
|
|
|
|
|
|
|
|
Name: golang-mvdan-gofumpt
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: A stricter gofmt
|
|
|
|
|
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: %{gourl}
|
|
|
|
|
Source: %{gosource}
|
|
|
|
|
|
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
%gopkg
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%goprep
|
|
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%go_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%gobuild -o %{gobuilddir}/bin/gofumpt %{goipath}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%gopkginstall
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
# FAIL: testdata/script/diagnose.txtar:9
|
|
|
|
|
rm -rf testdata/script/diagnose.txtar
|
|
|
|
|
%check
|
|
|
|
|
%gocheck
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE LICENSE.google
|
|
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
|
%{_bindir}/gofumpt
|
|
|
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Apr 22 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> 0.5.0-4
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
* Wed Dec 13 2023 Mikel Olasagasti Uranga <mikel@olasagasti.info>
|
|
|
|
|
- Update to 0.5.0 - Closes rhbz#2130893
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Aug 29 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.3.1-1
|
|
|
|
|
- Update to 0.3.1 - Close: rhbz#2066454
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.3.0-1
|
|
|
|
|
- Update to 0.3.0 (fix FTBFS) Close: rhbz#1963580 Close: rhbz#2045652
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 13 22:10:18 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 0.1.0-1
|
|
|
|
|
- Update to 0.1.0
|
|
|
|
|
|
|
|
|
|
* Fri Sep 18 03:29:15 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20200918gitab5a819
|
|
|
|
|
- Initial package
|
|
|
|
|
|