From dd3bfed62840d74a026f7fe678fb2e1983c63357 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 7 Jun 2021 15:57:59 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20Use=20forge=20macros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- awscli.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/awscli.spec b/awscli.spec index 2e014a6..f87a172 100644 --- a/awscli.spec +++ b/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