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:
parent
e02c303aee
commit
6b3daa415e
@ -1,11 +1,16 @@
|
|||||||
Name: cloud-init
|
%global srcname cloud-init
|
||||||
|
%global forgeurl https://github.com/canonical/cloud-init
|
||||||
Version: 23.1.2
|
Version: 23.1.2
|
||||||
Release: 1%{?dist}
|
%global tag %{version}
|
||||||
|
%forgemeta
|
||||||
|
|
||||||
|
Name: %{srcname}
|
||||||
|
Release: 2%{?dist}
|
||||||
Summary: Cloud instance init scripts
|
Summary: Cloud instance init scripts
|
||||||
License: ASL 2.0 or GPLv3
|
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
|
Source1: cloud-init-tmpfiles.conf
|
||||||
|
|
||||||
# https://github.com/canonical/cloud-init/pull/2073
|
# https://github.com/canonical/cloud-init/pull/2073
|
||||||
@ -85,7 +90,7 @@ ssh keys and to let the user run various scripts.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%forgeautosetup -p1
|
||||||
|
|
||||||
# Change shebangs
|
# Change shebangs
|
||||||
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
|
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
|
||||||
@ -183,6 +188,9 @@ python3 -m pytest tests/unittests
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Apr 27 2023 Major Hayden <major@redhat.com> - 23.1.2-1
|
||||||
- Update to 23.1.2
|
- Update to 23.1.2
|
||||||
- Includes fix for CVE-2023-1786
|
- Includes fix for CVE-2023-1786
|
||||||
|
Loading…
Reference in New Issue
Block a user