diff --git a/butane.spec b/butane.spec index 17beb464cafe62ef80daa0d5c3f80c37159991ec..f11ef1ded8cbd4dc47758b2df4fc945dce8bbe21 100644 --- a/butane.spec +++ b/butane.spec @@ -21,13 +21,14 @@ configs for provisioning operating systems that use Ignition.} Name: butane Version: 0.14.0 -Release: 1 +Release: 2 Summary: Butane config transpiler # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: https://github.com/coreos/butane Source0: butane-0.14.0.tar.gz +Patch0: support-nestos-variant.patch BuildRequires: golang Provides: nestos-config-transpiler = %{version}-%{release} Obsoletes: nestos-config-transpiler < 0.10.0-2 @@ -132,5 +133,8 @@ install -p -m 0644 ./butane-x86_64-unknown-linux-gnu-static %{buildroot}%{_datad %{_datadir}/butane/butane-x86_64-unknown-linux-gnu-static %changelog +* Wed Oct 26 2022 fushanqing - 0.14.0-2 +- support nestos variant + * Mon Jun 20 2022 fushanqing - 0.14.0-1 - Initial package diff --git a/support-nestos-variant.patch b/support-nestos-variant.patch new file mode 100644 index 0000000000000000000000000000000000000000..04b86d623dcbe292a052bef1971bb38e5d679de0 --- /dev/null +++ b/support-nestos-variant.patch @@ -0,0 +1,15 @@ +--- butane-0.14.0/config/config.go 2022-01-28 05:32:23.000000000 +0800 ++++ butane-0.14.0-new/config/config.go 2022-10-26 11:15:02.844757275 +0800 +@@ -52,6 +52,12 @@ func init() { + RegisterTranslator("fcos", "1.3.0", fcos1_3.ToIgn3_2Bytes) + RegisterTranslator("fcos", "1.4.0", fcos1_4.ToIgn3_3Bytes) + RegisterTranslator("fcos", "1.5.0-experimental", fcos1_5_exp.ToIgn3_4Bytes) ++ RegisterTranslator("nestos", "1.0.0", fcos1_0.ToIgn3_0Bytes) ++ RegisterTranslator("nestos", "1.1.0", fcos1_1.ToIgn3_1Bytes) ++ RegisterTranslator("nestos", "1.2.0", fcos1_2.ToIgn3_2Bytes) ++ RegisterTranslator("nestos", "1.3.0", fcos1_3.ToIgn3_2Bytes) ++ RegisterTranslator("nestos", "1.4.0", fcos1_4.ToIgn3_3Bytes) ++ RegisterTranslator("nestos", "1.5.0-experimental", fcos1_5_exp.ToIgn3_4Bytes) + RegisterTranslator("openshift", "4.8.0", openshift4_8.ToConfigBytes) + RegisterTranslator("openshift", "4.9.0", openshift4_9.ToConfigBytes) + RegisterTranslator("openshift", "4.10.0", openshift4_10.ToConfigBytes)