From 9a29f3c036611a06daa31e0a5fbf2d5d2fda387f Mon Sep 17 00:00:00 2001 From: Carl George Date: Aug 12 2020 22:35:23 +0000 Subject: CentOS debranding --- diff --git a/SOURCES/0001-Add-product-data-for-CentOS-Stream.patch b/SOURCES/0001-Add-product-data-for-CentOS-Stream.patch new file mode 100644 index 0000000..6916923 --- /dev/null +++ b/SOURCES/0001-Add-product-data-for-CentOS-Stream.patch @@ -0,0 +1,43 @@ +From 23a454ea25a684c6de9a62b51f014a488eba29a3 Mon Sep 17 00:00:00 2001 +From: Brian Stinson +Date: Thu, 25 Jun 2020 18:10:13 -0500 +Subject: [PATCH] Add product data for CentOS Stream + +--- + data/product.d/centos-stream.conf | 7 +++++++ + tests/nosetests/pyanaconda_tests/product_test.py | 5 +++++ + 2 files changed, 12 insertions(+) + create mode 100644 data/product.d/centos-stream.conf + +diff --git a/data/product.d/centos-stream.conf b/data/product.d/centos-stream.conf +new file mode 100644 +index 000000000..c65fcbbdf +--- /dev/null ++++ b/data/product.d/centos-stream.conf +@@ -0,0 +1,7 @@ ++# Anaconda configuration file for CentOS Stream. ++ ++[Product] ++product_name = CentOS Stream ++ ++[Base Product] ++product_name = CentOS Linux +diff --git a/tests/nosetests/pyanaconda_tests/product_test.py b/tests/nosetests/pyanaconda_tests/product_test.py +index 90b8ad60a..3f2224a69 100644 +--- a/tests/nosetests/pyanaconda_tests/product_test.py ++++ b/tests/nosetests/pyanaconda_tests/product_test.py +@@ -235,6 +235,11 @@ class ProductConfigurationTestCase(unittest.TestCase): + ["rhel.conf", "centos.conf"], + WORKSTATION_PARTITIONING + ) ++ self._check_default_product( ++ "CentOS Stream", "", ++ ["rhel.conf", "centos.conf", "centos-stream.conf"], ++ WORKSTATION_PARTITIONING ++ ) + self._check_default_product( + "Red Hat Virtualization", "", + ["rhel.conf", "rhev.conf"], +-- +2.26.2 + diff --git a/SPECS/anaconda.spec b/SPECS/anaconda.spec index d005d8e..7eaeb2b 100644 --- a/SPECS/anaconda.spec +++ b/SPECS/anaconda.spec @@ -12,6 +12,8 @@ URL: http://fedoraproject.org/wiki/Anaconda # make dist Source0: %{name}-%{version}.tar.bz2 +Patch104: 0001-Add-product-data-for-CentOS-Stream.patch + # Versions of required components (done so we make sure the buildrequires # match the requires versions of things). @@ -264,6 +266,9 @@ runtime on NFS/HTTP/FTP servers or local disks. %prep %autosetup -p 1 +# debranding +sed -e 's/RHEL/CentOS/' -i po/*.po + %build # use actual build-time release number, not tarball creation time release number %configure ANACONDA_RELEASE=%{release}