2020-09-18 18:14:18 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global crate bootupd
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2023-10-20 17:05:26 +00:00
|
|
|
Version: 0.2.12
|
2023-10-23 19:31:42 +00:00
|
|
|
Release: 4%{?dist}
|
2020-09-18 18:14:18 +00:00
|
|
|
Summary: Bootloader updater
|
|
|
|
|
2023-09-30 13:16:02 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/coreos/bootupd
|
|
|
|
Source0: %{url}/releases/download/v%{version}/bootupd-%{version}.crate
|
2023-10-20 17:05:26 +00:00
|
|
|
Source1: %{url}/releases/download/v%{version}/bootupd-%{version}-vendor.tar.zstd
|
2020-09-18 18:14:18 +00:00
|
|
|
|
|
|
|
# For now, see upstream
|
2023-10-06 20:10:52 +00:00
|
|
|
ExclusiveArch: x86_64 aarch64 ppc64le
|
2021-01-11 19:38:35 +00:00
|
|
|
BuildRequires: make
|
2020-09-18 18:14:18 +00:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
%else
|
2023-09-30 13:16:02 +00:00
|
|
|
BuildRequires: cargo-rpm-macros >= 25
|
2020-09-18 18:14:18 +00:00
|
|
|
%endif
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
Bootloader updater}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
2023-09-30 13:16:02 +00:00
|
|
|
# Apache-2.0
|
|
|
|
# Apache-2.0 OR BSL-1.0
|
|
|
|
# Apache-2.0 OR MIT
|
|
|
|
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
|
|
|
|
# BSD-3-Clause
|
|
|
|
# MIT
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
# Unlicense OR MIT
|
|
|
|
License: Apache-2.0 AND BSD-3-Clause AND MIT AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
|
2020-09-18 18:14:18 +00:00
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
2023-09-30 13:16:02 +00:00
|
|
|
%license LICENSE.dependencies
|
|
|
|
%license cargo-vendor.txt
|
2020-09-18 18:14:18 +00:00
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/bootupctl
|
2020-10-13 19:46:26 +00:00
|
|
|
%{_libexecdir}/bootupd
|
2020-09-18 18:14:18 +00:00
|
|
|
%{_unitdir}/*
|
2023-10-23 19:31:42 +00:00
|
|
|
%{_prefix}/lib/bootupd/grub2-static/
|
2020-09-18 18:14:18 +00:00
|
|
|
|
|
|
|
%prep
|
2023-09-30 13:16:02 +00:00
|
|
|
%autosetup -n %{crate}-%{version} -p1 -a1
|
|
|
|
%cargo_prep -v vendor
|
2020-09-18 18:14:18 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
2023-09-30 13:16:02 +00:00
|
|
|
%cargo_vendor_manifest
|
|
|
|
%cargo_license_summary
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
2020-09-18 18:14:18 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install INSTALL="install -p -c"
|
2023-10-23 19:31:42 +00:00
|
|
|
%{__make} install-grub-static DESTDIR=%{?buildroot} INSTALL="%{__install} -p"
|
2020-09-18 18:14:18 +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
|
2023-10-23 19:31:42 +00:00
|
|
|
* Mon Oct 23 2023 Colin Walters <walters@verbum.org> - 0.2.12-4
|
|
|
|
- Install static configs
|
|
|
|
|
2023-10-20 17:05:26 +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-10-06 20:10:52 +00:00
|
|
|
* Fri Oct 06 2023 Colin Walters <walters@verbum.org> - 0.2.11-5
|
|
|
|
- Enable ppc64le, it is supported now
|
|
|
|
|
2023-09-30 13:16:02 +00:00
|
|
|
* Sat Sep 30 2023 Fabio Valentini <decathorpe@gmail.com> - 0.2.11-4
|
|
|
|
- Updates for the latest Rust packaging and license tag / SPDX guidelines.
|
|
|
|
|
2023-09-19 20:55:46 +00:00
|
|
|
* Tue Sep 19 2023 Colin Walters <walters@verbum.org> - 0.2.11-3
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.11
|
|
|
|
|
2023-09-11 22:21:33 +00:00
|
|
|
* Mon Sep 11 2023 Colin Walters <walters@verbum.org> - 0.2.10-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.10
|
|
|
|
|
2023-07-21 19:14:30 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2022-10-18 16:55:10 +00:00
|
|
|
* Tue Oct 18 2022 Colin Walters <walters@verbum.org> - 0.2.8-3
|
|
|
|
- Update to v0.2.8
|
|
|
|
|
2022-07-29 14:42:50 +00:00
|
|
|
* Fri Jul 29 2022 Colin Walters <walters@verbum.org> - 0.2.7-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.2.7
|
|
|
|
|
2022-07-23 03:01:24 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-02-15 15:31:30 +00:00
|
|
|
* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.6-4
|
|
|
|
- Rebuild with package notes
|
|
|
|
|
2022-02-15 15:31:27 +00:00
|
|
|
* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.6-3
|
|
|
|
- Rebuild with package notes
|
|
|
|
|
2022-01-21 19:55:33 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-09-16 10:40:04 +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
|
|
|
|
|
2021-09-14 17:14:10 +00:00
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.2.5-5
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
2021-07-23 13:22:43 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-27 17:00:23 +00:00
|
|
|
* 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 14:50:09 +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-15 14:54:29 +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-11 18:17: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:07:49 +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:02:31 +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-26 15:07:02 +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
|
|
|
|
|
2020-10-13 18:22:45 +00:00
|
|
|
* Tue Oct 13 2020 Colin Walters <walters@verbum.org> - 0.1.3-2
|
|
|
|
- https://github.com/coreos/bootupd/releases/tag/v0.1.3
|
|
|
|
|
2020-09-22 14:30:19 +00:00
|
|
|
* Tue Sep 22 2020 Colin Walters <walters@verbum.org> - 0.1.2-2
|
|
|
|
- New upstream
|
|
|
|
|
2020-09-21 13:43:38 +00:00
|
|
|
* Mon Sep 21 2020 Colin Walters <walters@verbum.org> - 0.1.1-2
|
|
|
|
- Also build on aarch64
|
|
|
|
|
2020-09-18 18:14:18 +00:00
|
|
|
* Fri Sep 11 2020 Colin Walters <walters@verbum.org> - 0.1.0-3
|
|
|
|
- Initial package
|
|
|
|
|