📦 Use forge macros

The forge macros are recommended in the packaging guide and making this
change now would make it a little easier when doing the work to move to
awscli-v2.

Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
Major Hayden 2021-06-07 15:57:59 -05:00
parent d88b3e84b6
commit dd3bfed628
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -1,14 +1,18 @@
# NOTE(mhayden): The package is awscli, but the source is aws-cli.
%define source_name aws-cli
%global source_name aws-cli
%global forgeurl https://github.com/aws/aws-cli/
Version: 1.19.89
%global tag %{version}
%forgemeta
Name: awscli
Version: 1.19.89
Release: 1%{?dist}
Summary: Universal Command Line Environment for AWS
License: ASL 2.0 and MIT
URL: https://aws.amazon.com/cli/
Source0: https://github.com/aws/aws-cli/archive/%{version}/%{name}-%{version}.tar.gz
URL: %forgeurl
Source0: %forgesource
BuildArch: noarch
BuildRequires: python3-colorama
@ -36,7 +40,7 @@ This package provides a unified
command line interface to Amazon Web Services.
%prep
%autosetup -n %{source_name}-%{version} -p 1
%forgesetup
find awscli/examples/ -type f -name '*.rst' -executable -exec chmod -x '{}' +
# https://github.com/aws/aws-cli/issues/4837