Created
October 28, 2019 20:12
-
-
Save raharper/b496c05343d8ac923eea36fd631a2512 to your computer and use it in GitHub Desktop.
cloud-init's el-release repository spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: cloud-init-el-release | |
Version: %{rhel} | |
Release: 2 | |
Summary: Cloud-init Enterprise Linux repository configuration | |
Group: System Environment/Base | |
License: GPLv2 | |
URL: http://download.fedoraproject.org/pub/epel | |
Source2: cloud-init-el-stable.repo.tmpl | |
Source3: cloud-init-el-testing.repo.tmpl | |
BuildArch: noarch | |
Requires: redhat-release >= %{version} | |
%description | |
This package contains the Cloud-init for Enterprise Linux repository | |
GPG key as well as configuration for yum. | |
%prep | |
%setup -q -c -T | |
install -pm 644 %{SOURCE2} . | |
install -pm 644 %{SOURCE3} . | |
%build | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
# yum | |
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d | |
for repo in %{SOURCE2} %{SOURCE3}; do | |
target=${repo%*.tmpl} | |
sed -e "s,{{DIST}},%{rhel},g" $repo > $target | |
install -pm 644 $target \ | |
$RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d | |
done | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%files | |
%defattr(-,root,root,-) | |
%config(noreplace) /etc/yum.repos.d/* | |
%changelog | |
* Mon Oct 28 2019 Ryan Harper <ryan.harper@canonical.com> - 8-0.2 | |
- Replace hard-coded Version with rpm macro for release major value. | |
* Thu Oct 25 2019 Ryan Harper <ryan.harper@canonical.com> - 8-0.1 | |
- initial cloud-init-el-release 8 build. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment