📦 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.
|
# 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
|
Name: awscli
|
||||||
Version: 1.19.89
|
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Universal Command Line Environment for AWS
|
Summary: Universal Command Line Environment for AWS
|
||||||
|
|
||||||
License: ASL 2.0 and MIT
|
License: ASL 2.0 and MIT
|
||||||
URL: https://aws.amazon.com/cli/
|
URL: %forgeurl
|
||||||
Source0: https://github.com/aws/aws-cli/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %forgesource
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-colorama
|
BuildRequires: python3-colorama
|
||||||
@ -36,7 +40,7 @@ This package provides a unified
|
|||||||
command line interface to Amazon Web Services.
|
command line interface to Amazon Web Services.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{source_name}-%{version} -p 1
|
%forgesetup
|
||||||
find awscli/examples/ -type f -name '*.rst' -executable -exec chmod -x '{}' +
|
find awscli/examples/ -type f -name '*.rst' -executable -exec chmod -x '{}' +
|
||||||
|
|
||||||
# https://github.com/aws/aws-cli/issues/4837
|
# https://github.com/aws/aws-cli/issues/4837
|
||||||
|
Loading…
Reference in New Issue
Block a user