Blame SPECS/rust-bootupd.spec

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