From b4a97b2f9fbaa808d3cea70dfe6564a0f77fd8be Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 18 Sep 2020 18:14:18 +0000 Subject: [PATCH] Initial import --- .gitignore | 1 + rust-bootupd.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 rust-bootupd.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c13ce66 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bootupd-0.1.1.crate diff --git a/rust-bootupd.spec b/rust-bootupd.spec new file mode 100644 index 0000000..d5cbbfc --- /dev/null +++ b/rust-bootupd.spec @@ -0,0 +1,67 @@ +%bcond_without check +%global __cargo_skip_build 0 + +%global crate bootupd + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Bootloader updater + +License: ASL 2.0 +URL: https://crates.io/crates/bootupd +Source: %{crates_source} + +# For now, see upstream +ExclusiveArch: x86_64 +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 +%{_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 +* Fri Sep 11 2020 Colin Walters - 0.1.0-3 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..dfd1690 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bootupd-0.1.1.crate) = 53a2e10a81d720bd3bfa8de39f67427ad18fa6a76dfcb2eb1516fee62d7a3a182fe60e86166266d4a05aa88a69a5549e288957e32815135a85dbec767df10930