| 1 |
%global debug_package %{nil} |
| 2 |
|
| 3 |
Name: alloy-demo |
| 4 |
Version: %{demo_version} |
| 5 |
Release: 1%{?dist} |
| 6 |
Summary: Stand-in for a first-party Alloy component |
| 7 |
License: MIT |
| 8 |
URL: https://makenot.work/git/max/alloy |
| 9 |
|
| 10 |
%description |
| 11 |
A single executable that prints its own version. It stands in for the alloy |
| 12 |
console or for shop in an experiment about what rpm-ostree and bootc will let |
| 13 |
a hotfix do. It carries no Alloy code, and it is never published anywhere. |
| 14 |
|
| 15 |
Three versions get built from this one spec. 0.0.1 is what a base image ships, |
| 16 |
0.0.2 is the hotfix, and 0.0.3 is the version a later base image carries once |
| 17 |
the fix has been folded back in. That last one is the case that matters: it is |
| 18 |
where a machine holding the hotfix stops being able to update. |
| 19 |
|
| 20 |
%install |
| 21 |
mkdir -p %{buildroot}%{_bindir} |
| 22 |
cat > %{buildroot}%{_bindir}/alloy-demo <<'EOF' |
| 23 |
#!/bin/sh |
| 24 |
echo "alloy-demo VERSION_PLACEHOLDER" |
| 25 |
EOF |
| 26 |
sed -i "s/VERSION_PLACEHOLDER/%{version}/" %{buildroot}%{_bindir}/alloy-demo |
| 27 |
chmod 0755 %{buildroot}%{_bindir}/alloy-demo |
| 28 |
|
| 29 |
%files |
| 30 |
%{_bindir}/alloy-demo |
| 31 |
|
| 32 |
%changelog |
| 33 |
|