📦 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:
parent
d88b3e84b6
commit
dd3bfed628
14
awscli.spec
14
awscli.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user