2020-10-30 14:42:20 +00:00
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
%global crate bootupd
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2024-02-22 18:17:41 +00:00
|
|
|
Version: 0.2.18
|
2023-12-19 13:09:02 +00:00
|
|
|
Release: 1%{?dist}
|
2020-10-30 14:42:20 +00:00
|
|
|
Summary: Bootloader updater
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://crates.io/crates/bootupd
|
2022-08-01 14:47:47 +00:00
|
|
|
Source0: https://github.com/coreos/bootupd/releases/download/v%{version}/bootupd-%{version}.crate
|
2023-10-20 20:37:48 +00:00
|
|
|
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.zstd
|
2020-10-30 14:42:20 +00:00
|
|
|
|
2024-02-22 18:17:41 +00:00
|
|
|
Patch0: 0001-grub2-source-in-a-console.cfg-file-if-exists.patch
|
|
|
|
|
2022-01-14 17:51:39 +00:00
|
|
|
BuildRequires: make
|
2020-10-30 14:42:20 +00:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
%else
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%endif
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
Bootloader updater}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
License: ASL 2.0
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/bootupctl
|
|
|
|
%{_libexecdir}/bootupd
|
|
|
|
%{_unitdir}/*
|
2023-12-15 03:08:19 +00:00
|
|
|
%{_prefix}/lib/bootupd/grub2-static/
|
2020-10-30 14:42:20 +00:00
|
|
|
|
|
|
|
%prep
|
2020-11-02 23:26:01 +00:00
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
2023-09-19 21:46:04 +00:00
|
|
|
tar -xv -f %{SOURCE1}
|
2020-11-02 23:26:01 +00:00
|
|
|
mkdir -p .cargo
|
|
|
|
cat >.cargo/config << EOF
|
|
|
|
[source.crates-io]
|
|
|
|
replace-with = "vendored-sources"
|
2020-10-30 14:42:20 +00:00
|
|
|
|
2020-11-02 23:26:01 +00:00
|
|
|
[source.vendored-sources]
|
|
|
|
directory = "vendor"
|
|
|
|
EOF
|
2020-10-30 14:42:20 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install INSTALL="install -p -c"
|
2023-12-15 03:08:19 +00:00
|
|
|
make install-grub-static DESTDIR=%{?buildroot} INSTALL="%{__install} -p"
|
2020-10-30 14:42:20 +00:00
|
|
|
|
|
|
|
%post -n %{crate}
|
|
|
|
%systemd_post bootupd.service bootupd.socket
|
|
|
|
|
|
|
|
%preun -n %{crate}
|
|
|
|
%systemd_preun bootupd.service bootupd.socket
|
|
|
|
|
|
|
|
%postun -n %{crate}
|
|
|
|
%systemd_postun bootupd.service bootupd.socket
|
|
|
|
|
|
|
|
%changelog
|
2024-02-22 18:17:41 +00:00
|
|
|
* Thu Feb 22 2024 Joseph Marrero <jmarrero@fedoraproject.org> - 0.2.18-1
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.18
|
|
|
|
backport patch to support GRUB console.cfg
|
|
|
|
Resolves: RHEL-26439
|
|
|
|
|
2023-12-19 13:09:02 +00:00
|
|
|
* Tue Dec 19 2023 Joseph Marrero <jmarrero@fedoraproject.org> - 0.2.17-1
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.17
|
|
|
|
Resolves: RHEL-14388
|
|
|
|
|
|
|
|
* Fri Dec 15 2023 Huijing Hei <hhei@redhat.com> - 0.2.16-4
|
2023-12-15 03:08:19 +00:00
|
|
|
- Sync spec with upstream
|
|
|
|
Related: https://issues.redhat.com/browse/RHEL-14388
|
|
|
|
|
2023-12-13 23:21:35 +00:00
|
|
|
* Wed Dec 13 2023 Colin Walters <walters@verbum.org> - 0.2.16-3
|
|
|
|
- Build on all architectures
|
|
|
|
Related: https://issues.redhat.com/browse/RHEL-14388
|
|
|
|
|
2023-12-13 18:51:09 +00:00
|
|
|
* Wed Dec 13 2023 Colin Walters <walters@verbum.org> - 0.2.16-2
|
|
|
|
- Update to 0.2.16
|
|
|
|
Related: https://issues.redhat.com/browse/RHEL-14388
|
|
|
|
|
2023-11-28 19:05:41 +00:00
|
|
|
* Tue Nov 28 2023 Colin Walters <walters@verbum.org> - 0.2.15-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.15
|
|
|
|
Related: https://issues.redhat.com/browse/RHEL-14388
|
|
|
|
|
2023-10-20 20:37:48 +00:00
|
|
|
* Fri Oct 20 2023 Colin Walters <walters@verbum.org> - 0.2.12-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.12
|
|
|
|
|
2023-09-19 21:46:04 +00:00
|
|
|
* Tue Sep 19 2023 Colin Walters <walters@verbum.org> - 0.2.11-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.11
|
|
|
|
Resolves: https://issues.redhat.com/browse/RHEL-5273
|
|
|
|
|
2022-08-01 14:47:47 +00:00
|
|
|
* Mon Aug 01 2022 Colin Walters <walters@verbum.org> - 0.2.7-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.7
|
|
|
|
|
2022-01-14 17:51:39 +00:00
|
|
|
* Thu Sep 16 2021 Luca BRUNO <lucab@lucabruno.net> - 0.2.6-1
|
|
|
|
- New upstream version
|
|
|
|
https://github.com/coreos/bootupd/releases/tag/v0.2.6
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-06 15:18:45 +00:00
|
|
|
* Wed Jan 6 14:48:03 UTC 2021 Colin Walters <walters@verbum.org> - 0.2.5-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.5
|
|
|
|
|
2020-12-16 21:52:20 +00:00
|
|
|
* Tue Dec 15 14:48:20 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.4-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.4
|
|
|
|
|
2020-11-20 12:41:52 +00:00
|
|
|
* Tue Nov 17 14:33:06 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.3-2
|
|
|
|
- https://github.com/coreos/rpm-ostree/bootupd/tag/v0.2.3
|
|
|
|
|
2020-11-11 18:53:29 +00:00
|
|
|
* Wed Nov 11 18:07:38 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.2-2
|
|
|
|
- Update to 0.2.2
|
|
|
|
|
2020-11-02 23:26:01 +00:00
|
|
|
* Mon Nov 2 23:03:03 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.0-3
|
|
|
|
- Switch to vendored sources since RHEL requires it
|
|
|
|
|
2020-10-30 14:42:20 +00:00
|
|
|
* Mon Oct 26 15:06:37 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.0-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.0
|
|
|
|
|
|
|
|
* Tue Oct 13 2020 Colin Walters <walters@verbum.org> - 0.1.3-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.1.3
|
|
|
|
|
|
|
|
* Tue Sep 22 2020 Colin Walters <walters@verbum.org> - 0.1.2-2
|
|
|
|
- New upstream
|
|
|
|
|
|
|
|
* Mon Sep 21 2020 Colin Walters <walters@verbum.org> - 0.1.1-2
|
|
|
|
- Also build on aarch64
|
|
|
|
|
|
|
|
* Fri Sep 11 2020 Colin Walters <walters@verbum.org> - 0.1.0-3
|
|
|
|
- Initial package
|
|
|
|
|