Skip to content

Commit 286b769

Browse files
committed
bump version to 0.11.1, add rpmbuild script
1 parent 315027d commit 286b769

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "readymade"
3-
version = "0.11.0"
3+
version = "0.11.1"
44
edition = "2021"
55
license = "MIT WITH GPL-3.0-or-later"
66
description = "Install ready-made distribution images"

ci/readymade.spec

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ It is created as a replacement to Red Hat's Anaconda installer for Ultramarine L
2525
%prep
2626
%autosetup -n %{name}-%{gitcommit}
2727
%cargo_prep_online
28+
# Add debug assertions to the rpm profile
29+
sed -i 's/^\[profile\.rpm\]/[profile.rpm]\ndebug-assertions = true/' .cargo/config
2830

2931
%build
3032

scripts/rpmbuild.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
get_git_sha() {
4+
git rev-parse HEAD
5+
}
6+
7+
get_git_short() {
8+
git rev-parse --short HEAD
9+
}
10+
11+
12+
build_rpm() {
13+
local git_sha=$(get_git_sha)
14+
local git_short=$(get_git_short)
15+
rpmbuild -ba ci/readymade.spec --define "gitcommit $git_sha" --define "shortcommit $git_short" --define "_rpmdir $PWD/build" --define "_disable_source_fetch 0"
16+
}
17+
18+
build_rpm

0 commit comments

Comments
 (0)