## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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.10.0 %bcond_without check %global major 1 %global minor 103 %global patchlevel 0 # https://github.com/digitalocean/doctl %global goipath github.com/digitalocean/doctl Version: 1.103.0 %gometa -L -f %global goname doctl %global common_description %{expand: The official command line interface for the DigitalOcean API.} %global golicenses LICENSE.txt %global godocs CONTRIBUTING.md CHANGELOG.md README.md Name: doctl Release: %autorelease Summary: The official command line interface for the DigitalOcean API License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 # remove integration tests to avoid extra deps rm -rf integration %generate_buildrequires %go_generate_buildrequires %build export LDFLAGS="-X github.com/digitalocean/doctl.Major=%{major} \ -X github.com/digitalocean/doctl.Minor=%{minor} \ -X github.com/digitalocean/doctl.Patch=%{patchlevel} \ -X github.com/digitalocean/doctl.Label=Fedora" %gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{name} %{gobuilddir}/bin/%{name} completion bash > %{name}.bash %{gobuilddir}/bin/%{name} completion fish > %{name}.fish %{gobuilddir}/bin/%{name} completion zsh > %{name}.zsh %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish install -Dpm 0644 %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name} %if %{with check} %check for test in "TestRunAppsDevConfigSet" "TestRunAppsDevConfigUnset" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files %license LICENSE.txt %doc CONTRIBUTING.md CHANGELOG.md README.md %{_bindir}/* %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %gopkgfiles %changelog * Fri Jan 19 2024 Mikel Olasagasti Uranga - 1.103.0-1 - Update to 1.103.0 - Closes rhbz#2259100 * Sun Dec 31 2023 Mikel Olasagasti Uranga - 1.102.0-1 - Update to 1.102.0 - Closes rhbz#2255468 rhbz#2255083 * Sat Dec 09 2023 Mikel Olasagasti Uranga - 1.101.0-1 - Update to 1.101.0 - Closes rhbz#2253730 rhbz#2248265 * Wed Oct 18 2023 Mikel Olasagasti Uranga - 1.100.0-1 - Update to 1.100.0 - Closes rhbz#2244874 * Sun Sep 24 2023 Mikel Olasagasti Uranga - 1.99.0-1 - Update to 1.99.0 - Closes rhbz#2234371 * Tue Aug 22 2023 Mikel Olasagasti Uranga - 1.98.0-1 - Update to 1.98.0 - Closes rhbz#2232793 * Wed Jul 19 2023 Mikel Olasagasti Uranga - 1.97.1-1 - Update to 1.97.1 - Closes rhbz#2223975 * Fri Jul 07 2023 Mikel Olasagasti Uranga - 1.97.0-1 - Update to 1.97.0 - Closes rhbz#2220993 * Sat May 20 2023 Mikel Olasagasti Uranga - 1.96.0-1 - Update to 1.96.0 - Closes rhbz#2208751 * Tue May 16 2023 Mikel Olasagasti Uranga - 1.95.0-1 - Update to 1.95.0 - Closes rhbz#2207784 * Thu Apr 27 2023 Mikel Olasagasti Uranga - 1.94.0-1 - Update 1.94.0 - Closes rhbz#2190034 * Wed Apr 12 2023 Mikel Olasagasti Uranga - 1.93.1-2 - Skip integration tests * Fri Mar 10 2023 Mikel Olasagasti Uranga - 1.93.1-1 - Update to 1.93.1 - Closes rhbz#2176716 * Sun Feb 26 2023 Mikel Olasagasti Uranga - 1.92.1-1 - Update to 1.92.1 - Closes rhbz#2166327 * Thu Jan 19 2023 Fedora Release Engineering - 1.92.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jan 13 2023 Mikel Olasagasti Uranga - 1.92.0-1 - Update to 1.92.0 - Closes rhbz#2128574 * Fri Dec 16 2022 Mikel Olasagasti Uranga - 1.79.0-2 - Rebuild to fix FTBFS * Thu Aug 18 2022 Mikel Olasagasti Uranga - 1.79.0-1 - Update to 1.79.0 - Closes rhbz#2118787 * Wed Aug 10 2022 Maxwell G - 1.78.0-4 - Rebuild to fix FTBFS * Thu Jul 21 2022 Fedora Release Engineering - 1.78.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 1.78.0-2 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jul 02 2022 Mikel Olasagasti Uranga - 1.78.0-1 - Update to 1.78.0 - Closes rhbz#2102839 * Sat Jun 18 2022 Robert-André Mauchin - 1.77.0-3 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Fri Jun 17 2022 Robert-André Mauchin - 1.77.0-2 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Fri Jun 17 2022 Mikel Olasagasti Uranga - 1.77.0-1 - Update to 1.77.0 - Closes rhbz#2097856 * Fri May 27 2022 Mikel Olasagasti Uranga - 1.76.2-1 - Update to 1.76.2 - Closes rhbz#2091047 * Tue May 24 2022 Mikel Olasagasti Uranga - 1.76.0-1 - Update to 1.76.0 - Closes rhbz#2089560 * Wed May 11 2022 Mikel Olasagasti Uranga - 1.75.0-1 - Update to 1.75.0 - Closes rhbz#2083928 * Wed May 04 2022 Mikel Olasagasti Uranga - 1.74.0-1 - Update to 1.74.0 - Closes rhbz#2079077 * Sat Apr 16 2022 Fabio Alessandro Locati - 1.73.0-2 - Rebuilt for CVE-2022-27191 * Sat Apr 02 2022 Mikel Olasagasti Uranga - 1.73.0-1 - Update to 1.73.0 - Closes rhbz#2070798 * Tue Mar 29 2022 Mikel Olasagasti Uranga - 1.72.0-1 - Update to 1.72.0 - Closes rhbz#2069556 * Thu Mar 17 2022 Mikel Olasagasti Uranga - 1.71.1-1 - Update to 1.71.1 - Closes rhbz#2064983 * Mon Mar 14 2022 Mikel Olasagasti Uranga - 1.71.0-1 - Update to 1.71.0 - Closes rhbz#2064046 * Fri Jan 28 2022 Mikel Olasagasti Uranga - 1.70.0-1 - Update to 1.70.0 - Closes rhbz#2047704 * Thu Jan 20 2022 Fedora Release Engineering - 1.69.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 15 2022 Mikel Olasagasti Uranga - 1.69.0-1 - Update to 1.69.0 - Closes rhbz#2041008 * Thu Dec 09 2021 Mikel Olasagasti Uranga - 1.68.0-1 - Update to 1.68 and set global goname * Thu Oct 07 2021 Mikel Olasagasti Uranga - 1.66.0-1 - Update to 1.66.0 (BZ #2019416) * Thu Oct 07 2021 Mikel Olasagasti Uranga - 1.65.0-1 - Update to 1.65.0 (BZ #2011675) * Mon Sep 20 2021 Mikel Olasagasti Uranga - 1.64.0-3 - Add build version flags * Sun Sep 05 2021 Mikel Olasagasti Uranga - 1.64.0-2 - Add bash, fish and zsh completions * Fri Sep 03 2021 Mikel Olasagasti Uranga - 1.64.0-1 - Initial package