Use forge source

Canonical switched to GitHub as their "canonical" source for cloud-init
and the forge macros make RPM maintenance a little simpler.

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2023-04-28 08:24:38 -05:00
parent e02c303aee
commit 6b3daa415e
No known key found for this signature in database

View File

@ -1,11 +1,16 @@
Name: cloud-init
%global srcname cloud-init
%global forgeurl https://github.com/canonical/cloud-init
Version: 23.1.2
Release: 1%{?dist}
%global tag %{version}
%forgemeta
Name: %{srcname}
Release: 2%{?dist}
Summary: Cloud instance init scripts
License: ASL 2.0 or GPLv3
URL: http://launchpad.net/cloud-init
URL: %forgeurl
Source0: https://launchpad.net/cloud-init/trunk/%{version}/+download/%{name}-%{version}.tar.gz
Source0: %forgesource
Source1: cloud-init-tmpfiles.conf
# https://github.com/canonical/cloud-init/pull/2073
@ -85,7 +90,7 @@ ssh keys and to let the user run various scripts.
%prep
%autosetup -p1
%forgeautosetup -p1
# Change shebangs
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
@ -183,6 +188,9 @@ python3 -m pytest tests/unittests
%changelog
* Fri Apr 28 2023 Major Hayden <major@redhat.com> - 23.1.2-2
- Switch to forge source
* Thu Apr 27 2023 Major Hayden <major@redhat.com> - 23.1.2-1
- Update to 23.1.2
- Includes fix for CVE-2023-1786