Skip to content

Commit

Permalink
contrib/rpm: Two more fixes
Browse files Browse the repository at this point in the history
- Use `rust-%{crate}` for name because that's what Fedora
  does; the previous spec file sync was just broken
- Use a source archive generated from git, not a `.crate`; we
  will stop publishing to crates.io.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Feb 11, 2025
1 parent a1a293f commit 22e9464
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/packaging/bootupd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

%global crate bootupd

Name: bootupd
Name: rust-%{crate}
Version: 0.2.9
Release: 1%{?dist}
Summary: Bootloader updater

License: Apache-2.0
URL: https://github.com/coreos/bootupd
Source0: %{url}/releases/download/v%{version}/bootupd-%{version}.crate
Source0: %{url}/releases/download/v%{version}/bootupd-%{version}.tar.zstd
Source1: %{url}/releases/download/v%{version}/bootupd-%{version}-vendor.tar.zstd
ExcludeArch: %{ix86}

Expand Down Expand Up @@ -54,7 +54,7 @@ License: Apache-2.0 AND (Apache-2.0 WITH LLVM-exception) AND BSD-3-Clause
%{_unitdir}/bootloader-update.service

%prep
%autosetup -n %{crate}-%{version} -p1 -Sgit
%autosetup -n %{crate}-%{version} -p1 -Sgit -a1
# Default -v vendor config doesn't support non-crates.io deps (i.e. git)
cp .cargo/vendor-config.toml .
%cargo_prep -N
Expand Down

0 comments on commit 22e9464

Please sign in to comment.