## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: amazon-ec2-utils Version: 2.2.0 Release: %autorelease Summary: Utilities and settings for Amazon EC2 License: MIT AND CC-BY-SA-4.0 URL: https://github.com/amazonlinux/%{name}/ Source0: %{url}/archive/refs/tags/v%{version}.tar.gz # Skip the EBS udev rules as they create invalid symlinks. # See RHBZ#2284397 for more details. Patch0: remove-EBS-udev-rules.patch BuildArch: noarch Requires: curl Requires: python3 BuildRequires: python3-devel BuildRequires: systemd-rpm-macros # ec2-metadata was once provided directly from a page on the AWS website, # but an updated and maintained version is now offered in this package. ✨ Provides: ec2-metadata = %{version}-%{release} Obsoletes: ec2-metadata <= 0.1.3 %description Contains a set of utilities and settings for Linux deployments in EC2. %prep %autosetup -p1 -n %{name}-%{version} %build # Nothing to build for this package. %install # Install regular udev rules for EC2 instances. install -d -m 0755 %{buildroot}%{_udevrulesdir}/ install -p -m 0644 51-ec2-hvm-devices.rules %{buildroot}%{_udevrulesdir}/ install -p -m 0644 51-ec2-xen-vbd-devices.rules %{buildroot}%{_udevrulesdir}/ install -p -m 0644 53-ec2-read-ahead-kb.rules %{buildroot}%{_udevrulesdir}/ install -p -m 0644 70-ec2-nvme-devices.rules %{buildroot}%{_udevrulesdir}/ # The rules for cdrom are meant to override existing systemd udev rules. install -d -m 0755 %{buildroot}%{_sysconfdir}/udev/rules.d/ install -p -m 0644 60-cdrom_id.rules %{buildroot}%{_sysconfdir}/udev/rules.d/ # Some executables are meant for all users. install -d -m 0755 %{buildroot}%{_bindir} install -p -m 0755 ec2-metadata %{buildroot}%{_bindir} # Other executables are meant only for root. install -d -m 0755 %{buildroot}%{_sbindir} install -p -m 0755 ec2udev-vbd %{buildroot}%{_sbindir} install -p -m 0755 ebsnvme-id %{buildroot}%{_sbindir} install -p -m 0755 ec2nvme-nsid %{buildroot}%{_sbindir} # 📚 Documentation install -d -m 0755 %{buildroot}%{_mandir}/man8/ install -p -m 0644 doc/ebsnvme-id.8 %{buildroot}%{_mandir}/man8/ install -p -m 0644 doc/ec2-metadata.8 %{buildroot}%{_mandir}/man8/ %files %license LICENSE %doc CODE_OF_CONDUCT.md CONTRIBUTING.md NOTICE README.md %{_bindir}/ec2-metadata %{_sbindir}/ebsnvme-id %{_sbindir}/ec2nvme-nsid %{_sbindir}/ec2udev-vbd %{_mandir}/man8/ebsnvme-id.8* %{_mandir}/man8/ec2-metadata.8* %{_udevrulesdir}/51-ec2-hvm-devices.rules %{_udevrulesdir}/51-ec2-xen-vbd-devices.rules %{_udevrulesdir}/53-ec2-read-ahead-kb.rules %{_udevrulesdir}/70-ec2-nvme-devices.rules %{_sysconfdir}/udev/rules.d//60-cdrom_id.rules %changelog ## START: Generated by rpmautospec * Mon Sep 23 2024 Major Hayden - 2.2.0-5 - Remove EBS udev rules rhbz#2284397 * Wed Jul 17 2024 Fedora Release Engineering - 2.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed May 08 2024 Major Hayden - 2.2.0-3 - Ensure packit runs on epel9 * Wed May 08 2024 Major Hayden - 2.2.0-2 - Add packit config * Wed May 08 2024 Major Hayden - 2.2.0-1 - Initial import rhbz#2278626 ## END: Generated by rpmautospec