## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-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*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 %bcond_without check # https://github.com/cli/cli %global forgeurl https://github.com/cli/cli %global goipath github.com/cli/cli/v2 Version: 2.14.2 %gometa %global goname gh %global common_description %{expand: GitHub’s official command line tool.} %global godevelheader %{expand: Obsoletes: golang-github-cli-devel < 2.4.0-3 } %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: GitHub’s official command line tool License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: git-core BuildRequires: sed Requires: git-core %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build export LDFLAGS="-X github.com/cli/cli/v2/internal/build.Version=%{version} \ -X github.com/cli/cli/v2/internal/build.Date=$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%d)" for cmd in cmd/%{name} cmd/gen-docs; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done # Generate manpages %{gobuilddir}/bin/gen-docs --man-page --doc-path ./share/man/man1 # Generate shell completions %{gobuilddir}/bin/%{name} completion -s bash > %{name}.bash %{gobuilddir}/bin/%{name} completion -s fish > %{name}.fish %{gobuilddir}/bin/%{name} completion -s zsh > %{name}.zsh %install %gopkginstall # We are deliberately excluding cmd/gen-docs. It is only needed for building. install -Dpm 0755 %{gobuilddir}/bin/%{name} -t %{buildroot}%{_bindir}/ # Install manpages install -Dpm 0644 ./share/man/man1/%{name}*.1 -t %{buildroot}%{_mandir}/man1/ # Install shell completions install -Dpm 0644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} install -Dpm 0644 %{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish install -Dpm 0644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name} %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}*1* %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/%{name} %dir %{_datadir}/fish %dir %{_datadir}/fish/vendor_completions.d %{_datadir}/fish/vendor_completions.d/%{name}.fish %dir %{_datadir}/zsh %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_%{name} %gopkgfiles %changelog * Fri Jul 15 2022 Mikel Olasagasti Uranga 2.14.2-1 - Update to 2.14.2 - Closes rhbz#2107394 * Thu Jul 14 2022 Mikel Olasagasti Uranga 2.14.1-1 - Update to 2.14.1 - Closes rhbz#2106552 * Sat Jul 09 2022 Maxwell G 2.13.0-3 - Rebuild for CVE-2022-{24675,28327,29526 in golang} * Sat Jul 09 2022 Maxwell G 2.13.0-2 - Rebuild for CVE-2022-{24675,28327,29526} in golang * Fri Jun 24 2022 Mikel Olasagasti Uranga 2.13.0-1 - Update to 2.13.0 - Closes rhbz#2100252 * Sat Jun 18 2022 Robert-André Mauchin 2.12.1-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 2.12.1-2 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Tue Jun 14 2022 Mikel Olasagasti Uranga 2.12.1-1 - Update to 2.12.1 - Closes rhbz#2095582 * Wed Jun 08 2022 Mikel Olasagasti Uranga 2.12.0-1 - Update to 2.12.0 - Closes rhbz#2095044 * Thu May 26 2022 Mikel Olasagasti Uranga 2.11.3-1 - Update to 2.11.3 - Closes rhbz#2090679 * Wed May 25 2022 Mikel Olasagasti Uranga 2.11.1-1 - Update to 2.11.1 - Closes rhbz#2090123 * Tue May 24 2022 Mikel Olasagasti Uranga 2.11.0-1 - Update to 2.11.0 - Closes rhbz#2089851 * Wed May 11 2022 Mikel Olasagasti Uranga 2.10.1-1 - Update to 2.10.1 - Closes rhbz#2084080 * Fri Apr 29 2022 Onuralp SEZER 2.9.0-1 - Update to 2.9.0 - Closes rhbz#2079112 * Sun Apr 17 2022 Mikel Olasagasti Uranga 2.8.0-1 - Update to 2.8.0 - Closes rhbz#2075721 * Sat Apr 16 2022 Fabio Alessandro Locati 2.7.0-2 - Rebuilt for CVE-2022-27191 * Wed Apr 06 2022 Mikel Olasagasti Uranga 2.7.0-1 - Update to 2.7.0 * Thu Mar 17 2022 Mikel Olasagasti Uranga 2.6.0-1 - Update to 2.6.0 * Wed Mar 02 2022 Mikel Olasagasti Uranga 2.5.2-1 - Update to 2.5.2 * Mon Feb 21 2022 Maxwell G 2.5.1-2 - Remove duplicate `BuildRequires: go-rpm-macros`. * Thu Feb 17 2022 Mikel Olasagasti Uranga 2.5.1-1 - Update to 2.5.1 * Thu Feb 03 2022 Maxwell G 2.5.0-2 - Fix forgeurl * Wed Feb 02 2022 Mikel Olasagasti Uranga 2.5.0-1 - Update to 2.5.0 * Sat Jan 29 2022 Maxwell G 2.4.0-7 - Fix ldflags and rebuild for new go-rpm-macros. * Tue Jan 25 2022 Mikel Olasagasti Uranga 2.4.0-6 - Fix test that fails with golang-1.18 - Closes rhbz#2045415 * Thu Jan 20 2022 Fedora Release Engineering 2.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 18 2022 sixg0000d 2.4.0-4 - Fix: generate correct shell completions * Wed Jan 12 2022 Maxwell G 2.4.0-3 - Fix %%%%goipath; generate manpages; fix dependencies * Thu Dec 30 2021 Mikel Olasagasti Uranga 2.4.0-1 - Update to 2.4.0. Closes rhbz#2034689 * Mon Dec 20 2021 Mikel Olasagasti Uranga 2.3.0-2 - Skip a failing test with golang-1.18 * Mon Dec 20 2021 Mikel Olasagasti Uranga 2.3.0-1 - Initial package - Fixes rhbz#2010367