|
|
9bfc90 |
%bcond_without check
|
|
|
9bfc90 |
%global __cargo_skip_build 0
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%global crate bootupd
|
|
|
9bfc90 |
|
|
|
9bfc90 |
Name: rust-%{crate}
|
|
|
3f1ffd |
Version: 0.2.7
|
|
|
3f1ffd |
Release: 2%{?dist}
|
|
|
9bfc90 |
Summary: Bootloader updater
|
|
|
9bfc90 |
|
|
|
9bfc90 |
License: ASL 2.0
|
|
|
9bfc90 |
URL: https://crates.io/crates/bootupd
|
|
|
3f1ffd |
Source0: https://github.com/coreos/bootupd/releases/download/v%{version}/bootupd-%{version}.crate
|
|
|
9bfc90 |
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
|
|
9bfc90 |
|
|
|
9bfc90 |
# For now, see upstream
|
|
|
9bfc90 |
ExclusiveArch: x86_64 aarch64
|
|
|
9bfc90 |
BuildRequires: make
|
|
|
9bfc90 |
BuildRequires: openssl-devel
|
|
|
9bfc90 |
%if 0%{?rhel} && !0%{?eln}
|
|
|
9bfc90 |
BuildRequires: rust-toolset
|
|
|
9bfc90 |
%else
|
|
|
9bfc90 |
BuildRequires: rust-packaging
|
|
|
9bfc90 |
%endif
|
|
|
9bfc90 |
BuildRequires: systemd
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%global _description %{expand:
|
|
|
9bfc90 |
Bootloader updater}
|
|
|
9bfc90 |
%description %{_description}
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%package -n %{crate}
|
|
|
9bfc90 |
Summary: %{summary}
|
|
|
9bfc90 |
License: ASL 2.0
|
|
|
9bfc90 |
%{?systemd_requires}
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%description -n %{crate} %{_description}
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%files -n %{crate}
|
|
|
9bfc90 |
%license LICENSE
|
|
|
9bfc90 |
%doc README.md
|
|
|
9bfc90 |
%{_bindir}/bootupctl
|
|
|
9bfc90 |
%{_libexecdir}/bootupd
|
|
|
9bfc90 |
%{_unitdir}/*
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%prep
|
|
|
9bfc90 |
%autosetup -n %{crate}-%{version} -p1
|
|
|
3f1ffd |
mkdir vendor
|
|
|
3f1ffd |
tar -xv -C vendor -f %{SOURCE1}
|
|
|
9bfc90 |
mkdir -p .cargo
|
|
|
9bfc90 |
cat >.cargo/config << EOF
|
|
|
9bfc90 |
[source.crates-io]
|
|
|
9bfc90 |
replace-with = "vendored-sources"
|
|
|
9bfc90 |
|
|
|
9bfc90 |
[source.vendored-sources]
|
|
|
9bfc90 |
directory = "vendor"
|
|
|
9bfc90 |
EOF
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%build
|
|
|
9bfc90 |
%cargo_build
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%install
|
|
|
9bfc90 |
%make_install INSTALL="install -p -c"
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%post -n %{crate}
|
|
|
9bfc90 |
%systemd_post bootupd.service bootupd.socket
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%preun -n %{crate}
|
|
|
9bfc90 |
%systemd_preun bootupd.service bootupd.socket
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%postun -n %{crate}
|
|
|
9bfc90 |
%systemd_postun bootupd.service bootupd.socket
|
|
|
9bfc90 |
|
|
|
9bfc90 |
%changelog
|
|
|
3f1ffd |
* Mon Aug 01 2022 Colin Walters <walters@verbum.org> - 0.2.7-2
|
|
|
3f1ffd |
- https://github.com/coreos/bootupd/releases/tag/v0.2.7
|
|
|
3f1ffd |
|
|
|
9bfc90 |
* Thu Sep 16 2021 Luca BRUNO <lucab@lucabruno.net> - 0.2.6-1
|
|
|
9bfc90 |
- New upstream version
|
|
|
9bfc90 |
https://github.com/coreos/bootupd/releases/tag/v0.2.6
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-4
|
|
|
9bfc90 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-3
|
|
|
9bfc90 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Wed Jan 6 14:48:03 UTC 2021 Colin Walters <walters@verbum.org> - 0.2.5-2
|
|
|
9bfc90 |
- https://github.com/coreos/bootupd/releases/tag/v0.2.5
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Tue Dec 15 14:48:20 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.4-2
|
|
|
9bfc90 |
- https://github.com/coreos/bootupd/releases/tag/v0.2.4
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Tue Nov 17 14:33:06 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.3-2
|
|
|
9bfc90 |
- https://github.com/coreos/rpm-ostree/bootupd/tag/v0.2.3
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Wed Nov 11 18:07:38 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.2-2
|
|
|
9bfc90 |
- Update to 0.2.2
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Mon Nov 2 23:03:03 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.0-3
|
|
|
9bfc90 |
- Switch to vendored sources since RHEL requires it
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Mon Oct 26 15:06:37 UTC 2020 Colin Walters <walters@verbum.org> - 0.2.0-2
|
|
|
9bfc90 |
- https://github.com/coreos/bootupd/releases/tag/v0.2.0
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Tue Oct 13 2020 Colin Walters <walters@verbum.org> - 0.1.3-2
|
|
|
9bfc90 |
- https://github.com/coreos/bootupd/releases/tag/v0.1.3
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Tue Sep 22 2020 Colin Walters <walters@verbum.org> - 0.1.2-2
|
|
|
9bfc90 |
- New upstream
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Mon Sep 21 2020 Colin Walters <walters@verbum.org> - 0.1.1-2
|
|
|
9bfc90 |
- Also build on aarch64
|
|
|
9bfc90 |
|
|
|
9bfc90 |
* Fri Sep 11 2020 Colin Walters <walters@verbum.org> - 0.1.0-3
|
|
|
9bfc90 |
- Initial package
|
|
|
9bfc90 |
|