From dc3e5647ff491e34653a9ebaffc187cd376ebc18 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Fri, 30 Oct 2020 15:42:20 +0100 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/rust-bootupd.git#445e446323294f9249c39cbfa73691a752b4f2ff --- .gitignore | 4 +++ README.md | 3 ++ rust-bootupd.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 88 insertions(+) create mode 100644 README.md create mode 100644 rust-bootupd.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..4c04025 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +/bootupd-0.1.1.crate +/bootupd-0.1.2.crate +/bootupd-0.1.3.crate +/bootupd-0.2.0.crate diff --git a/README.md b/README.md new file mode 100644 index 0000000..7179bff --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-bootupd + +The rust-bootupd package diff --git a/rust-bootupd.spec b/rust-bootupd.spec new file mode 100644 index 0000000..a061d22 --- /dev/null +++ b/rust-bootupd.spec @@ -0,0 +1,80 @@ +%bcond_without check +%global __cargo_skip_build 0 + +%global crate bootupd + +Name: rust-%{crate} +Version: 0.2.0 +Release: 2%{?dist} +Summary: Bootloader updater + +License: ASL 2.0 +URL: https://crates.io/crates/bootupd +Source: %{crates_source} + +# For now, see upstream +ExclusiveArch: x86_64 aarch64 +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}/* + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%make_install INSTALL="install -p -c" + +%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 +* Mon Oct 26 15:06:37 UTC 2020 Colin Walters - 0.2.0-2 +- https://github.com/coreos/bootupd/releases/tag/v0.2.0 + +* Tue Oct 13 2020 Colin Walters - 0.1.3-2 +- https://github.com/coreos/bootupd/releases/tag/v0.1.3 + +* Tue Sep 22 2020 Colin Walters - 0.1.2-2 +- New upstream + +* Mon Sep 21 2020 Colin Walters - 0.1.1-2 +- Also build on aarch64 + +* Fri Sep 11 2020 Colin Walters - 0.1.0-3 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..802f9f9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bootupd-0.2.0.crate) = 78fdf2ccaf467b0a4d5a45eb7737951cfa44132b6d9205339931bc8d6ec81ca6956c31d4974afc05a0749602688973e33f66c50b72732026766d637c26aef061