Skip to content

Commit 4549fbf

Browse files
author
Packit Build
committed
adhering to rust pckaging best practises
1 parent 025b6e4 commit 4549fbf

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

greenboot-rs.spec

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
%global __cargo_is_lib() false
1+
%bcond_with check
2+
%global cargo_install_lib 0
23
%global pkgname greenboot
34

45
Name: greenboot-rs
56
Version: 0.16.0
6-
Release: 3%{?dist}
7+
Release: 4%{?dist}
78
Summary: Generic Health Check Framework for systemd
89
License: (Apache-2.0 OR MIT) AND BSD-3-Clause
910
URL: https://github.com/fedora-iot/greenboot-rs
1011
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
1112

12-
ExcludeArch: s390x i686 %{power64}
13+
ExcludeArch: %{ix86}
1314

1415
%if 0%{?centos} && !0%{?eln}
1516
BuildRequires: rust-toolset
1617
%else
17-
BuildRequires: rust-packaging
18+
BuildRequires: cargo-rpm-macros
1819
%endif
1920
BuildRequires: systemd-rpm-macros
2021

@@ -59,7 +60,7 @@ This package adds some default healthchecks for greenboot.
5960
%cargo_prep
6061

6162
%generate_buildrequires
62-
%cargo_generate_buildrequires -a
63+
%cargo_generate_buildrequires
6364

6465
%build
6566
%cargo_build
@@ -137,6 +138,9 @@ install -DpZm 0644 usr/lib/systemd/system/greenboot-healthcheck.service.d/10-net
137138
%{_unitdir}/greenboot-healthcheck.service.d/10-network-online.conf
138139

139140
%changelog
141+
* Mon Aug 25 2025 Sayan Paul <saypaul@redhat.com> - 0.16.0-4
142+
- Adding rust packaging best practices
143+
140144
* Fri Aug 15 2025 Peter Robinson <pbrobinson@fedoraproject.org> - 0.16.0-3
141145
- Various spec file cleanups
142146

0 commit comments

Comments
 (0)