From 9aa151a86e71e906da30048a9ad634757ad35048 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Tue, 20 Aug 2024 18:15:54 +0000 Subject: [PATCH] import rhn-client-tools-2.10.10-1.0.8.el9 --- .gitignore | 1 + .rhn-client-tools.metadata | 1 + ...1001-fix-base64-encoding-Bug34372838.patch | 21 + ...acle-public-yum-repos-after-registra.patch | 56 + ...-dependencies-for-OL8-aarch64-builds.patch | 68 + SOURCES/bug26895848.patch | 111 ++ SOURCES/oracle-source-code-offer-client.patch | 23 + SOURCES/oracle-spacewalk-code.patch | 731 ++++++++ ...o-rhn-client-tools-2.10.10-1.0.7.el9.patch | 19 + SPECS/rhn-client-tools.spec | 1600 +++++++++++++++++ 10 files changed, 2631 insertions(+) create mode 100644 .gitignore create mode 100644 .rhn-client-tools.metadata create mode 100644 SOURCES/1001-fix-base64-encoding-Bug34372838.patch create mode 100644 SOURCES/103-Disable-local-Oracle-public-yum-repos-after-registra.patch create mode 100644 SOURCES/104-Handle-dmidecode-dependencies-for-OL8-aarch64-builds.patch create mode 100755 SOURCES/bug26895848.patch create mode 100644 SOURCES/oracle-source-code-offer-client.patch create mode 100644 SOURCES/oracle-spacewalk-code.patch create mode 100644 SOURCES/rhn-client-tools-2.10.10-1.0.6.el9-to-rhn-client-tools-2.10.10-1.0.7.el9.patch create mode 100644 SPECS/rhn-client-tools.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b273718 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rhn-client-tools-2.10.10.tar.gz diff --git a/.rhn-client-tools.metadata b/.rhn-client-tools.metadata new file mode 100644 index 0000000..646e704 --- /dev/null +++ b/.rhn-client-tools.metadata @@ -0,0 +1 @@ +1a962a171cef70960ed8c00bb436f2bd72ba6b3e SOURCES/rhn-client-tools-2.10.10.tar.gz diff --git a/SOURCES/1001-fix-base64-encoding-Bug34372838.patch b/SOURCES/1001-fix-base64-encoding-Bug34372838.patch new file mode 100644 index 0000000..080ead6 --- /dev/null +++ b/SOURCES/1001-fix-base64-encoding-Bug34372838.patch @@ -0,0 +1,21 @@ +Fix OL9 osad start failure due to base64.encodestring() removal in Python 3.9 + +Orabug: 34372838 + +Signed-off-by: Laurence Rochfort +Reviewed-by: Darren Kenny +--- +diff -ruN rhn-client-tools-2.10.10.orig/src/bin/rhn_check.py rhn-client-tools-2.10.10/src/bin/rhn_check.py +--- rhn-client-tools-2.10.10.orig/src/bin/rhn_check.py 2022-07-20 08:00:18.941150794 +0000 ++++ rhn-client-tools-2.10.10/src/bin/rhn_check.py 2022-07-20 08:19:54.181497449 +0000 +@@ -289,8 +289,8 @@ + data['return_code'] = 255 + data['process_start'] = '1970-01-01 00:00:00' # dummy values as we have no idea of start + data['process_end'] = '1970-01-01 00:00:00' # and especially about the end +- with open(action_lock) as f: +- data['output'] = base64.encodestring(f.read()) ++ with open(action_lock, 'rb') as f: ++ data['output'] = base64.encodebytes(f.read()) + log.log_debug("Sending back response", (255, "Previous run of action didn't completed sucessfully, aborting.", data)) + ret = self.submit_response(action['id'], 255, "Previous run of action didn't completed sucessfully, aborting.", data) + os.remove(action_lock) diff --git a/SOURCES/103-Disable-local-Oracle-public-yum-repos-after-registra.patch b/SOURCES/103-Disable-local-Oracle-public-yum-repos-after-registra.patch new file mode 100644 index 0000000..41c5042 --- /dev/null +++ b/SOURCES/103-Disable-local-Oracle-public-yum-repos-after-registra.patch @@ -0,0 +1,56 @@ +From 217b2c2bf573367f2e7df1f5fd447ea890425743 Mon Sep 17 00:00:00 2001 +From: Laurence Rochfort +Date: Tue, 28 Jul 2020 13:14:39 +0000 +Subject: [PATCH] Disable local Oracle public yum repos after registration. + +This is to prevent having duplicate channels defined coming from both +Spacewalk and yum. All other local repos are left enabled. + +Orabug: 31640087 + +Signed-off-by: Laurence Rochfort +Reviewed-by: Jared Greenwald +--- + client/rhel/rhn-client-tools/src/bin/rhn_check.py | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/client/rhel/rhn-client-tools/src/bin/rhn_check.py b/client/rhel/rhn-client-tools/src/bin/rhn_check.py +index cecb3c84ad..58d1a67c86 100755 +--- a/client/rhel/rhn-client-tools/src/bin/rhn_check.py ++++ b/client/rhel/rhn-client-tools/src/bin/rhn_check.py +@@ -31,6 +31,7 @@ + + import base64 + import os ++import re + import sys + import socket + +@@ -104,6 +105,7 @@ class CheckCli(rhncli.RhnCli): + + self.__run_remote_actions() + CheckCli.__run_local_actions() ++ self.__public_yum_actions() + + s = rhnserver.RhnServer() + if s.capabilities.hasCapability('staging_content', 1) and cfg['stagingContent'] != 0: +@@ -111,6 +113,16 @@ class CheckCli(rhncli.RhnCli): + + sys.exit(0) + ++ def __public_yum_actions(self): ++ for root, dir, files in os.walk("/etc/yum.repos.d/"): ++ for file in files: ++ if file.endswith("ol8.repo"): ++ file = os.path.join(root, file) ++ file_t = open (file) ++ file_text = file_t.read() ++ if re.search("baseurl=.*yum.*oracle.com", file_text): ++ os.system("sed -i 's/enabled=1/enabled=0/' %s" % file) ++ + def __get_action(self, status_report): + try: + action = self.server.queue.get(up2dateAuth.getSystemId(), +-- +2.24.2 + diff --git a/SOURCES/104-Handle-dmidecode-dependencies-for-OL8-aarch64-builds.patch b/SOURCES/104-Handle-dmidecode-dependencies-for-OL8-aarch64-builds.patch new file mode 100644 index 0000000..bb73402 --- /dev/null +++ b/SOURCES/104-Handle-dmidecode-dependencies-for-OL8-aarch64-builds.patch @@ -0,0 +1,68 @@ +From 9093fca59d6bce1195df4eb53e8f75073970f59a Mon Sep 17 00:00:00 2001 +From: Laurence Rochfort +Date: Tue, 9 Feb 2021 15:37:57 +0000 +Subject: [PATCH] Handle dmidecode dependencies for OL8 aarch64 builds + +Port patches from base OS rhn-client-tools to allow dmidecode build +for OL8 aarch64. + +- Related: #1622145 - don't run dmi_warnings() if there's no dmidecode + (tkasparek@redhat.com) +- Related: #1622145 - split into arch package (tkasparek@redhat.com) +- Resolves: #1622145 - drop dmidecode dependency on non x86_64 arches + (tkasparek@redhat.com) + +Orabug: 31414043 + +Signed-off-by: Laurence Rochfort +Reviewed-by: Anton Krylov +--- + client/rhel/rhn-client-tools/src/up2date_client/hardware.py | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +diff --git a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py +index 62a0c2f..7cb1e65 100644 +--- a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py ++++ b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py +@@ -46,6 +46,12 @@ try: + except ImportError: + netifaces_present = False + ++try: ++ import dmidecode ++ dmidecode_present = True ++except ImportError: ++ dmidecode_present = False ++ + import gettext + t = gettext.translation('rhn-client-tools', fallback=True) + # Python 3 translations don't have a ugettext method +@@ -54,7 +60,6 @@ if not hasattr(t, 'ugettext'): + _ = t.ugettext + + import dbus +-import dmidecode + from up2date_client import up2dateLog + + try: +@@ -83,7 +88,7 @@ except ImportError: + + # this does not change, we can cache it + _dmi_data = None +-_dmi_not_available = 0 ++_dmi_not_available = 0 if dmidecode_present else 1 + + def dmi_warnings(): + if not hasattr(dmidecode, 'get_warnings'): +@@ -91,7 +96,7 @@ def dmi_warnings(): + + return dmidecode.get_warnings() + +-dmi_warn = dmi_warnings() ++dmi_warn = None if _dmi_not_available else dmi_warnings() + if dmi_warn: + dmidecode.clear_warnings() + log = up2dateLog.initLog() +-- +2.9.5 + diff --git a/SOURCES/bug26895848.patch b/SOURCES/bug26895848.patch new file mode 100755 index 0000000..9be1924 --- /dev/null +++ b/SOURCES/bug26895848.patch @@ -0,0 +1,111 @@ +diff -ruN rhn-client-tools-2.7.16.orig/data/Makefile rhn-client-tools-2.7.16/data/Makefile +--- rhn-client-tools-2.7.16.orig/data/Makefile 2017-10-27 11:11:46.222415919 -0700 ++++ rhn-client-tools-2.7.16/data/Makefile 2017-10-27 11:15:07.504862693 -0700 +@@ -5,7 +5,7 @@ + + GLADES = gui.glade progress.glade rh_register.glade + PUPLET_SS = puplet-screenshot.png +-KEYS = RHNS-CA-CERT ++KEYS = RHNS-CA-CERT ULN-CA-CERT + + # Distro + RHEL = $(shell rpm --eval 0%{?rhel}) +diff -ruN rhn-client-tools-2.7.16.orig/data/ULN-CA-CERT rhn-client-tools-2.7.16/data/ULN-CA-CERT +--- rhn-client-tools-2.7.16.orig/data/ULN-CA-CERT 1969-12-31 16:00:00.000000000 -0800 ++++ rhn-client-tools-2.7.16/data/ULN-CA-CERT 2007-11-11 06:01:15.000000000 -0800 +@@ -0,0 +1,95 @@ ++Certificate: ++ Data: ++ Version: 1 (0x0) ++ Serial Number: ++ 02:ad:66:7e:4e:45:fe:5e:57:6f:3c:98:19:5e:dd:c0 ++ Signature Algorithm: md2WithRSAEncryption ++ Issuer: C=US, O=RSA Data Security, Inc., OU=Secure Server Certification Authority ++ Validity ++ Not Before: Nov 9 00:00:00 1994 GMT ++ Not After : Jan 7 23:59:59 2010 GMT ++ Subject: C=US, O=RSA Data Security, Inc., OU=Secure Server Certification Authority ++ Subject Public Key Info: ++ Public Key Algorithm: rsaEncryption ++ RSA Public Key: (1000 bit) ++ Modulus (1000 bit): ++ 00:92:ce:7a:c1:ae:83:3e:5a:aa:89:83:57:ac:25: ++ 01:76:0c:ad:ae:8e:2c:37:ce:eb:35:78:64:54:03: ++ e5:84:40:51:c9:bf:8f:08:e2:8a:82:08:d2:16:86: ++ 37:55:e9:b1:21:02:ad:76:68:81:9a:05:a2:4b:c9: ++ 4b:25:66:22:56:6c:88:07:8f:f7:81:59:6d:84:07: ++ 65:70:13:71:76:3e:9b:77:4c:e3:50:89:56:98:48: ++ b9:1d:a7:29:1a:13:2e:4a:11:59:9c:1e:15:d5:49: ++ 54:2c:73:3a:69:82:b1:97:39:9c:6d:70:67:48:e5: ++ dd:2d:d6:c8:1e:7b ++ Exponent: 65537 (0x10001) ++ Signature Algorithm: md2WithRSAEncryption ++ 65:dd:7e:e1:b2:ec:b0:e2:3a:e0:ec:71:46:9a:19:11:b8:d3: ++ c7:a0:b4:03:40:26:02:3e:09:9c:e1:12:b3:d1:5a:f6:37:a5: ++ b7:61:03:b6:5b:16:69:3b:c6:44:08:0c:88:53:0c:6b:97:49: ++ c7:3e:35:dc:6c:b9:bb:aa:df:5c:bb:3a:2f:93:60:b6:a9:4b: ++ 4d:f2:20:f7:cd:5f:7f:64:7b:8e:dc:00:5c:d7:fa:77:ca:39: ++ 16:59:6f:0e:ea:d3:b5:83:7f:4d:4d:42:56:76:b4:c9:5f:04: ++ f8:38:f8:eb:d2:5f:75:5f:cd:7b:fc:e5:8e:80:7c:fc:50 ++-----BEGIN CERTIFICATE----- ++MIICNDCCAaECEAKtZn5ORf5eV288mBle3cAwDQYJKoZIhvcNAQECBQAwXzELMAkG ++A1UEBhMCVVMxIDAeBgNVBAoTF1JTQSBEYXRhIFNlY3VyaXR5LCBJbmMuMS4wLAYD ++VQQLEyVTZWN1cmUgU2VydmVyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk0 ++MTEwOTAwMDAwMFoXDTEwMDEwNzIzNTk1OVowXzELMAkGA1UEBhMCVVMxIDAeBgNV ++BAoTF1JTQSBEYXRhIFNlY3VyaXR5LCBJbmMuMS4wLAYDVQQLEyVTZWN1cmUgU2Vy ++dmVyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGbMA0GCSqGSIb3DQEBAQUAA4GJ ++ADCBhQJ+AJLOesGugz5aqomDV6wlAXYMra6OLDfO6zV4ZFQD5YRAUcm/jwjiioII ++0haGN1XpsSECrXZogZoFokvJSyVmIlZsiAeP94FZbYQHZXATcXY+m3dM41CJVphI ++uR2nKRoTLkoRWZweFdVJVCxzOmmCsZc5nG1wZ0jl3S3WyB57AgMBAAEwDQYJKoZI ++hvcNAQECBQADfgBl3X7hsuyw4jrg7HFGmhkRuNPHoLQDQCYCPgmc4RKz0Vr2N6W3 ++YQO2WxZpO8ZECAyIUwxrl0nHPjXcbLm7qt9cuzovk2C2qUtN8iD3zV9/ZHuO3ABc ++1/p3yjkWWW8O6tO1g39NTUJWdrTJXwT4OPjr0l91X817/OWOgHz8UA== ++-----END CERTIFICATE----- ++Certificate: ++ Data: ++ Version: 1 (0x0) ++ Serial Number: ++ 70:ba:e4:1d:10:d9:29:34:b6:38:ca:7b:03:cc:ba:bf ++ Signature Algorithm: md2WithRSAEncryption ++ Issuer: C=US, O=VeriSign, Inc., OU=Class 3 Public Primary Certification Authority ++ Validity ++ Not Before: Jan 29 00:00:00 1996 GMT ++ Not After : Aug 1 23:59:59 2028 GMT ++ Subject: C=US, O=VeriSign, Inc., OU=Class 3 Public Primary Certification Authority ++ Subject Public Key Info: ++ Public Key Algorithm: rsaEncryption ++ RSA Public Key: (1024 bit) ++ Modulus (1024 bit): ++ 00:c9:5c:59:9e:f2:1b:8a:01:14:b4:10:df:04:40: ++ db:e3:57:af:6a:45:40:8f:84:0c:0b:d1:33:d9:d9: ++ 11:cf:ee:02:58:1f:25:f7:2a:a8:44:05:aa:ec:03: ++ 1f:78:7f:9e:93:b9:9a:00:aa:23:7d:d6:ac:85:a2: ++ 63:45:c7:72:27:cc:f4:4c:c6:75:71:d2:39:ef:4f: ++ 42:f0:75:df:0a:90:c6:8e:20:6f:98:0f:f8:ac:23: ++ 5f:70:29:36:a4:c9:86:e7:b1:9a:20:cb:53:a5:85: ++ e7:3d:be:7d:9a:fe:24:45:33:dc:76:15:ed:0f:a2: ++ 71:64:4c:65:2e:81:68:45:a7 ++ Exponent: 65537 (0x10001) ++ Signature Algorithm: md2WithRSAEncryption ++ bb:4c:12:2b:cf:2c:26:00:4f:14:13:dd:a6:fb:fc:0a:11:84: ++ 8c:f3:28:1c:67:92:2f:7c:b6:c5:fa:df:f0:e8:95:bc:1d:8f: ++ 6c:2c:a8:51:cc:73:d8:a4:c0:53:f0:4e:d6:26:c0:76:01:57: ++ 81:92:5e:21:f1:d1:b1:ff:e7:d0:21:58:cd:69:17:e3:44:1c: ++ 9c:19:44:39:89:5c:dc:9c:00:0f:56:8d:02:99:ed:a2:90:45: ++ 4c:e4:bb:10:a4:3d:f0:32:03:0e:f1:ce:f8:e8:c9:51:8c:e6: ++ 62:9f:e6:9f:c0:7d:b7:72:9c:c9:36:3a:6b:9f:4e:a8:ff:64: ++ 0d:64 ++-----BEGIN CERTIFICATE----- ++MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG ++A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz ++cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2 ++MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV ++BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt ++YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN ++ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE ++BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is ++I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G ++CSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do ++lbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc ++AA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k ++-----END CERTIFICATE----- diff --git a/SOURCES/oracle-source-code-offer-client.patch b/SOURCES/oracle-source-code-offer-client.patch new file mode 100644 index 0000000..ca369d2 --- /dev/null +++ b/SOURCES/oracle-source-code-offer-client.patch @@ -0,0 +1,23 @@ +diff -urN rhn-client-tools-2.0.1.orig/doc/README rhn-client-tools-2.0.1/doc/README +--- rhn-client-tools-2.0.1.orig/doc/README 1969-12-31 16:00:00.000000000 -0800 ++++ rhn-client-tools-2.0.1/doc/README 2013-11-02 12:32:29.655513823 -0700 +@@ -0,0 +1,19 @@ ++OFFER TO PROVIDE SOURCE CODE ++ ++ For software that you receive from Oracle in binary form that is licensed under an open source license that gives you the right to receive the source code for that binary, you can obtain a copy of the applicable source code from https://oss.oracle.com/sources/ or http://www.oracle.com/goto/opensourcecode. Alternatively, if the source code for the technology was not provided to you with the binary, you can also receive a copy of the source code on physical media by submitting a written request to: ++ ++ Oracle America, Inc. ++ Attn: Associate General Counsel ++ Development and Engineering Legal ++ 500 Oracle Parkway, 10th Floor ++ Redwood Shores, CA 94065 ++ ++ Or, you may send an email to Oracle using the form linked from http://www.oracle.com/goto/opensourcecode. Your written or emailed request should include: ++ * The name of the component or binary file(s) for which you are requesting the source code ++ * The name and version number of the Oracle product ++ * The date you received the Oracle product ++ * Your name ++ * Your company name (if applicable) ++ * Your return mailing address and email ++ * A telephone number in the event we need to reach you. ++ We may charge you a fee to cover the cost of physical media and processing. Your request must be sent (i) within three (3) years of the date you received the Oracle product that included the component or binary file(s) that are the subject of your request, or (ii) in the case of code licensed under the GPL v3, for as long as Oracle offers spare parts or customer support for that product model or version. diff --git a/SOURCES/oracle-spacewalk-code.patch b/SOURCES/oracle-spacewalk-code.patch new file mode 100644 index 0000000..1b9dcbb --- /dev/null +++ b/SOURCES/oracle-spacewalk-code.patch @@ -0,0 +1,731 @@ +diff -ruN rhn-client-tools-2.7.16.orig/data/gui.glade rhn-client-tools-2.7.16/data/gui.glade +--- rhn-client-tools-2.7.16.orig/data/gui.glade 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/data/gui.glade 2017-08-25 12:59:14.283621157 -0700 +@@ -77,7 +77,7 @@ + + + confirm +- Red Hat Account ++ Spacewalk Account + @@logo@@ + True + +diff -ruN rhn-client-tools-2.7.16.orig/data/rh_register.glade rhn-client-tools-2.7.16/data/rh_register.glade +--- rhn-client-tools-2.7.16.orig/data/rh_register.glade 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/data/rh_register.glade 2017-08-25 12:59:14.354111984 -0700 +@@ -85,7 +85,7 @@ + + + True +- This system will <b>not</b> be able to successfully receive software updates, including security updates, from Red Hat without connecting to a Red Hat Satellite or Red Hat Network Classic. ++ This system will <b>not</b> be able to successfully receive software updates, including security updates, from Oracle without connecting to Spacewalk or the Unbreakable Linux Network. + + To keep your system updated, secure, and supported, please register this system at your earliest convenience. + False +@@ -173,7 +173,7 @@ + + + True +- I'd like to register with an Red Hat Satellite or Red Hat Satellite Proxy ++ I'd like to register with Spacewalk or a Spacewalk Proxy + False + True + GTK_JUSTIFY_LEFT +@@ -188,7 +188,7 @@ + False + 0 + +- I'd like to register with an Red Hat Satellite or Red Hat Satellite Proxy ++ I'd like to register with Spacewalk or a Spacewalk Proxy + + + +@@ -282,7 +282,7 @@ + + False + +- satellite server location ++ Spacewalk server location + + + +@@ -352,7 +352,7 @@ + + + True +- Red Hat Account ++ Spacewalk account + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False +@@ -366,7 +366,7 @@ + True + False + +- Red Hat Account ++ Spacewalk account + + + +@@ -379,7 +379,7 @@ + + + True +- Please enter your Red Hat account information: ++ Please enter your Spacewalk account information: + False + True + GTK_JUSTIFY_LEFT +@@ -394,7 +394,7 @@ + False + 0 + +- Please enter your Red Hat account information: ++ Please enter your Spacewalk account information: + + + +@@ -588,7 +588,7 @@ + + + +- <small>Tip: Forgot your login or password? Contact your Satellite's <i>Organization Administrator</i>.</small> ++ <small>Tip: Forgot your login or password? Contact your Spacewalk's <i>Organization Administrator</i>.</small> + False + True + GTK_JUSTIFY_LEFT +@@ -662,7 +662,7 @@ + + + True +- Red Hat Linux Version: ++ Oracle Linux Version: + False + False + GTK_JUSTIFY_RIGHT +@@ -1198,7 +1198,7 @@ + + + True +- This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. You will need the following to register: ++ This assistant will guide you through the process of registering your system with Oracle to receive software updates and other benefits. You will need the following to register: + False + False + GTK_JUSTIFY_LEFT +@@ -1213,7 +1213,7 @@ + False + 0 + +- This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. You will need the following to register: ++ This assistant will guide you through the process of registering your system with Oracle to receive software updates and other benefits. You will need the following to register: + + + +@@ -1297,7 +1297,7 @@ + + + True +- • The address of an Red Hat Satellite or Red Hat Satellite Proxy ++ • The address of a Spacewalk server or Spacewalk Proxy + False + False + GTK_JUSTIFY_LEFT +@@ -1535,7 +1535,7 @@ + + + True +- Purchase an additional Red Hat Enterprise Linux subscription at http://www.redhat.com/store/. ++ Purchase an additional Oracle Linux subscription at https://shop.oracle.com/pls/ostore/f?p=dstore:2:0::NO:RIR,RP,2:PROD_HIER_ID:4510272175861805728468. + False + False + GTK_JUSTIFY_LEFT +@@ -1562,7 +1562,7 @@ + + + True +- Log in to http://rhn.redhat.com/ and unentitle an inactive system at Your RHN > Subscription Management > System Entitlements. ++ Log in to http://linux.oracle.com/ and unentitle an inactive system at Your ULN > Subscription Management > System Entitlements. + False + False + GTK_JUSTIFY_LEFT +@@ -2483,7 +2483,7 @@ + + 600 + True +- Registering your system with Red Hat allows you to take full advantage of the benefits of a paid subscription, including: ++ Registering your system with Oracle allows you to take full advantage of the benefits of a paid subscription, including: + False + False + GTK_JUSTIFY_LEFT +@@ -2498,7 +2498,7 @@ + False + 0 + +- Registering your system with Red Hat allows you to take full advantage of the benefits of a paid subscription, including: ++ Registering your system with Oracle allows you to take full advantage of the benefits of a paid subscription, including: + + + +@@ -2629,7 +2629,7 @@ + + 460 + True +- Receive the latest software updates, including security updates, keeping this Red Hat Enterprise Linux system <b>updated</b> and <b>secure</b>. ++ Receive the latest software updates, including security updates, keeping this Oracle Linux system <b>updated</b> and <b>secure</b>. + False + True + GTK_JUSTIFY_LEFT +@@ -2724,7 +2724,7 @@ + + 460 + True +- Download installation images for Red Hat Enterprise Linux releases, including new releases. ++ Download installation images for Oracle Linux releases, including new releases. + False + True + GTK_JUSTIFY_LEFT +@@ -2819,7 +2819,7 @@ + + 460 + True +- Access to the technical support experts at Red Hat or Red Hat's partners for help with any issues you might encounter with this system. ++ Access to the technical support experts at Oracle for help with any issues you might encounter with this system. + False + True + GTK_JUSTIFY_LEFT +@@ -2917,7 +2917,7 @@ + + 460 + True +- Manage subscriptions and systems registered to Customer Portal via access.redhat.com or through one of our other subscription management services. ++ Manage subscriptions and systems registered to the Unbreakable Linux Network via linux.oracle.com. + False + True + GTK_JUSTIFY_LEFT +@@ -2932,7 +2932,7 @@ + False + 0 + +- Manage subscriptions and systems registered to Customer Portal via access.redhat.com or through one of our other subscription management services. ++ Manage subscriptions and systems registered to the Unbreakable Linux Network via linux.oracle.com. + + + +@@ -2986,7 +2986,7 @@ + + + True +- <small><b>Tip:</b> Red Hat values your privacy: http://www.redhat.com/legal/privacy_statement.html.</small> ++ <small><b>Tip:</b> Oracle values your privacy: http://www.oracle.com/us/legal/privacy/overview/index.html.</small> + False + True + GTK_JUSTIFY_LEFT +@@ -4055,7 +4055,7 @@ + + 600 + True +- Are you sure you don't want to register your system with Red Hat? You'll miss out on the benefits of a Red Hat Enterprise Linux Subscription: ++ Are you sure you don't want to register your system with Spacewalk? You'll miss out on the benefits of a Oracle Linux Subscription: + False + False + GTK_JUSTIFY_LEFT +@@ -4070,7 +4070,7 @@ + False + 0 + +- Are you sure you don't want to register your system with Red Hat? You'll miss out on the benefits of a Red Hat Enterprise Linux Subscription: ++ Are you sure you don't want to register your system with Oracle? You'll miss out on the benefits of a Oracle Linux Subscription: + + + +@@ -4162,7 +4162,7 @@ + + 460 + True +- Receive the latest software updates, including security updates, keeping this Red Hat Enterprise Linux system <b>updated</b> and <b>secure</b>. ++ Receive the latest software updates, including security updates, keeping this Oracle Linux system <b>updated</b> and <b>secure</b>. + False + True + GTK_JUSTIFY_LEFT +@@ -4257,7 +4257,7 @@ + + 460 + True +- Download installation images for Red Hat Enterprise Linux releases, including new releases. ++ Download installation images for Oracle Linux releases, including new releases. + False + True + GTK_JUSTIFY_LEFT +@@ -4352,7 +4352,7 @@ + + 460 + True +- Access to the technical support experts at Red Hat or Red Hat's partners for help with any issues you might encounter with this system. ++ Access to the technical support experts at Oracle for help with any issues you might encounter with this system. + False + True + GTK_JUSTIFY_LEFT +@@ -4451,7 +4451,7 @@ + 460 + True + True +- Manage subscriptions and systems registered to Customer Portal via access.redhat.com or through one of our other subscription management services. ++ Manage subscriptions and systems registered to the Unbreakable Linux Network via linux.oracle.com. + False + True + GTK_JUSTIFY_LEFT +@@ -4466,7 +4466,7 @@ + False + 0 + +- Manage subscriptions and systems registered to Customer Portal via access.redhat.com or through one of our other subscription management services. ++ Manage subscriptions and systems registered to the Unbreakable Linux Network via linux.oracle.com. + + + +@@ -4947,7 +4947,7 @@ + + + True +- This system has already been registered with RHN using RHN certificate-based technology. ++ This system has already been registered with ULN using ULN certificate-based technology. + False + False + GTK_JUSTIFY_LEFT +@@ -4972,7 +4972,7 @@ + + + True +- Your system is being registered again using RHN Classic technology. Red Hat recommends that customers only register once. ++ Your system is being registered again. Oracle recommends that customers only register once. + False + False + GTK_JUSTIFY_LEFT +@@ -4997,7 +4997,7 @@ + + + True +- To learn more about RHN registration and technologies please consult this Knowledge Base Article: <a href="https://access.redhat.com/kb/docs/DOC-45563">https://access.redhat.com/kb/docs/DOC-45563</a> ++ To learn more about Spacewalk registration and technologies please consult the Oracle Linux Documentation Library: <a href="http://docs.oracle.com/cd/E37670_01/index.html">http://docs.oracle.com/cd/E37670_01/index.html</a> + + False + True +@@ -5161,7 +5161,7 @@ + + + True +- puplet-screenshot.png ++ /usr/share/pixmaps/puplet-screenshot.png + 0.5 + 0.5 + 0 +@@ -5403,7 +5403,7 @@ + + + True +- <b>Tip:</b> Minor releases with a '*' are currently fully supported by Red Hat. ++ <b>Tip:</b> Minor releases with a '*' are currently fully supported by Oracle. + True + True + GTK_JUSTIFY_LEFT +@@ -5464,7 +5464,7 @@ + + + True +- <b>_All available updates</b> will be provided to this system. If kept updated, this system will always be equivalent to the latest minor release in the main 'Red Hat Enterprise Linux x' software channel. ++ <b>_All available updates</b> will be provided to this system. If kept updated, this system will always be equivalent to the latest minor release in the main 'Oracle Linux x' software channel. + True + True + GTK_JUSTIFY_LEFT +@@ -5479,7 +5479,7 @@ + False + 0 + +- All available updates will be provided to this system. If kept updated, this system will always be equivalent to the latest minor release in the main 'Red Hat Enterprise Linux x' software channel. ++ All available updates will be provided to this system. If kept updated, this system will always be equivalent to the latest minor release in the main 'Oracle Linux x' software channel. + + + +@@ -5698,7 +5698,7 @@ + + + True +- puplet-screenshot.png ++ /usr/share/pixmaps/puplet-screenshot.png + 0.5 + 0.5 + 0 +diff -ruN rhn-client-tools-2.7.16.orig/rhn_register.desktop.in rhn-client-tools-2.7.16/rhn_register.desktop.in +--- rhn-client-tools-2.7.16.orig/rhn_register.desktop.in 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/rhn_register.desktop.in 2017-08-25 12:59:14.417506710 -0700 +@@ -1,8 +1,8 @@ + [Desktop Entry] + Encoding=UTF-8 +-_Name=RHN Registration +-_GenericName=Register for software updates from Spacewalk/Red Hat Satellite/Red Hat Network Classic +-_Comment=Register to Spacewalk/Red Hat Satellite/Red Hat Network Classic. ++_Name=Spacewalk Registration ++_GenericName=Register for software updates from Spacewalk ++_Comment=Register to Spacewalk + Exec=rhn_register + Icon=up2date + Terminal=false +diff -ruN rhn-client-tools-2.7.16.orig/src/firstboot-legacy-rhel6/rhn_choose_server_gui.py rhn-client-tools-2.7.16/src/firstboot-legacy-rhel6/rhn_choose_server_gui.py +--- rhn-client-tools-2.7.16.orig/src/firstboot-legacy-rhel6/rhn_choose_server_gui.py 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/src/firstboot-legacy-rhel6/rhn_choose_server_gui.py 2017-08-25 12:59:14.484481715 -0700 +@@ -66,7 +66,7 @@ + try: + self.rhsmActive = False + if self.chooseServerPage.chooseServerPageApply() is False: +- interface.moveToPage(moduleTitle=_("Red Hat Account")) ++ interface.moveToPage(moduleTitle=_("Spacewalk account")) + return RESULT_JUMP + else: + return RESULT_FAILURE +diff -ruN rhn-client-tools-2.7.16.orig/src/firstboot-legacy-rhel6/rhn_login_gui.py rhn-client-tools-2.7.16/src/firstboot-legacy-rhel6/rhn_login_gui.py +--- rhn-client-tools-2.7.16.orig/src/firstboot-legacy-rhel6/rhn_login_gui.py 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/src/firstboot-legacy-rhel6/rhn_login_gui.py 2017-08-25 12:59:14.578448881 -0700 +@@ -37,8 +37,8 @@ + def __init__(self): + Module.__init__(self) + self.priority = 108.5 +- self.sidebarTitle = _("Red Hat Account") +- self.title = _("Red Hat Account") ++ self.sidebarTitle = _("Spacewalk account") ++ self.title = _("Spacewalk account") + + def needsNetwork(self): + return True +diff -ruN rhn-client-tools-2.7.16.orig/src/up2date_client/rhnreg_constants.py rhn-client-tools-2.7.16/src/up2date_client/rhnreg_constants.py +--- rhn-client-tools-2.7.16.orig/src/up2date_client/rhnreg_constants.py 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/src/up2date_client/rhnreg_constants.py 2017-08-25 12:59:14.648060321 -0700 +@@ -19,77 +19,77 @@ + COPYRIGHT_TEXT = _(u"Copyright © 2006--2014 Red Hat, Inc. All rights reserved.") + + # Satellite URL Window +-SATELLITE_URL_WINDOW = _("Enter your Red Hat Satellite URL.") +-SATELLITE_URL_TEXT = _("Please enter the location of your Red Hat Satellite " ++SATELLITE_URL_WINDOW = _("Enter your Spacewalk URL.") ++SATELLITE_URL_TEXT = _("Please enter the location of your Spacewalk " + "server and of its SSL " + "certificate. The SSL certificate is only required " + "if you will be connecting over https (recommended).") +-SATELLITE_URL_PROMPT = _("Satellite URL:") ++SATELLITE_URL_PROMPT = _("Spacewalk URL:") + SATELLITE_URL_PROMPT2 = _("SSL certificate:") +-SATELLITE_REQUIRED = _("You must enter a valid Satellite URL.") ++SATELLITE_REQUIRED = _("You must enter a valid Spacewalk URL.") + SSL_REQUIRED = _("If you are using https you must enter the location " + "of a valid SSL certificate.") + + # Connect Window + CONNECT_WINDOW = _("Attempting to contact the Spacewalk server.") +-CONNECT_WINDOW_TEXT = _("We are attempting to contact the Red Hat " +- "Network server at %s.") ++CONNECT_WINDOW_TEXT = _("We are attempting to contact the Spacewalk " ++ " server at %s.") + CONNECT_WINDOW_TEXT2 = _("A proxy was specified at %s.") + + # Start Window + START_REGISTER_WINDOW = _("System Registration") + START_REGISTER_TEXT = _("This assistant will guide you through " + "connecting your system to " +- "Red Hat Satellite to receive software " ++ "Spacewalk server to receive software " + "updates, including " + "security updates, to keep your system supported " + "and compliant. " + "You will need the following at this time:\n\n" + " * A network connection\n" +- " * Your Red Hat Login & password\n" +- " * The location of a Red Hat Satellite " +- "or Proxy\n\n") ++ " * Your Spacewalk Login & password\n" ++ " * The location of a Spacewalk server " ++ "or Spacewalk Proxy\n\n") + + # Why Register Window +-WHY_REGISTER = _("Why Should I Connect to RHN? ...") ++WHY_REGISTER = _("Why Should I Connect to Spacewalk? ...") + WHY_REGISTER_WINDOW = _("Why Register") +-WHY_REGISTER_TEXT = _("Connecting your system to Red Hat Satellite allows you to take full " ++WHY_REGISTER_TEXT = _("Connecting your system to Spacewalk allows you to take full " + "advantage of the benefits of a paid subscription, including:") + WHY_REGISTER_SEC = _("Security & Updates:") + WHY_REGISTER_DLD = _("Downloads & Upgrades:") + WHY_REGISTER_SUPP = _("Support:") + WHY_REGISTER_COMP = _("Compliance:") + WHY_REGISTER_SEC_TXT = _("Receive the latest software updates, including security updates, keeping this " +- "Red Hat Enterprise Linux system updated and secure.") +-WHY_REGISTER_DLD_TXT = _("Download installation images for Red Hat Enterprise Linux releases, " ++ "Oracle Linux system updated and secure.") ++WHY_REGISTER_DLD_TXT = _("Download installation images for Oracle Linux releases, " + "including new releases.") +-WHY_REGISTER_SUPP_TXT = _("Access to the technical support experts at Red Hat or Red Hat's partners for help " ++WHY_REGISTER_SUPP_TXT = _("Access to the technical support experts at Oracle for help " + "with any issues you might encounter with this system.") + WHY_REGISTER_COMP_TXT = _("Stay in compliance with your subscription agreement " + "and manage subscriptions " + "for systems connected to your account.") +-WHY_REGISTER_TIP = _("Tip: Red Hat values your privacy: " +- "http://www.redhat.com/legal/privacy_statement.html") ++WHY_REGISTER_TIP = _("Tip: Oracle values your privacy: " ++ "http://www.oracle.com/us/legal/privacy/overview/index.htm") + BACK_REGISTER = _("Take me back to the registration") + + # Confirm Quit Window + CONFIRM_QUIT = _("Software Update Not Set Up") +-CONFIRM_QUIT_SURE = _("Are you sure you don't want to connect your system to Red Hat Satellite? " +- "You'll miss out on the benefits of a Red Hat Enterprise Linux subscription:\n") ++CONFIRM_QUIT_SURE = _("Are you sure you don't want to connect your system to a Spacewalk server? " ++ "You'll miss out on the benefits of a Oracle Linux subscription:\n") + CONFIRM_QUIT_WILLNOT = _("You will not be able to take advantage of these subscription privileges without connecting " +- "your system to Red Hat Satellite.\n") ++ "your system to a Spacewalk server.\n") + CONTINUE_REGISTERING = _("Take me back to the setup process.") + REGISTER_LATER2 = _("I'll register later.") + + # Info Window +-REGISTER_WINDOW = _("Red Hat Account") +-LOGIN_PROMPT = _("Please enter your login information for the %s Red " +- "Hat Network Satellite:\n\n") +-HOSTED_LOGIN = _("Red Hat Login:") ++REGISTER_WINDOW = _("Spacewalk Account") ++LOGIN_PROMPT = _("Please enter your login information for the %s Spacewalk " ++ "server:\n\n") ++HOSTED_LOGIN = _("Spacewalk Login:") + LOGIN = _("Login:") + PASSWORD = _("Password:") + LOGIN_TIP = _("Tip: Forgot your login or password? Contact your " +- "Satellite's Organization Administrator.") ++ "Spacewalk's Organization Administrator.") + USER_REQUIRED = _("Please enter a desired login.") + PASSWORD_REQUIRED = _("Please enter and verify a password.") + +@@ -108,7 +108,7 @@ + HARDWARE_WINDOW = _("Create Profile - Hardware") + HARDWARE_WINDOW_DESC1 = _("A Profile Name is a descriptive name that" + " you choose to identify this System Profile" +- " on the Red Hat Satellite web pages. Optionally," ++ " on the Spacewalk web pages. Optionally," + " include a computer serial or identification number.") + HARDWARE_WINDOW_DESC2 = _("Additional hardware information including PCI" + " devices, disk sizes and mount points will be" +@@ -135,52 +135,50 @@ + SYSTEM_ALREADY_REGISTERED_CONT = _("Are you sure you would like to continue?") + + RHSM_SYSTEM_ALREADY_REGISTERED = _("This system has already been registered using Red Hat Subscription Management.\n\n" +- "Your system is being registered again using Red Hat Satellite" +- " or Red Hat Satellite Proxy technology. Red Hat recommends that customers only register once.\n\n" +- "To learn more about RHN Classic/Red Hat Satellite registration and technologies please consult this" +- " Knowledge Base Article: https://access.redhat.com/kb/docs/DOC-45563") ++ "Your system is being registered again to a Spacewalk server" ++ " or Spacewalk Proxy. Oracle recommends that customers only register once.\n\n" ++ "To learn more about Spacewalk registration and technologies please consult the" ++ " Spacewalk documentation library: http://docs.oracle.com/cd/E37670_01/index.html") + + # Send Window +-SEND_WINDOW = _("Send Profile Information to Red Hat Satellite") ++SEND_WINDOW = _("Send Profile Information to Spacewalk") + SEND_WINDOW_DESC = _("We are finished collecting information for the System Profile.\n\n" +- "Press \"Next\" to send this System Profile to Red Hat Satellite. " ++ "Press \"Next\" to send this System Profile to Spacewalk. " + "Click \"Cancel\" and no information will be sent. " + "You can run the registration program later by " + "typing `rhn_register` at the command line.") + + # Sending Window +-SENDING_WINDOW = _("Sending Profile to Red Hat Satellite") ++SENDING_WINDOW = _("Sending Profile to Spacewalk") + + # Finish Window + FINISH_WINDOW = _("Updates Configured") + FINISH_WINDOW_TEXT_TUI = _("You may now run '%s update' from this system's " + "command line to get the latest " +- "software updates from Red Hat Satellite. You will need to run this " ++ "software updates from Spacewalk. You will need to run this " + "periodically to " + "get the latest updates. Alternatively, you may configure this " + "system for automatic software updates (also known as 'auto errata update') " +- "via the Red Hat Satellite web interface. (Instructions for this are in chapter 6 " +- "of the RHN Reference Guide, available from the 'Help' button in the main Red " +- "Hat Network Satellite web interface.)") % PM_NAME ++ "via the Spacewalk web interface. (Instructions for this are in chapter 6 " ++ "of the Reference Guide, available from the 'Help' button in the main " ++ "Spacewalk web interface.)") % PM_NAME + + # Review Window + REVIEW_WINDOW = _("Review Subscription") + REVIEW_WINDOW_PROMPT = _("Please review the subscription details below:") + SUB_NUM = _("The installation number %s was activated during " +- "this system's initial connection to Red Hat Satellite.") ++ "this system's initial connection to Spacewalk.") + SUB_NUM_RESULT = _("Subscriptions have been activated for the following " +- "Red Hat products/services:") ++ "Oracle products/services:") + CHANNELS_TITLE = _("Software Channel Subscriptions:") + OK_CHANNELS = _("This system will receive updates from the " + "following software channels:") + CHANNELS_SAT_WARNING = _("Warning: Only installed product listed above will receive " + "updates and support. If you would like " + "to receive updates for additional products, please " +- "login to your satellite web interface " ++ "login to your Spacewalk web interface " + "and subscribe this system to the appropriate " +- "software channels. See Kbase article " +- "for more details. " +- "(http://kbase.redhat.com/faq/docs/DOC-11313)") ++ "software channels. ") + PM_PLUGIN_WARNING = _("Warning: %s is not present, could not enable it.\n" + "Automatic updates will not work.") % (PM_PLUGIN_NAME) + PM_PLUGIN_CONF_CHANGED = _("Note: %s has been enabled.") % (PM_PLUGIN_NAME) +@@ -193,17 +191,17 @@ + NO_BASE_CHANNEL = _( + "This system was unable to subscribe to any software channels. Your system " + "will not receive any software updates to keep it secure and supported. " +-"Contact your Satellite administrator about this problem. Once you make the " ++"Contact your Spacewalk administrator about this problem. Once you make the " + "appropriate active subscriptions available in your account, you may browse " +-"to this system's profile in the RHN web interface and subscribe this system " ++"to this system's profile in the Spacewalk web interface and subscribe this system " + "to software channels via the software > software channels tab.") + SLOTS_TITLE = _("Service Level:") +-OK_SLOTS = _("Depending on what Red Hat Satellite modules are associated with a system, you'll " ++OK_SLOTS = _("Depending on what Spacewalk modules are associated with a system, you'll " + "enjoy different benefits. The following are the " +- "Red Hat Satellite modules associated with this system:") ++ "Spacewalk modules associated with this system:") + SLOTS = SLOTS_TITLE + "\n" + OK_SLOTS + "\n%s" + FAILED_SLOTS = _("This system was unable to be associated with the " +- "following RHN module(s) because there were " ++ "following Spacewalk module(s) because there were " + "insufficient subscriptions available in your account:") + MANAGEMENT = _("Management module: automatic updates, systems " + "grouping, systems permissions, system package profiling, " +@@ -215,40 +213,38 @@ + + + VIRT_FAILED = _("Warning: Any guest systems you create on this system " +- "and register to RHN will consume Red Hat Enterprise Linux " ++ "and register to Spacewalk will consume " + "subscriptions beyond this host system's subscription. You will need " + "to: (1) make a virtualization system entitlement available and " + "(2) apply that system entitlement to this " +- "system in RHN's web interface if you do not want virtual guests of " ++ "system in Spacewalk's web interface if you do not want virtual guests of " + "this system to consume additional subscriptions.") + + NO_SYS_ENTITLEMENT = _("This system was unable to be associated with " +-"any RHN service level modules. This system will not receive any software " +-"updates to keep it secure and supported. Contace your Satellite administrator " ++"any Spacewalk service level modules. This system will not receive any software " ++"updates to keep it secure and supported. Contace your Spacewalk administrator " + "about this problem. Once you make the " + "appropriate active subscriptions available in your account, you may browse " +-"to this system's profile in the RHN web interface, delete the profile, and " +-"re-connect this system to Red Hat Satellite.") ++"to this system's profile in the Spacewalk web interface, delete the profile, and " ++"re-connect this system to the Spacewalk server.") + ACTIVATION_KEY = _("Universal default activation key detected\n" + "A universal default activation key was detected in your account. " + "This means that a set of properties (software channel subscriptions, " + "package installations, system group memberships, etc.) " +- "for your system's connection to Red Hat Satellite or Red Hat Satellite Proxy" ++ "for your system's connection to Spacewalk or a Spacewalk Proxy" + "have been determined by the activation key rather than your " + "installation number. " +- "You may also refer to the RHN Reference Guide, section 6.4.6 for more details " +- "about activation keys (http://access.redhat.com/knowledge/docs/Red_Hat_Network/)\n" + "Universal Default activation key: %s") + + # Error Messages. + FATAL_ERROR = _("Fatal Error") + WARNING = _("Warning") +-HOSTED_CONNECTION_ERROR = _("We can't contact the Red Hat Satellite.\n\n" ++HOSTED_CONNECTION_ERROR = _("We can't contact Spacewalk.\n\n" + "Double check the location provided - is '%s' correct?\n" + "If not, you can correct it and try again.\n\n" + "Make sure that the network connection on this system is operational.\n\n" + "This system will not be able to successfully receive software updates " +- "from Red Hat without connecting to a Red Hat Satellite server") ++ "from Red Hat without connecting to a Spacewalk server") + + BASECHANNELERROR = _("Architecture: %s, OS Release: %s, OS " + "Version: %s") +@@ -260,7 +256,7 @@ + + SSL_CERT_ERROR_MSG = _("Incompatible Certificate File\n\n" + "The certificate you provided, %s, is not compatible with " +- " the Red Hat Satellite server at %s. You may want to double-check" ++ " the Spacewalk server at %s. You may want to double-check" + " that you have provided a valid certificate file." + " Are you sure you have provided the correct certificate, and that" + " the certificate file has not been corrupted?\n\n" +@@ -273,24 +269,21 @@ + SSL_CERT_FILE_NOT_FOUND_ERRER = _("Please verify the values of sslCACert and serverURL in " + "/etc/sysconfig/rhn/up2date. You can either make the " + "serverURL use http instead of https, or you can " +- "download the SSL cert from your Satellite, place it " ++ "download the SSL cert from your Spacewalk server, place it " + "in /usr/share/rhn, and ensure sslCACert points to it.") + + ACT_KEY_USAGE_LIMIT_ERROR = _("Problem registering system.\n\n" + "A universal default activation key limits the " + "number of systems which can connect to " +- "the RHN organization associated with your " ++ "the Spacewalk organization associated with your " + "login. To allow this system to connect, " +- "please contact your RHN organization " ++ "please contact your Spacewalk organization " + "administrator to increase the number of " + "systems allowed to connect or to disable " +- "this universal default activation key. " +- "More details can be found in Red Hat " +- "Knowledgebase Article #7924 at " +- "http://kbase.redhat.com/faq/FAQ_61_7924.shtm ") ++ "this universal default activation key. ") + + CHANNEL_PAGE_TIP = _("\n Tip: Minor releases with a '*' are currently" +- " supported by Red Hat.\n\n") ++ " supported by Oracle.\n\n") + + CHANNEL_PAGE_WARNING = _("Warning:You will not be able to limit this" + " system to minor release that is older than" +diff -ruN rhn-client-tools-2.7.16.orig/src/up2date_client/rhnregGui.py rhn-client-tools-2.7.16/src/up2date_client/rhnregGui.py +--- rhn-client-tools-2.7.16.orig/src/up2date_client/rhnregGui.py 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/src/up2date_client/rhnregGui.py 2017-08-25 12:59:14.742079268 -0700 +@@ -329,7 +329,7 @@ + log.log_exception(*sys.exc_info()) + protocol, host, path, parameters, query, fragmentIdentifier = urlparse.urlparse(config.getServerlURL()[0]) + dialog = messageWindow.BulletedOkDialog(_("Cannot contact selected server")) +- dialog.add_text(_("We could not contact the Satellite or Proxy " ++ dialog.add_text(_("We could not contact the Spacewalk server or Proxy " + "at '%s.'") % host) + dialog.add_bullet(_("Double-check the location - is '%s' " + "correct? If not, you can correct it and " +@@ -1324,7 +1324,7 @@ + logFile = cfg['logFile'] or '/var/log/up2date' + message = message + "\n" + (_("This error shouldn't have happened. If you'd " + "like to help us improve this program, please " +- "file a bug at bugzilla.redhat.com. Including " ++ "file a SR at My Oracle Support . Including " + "the relevant parts of '%s' would be very " + "helpful. Thanks!") % logFile) + errorWindow(message) +diff -ruN rhn-client-tools-2.7.16.orig/src/up2date_client/up2dateErrors.py rhn-client-tools-2.7.16/src/up2date_client/up2dateErrors.py +--- rhn-client-tools-2.7.16.orig/src/up2date_client/up2dateErrors.py 2017-08-09 09:58:44.000000000 -0700 ++++ rhn-client-tools-2.7.16/src/up2date_client/up2dateErrors.py 2017-08-25 12:59:14.835558916 -0700 +@@ -300,11 +300,9 @@ + def changeExplanation(self, msg): + newExpln = _(""" + Your organization does not have enough Management entitlements to register this +- system to Red Hat Satellite. Please notify your organization administrator of this error. ++ system to Spacewalk. Please notify your organization administrator of this error. + You should be able to register this system after your organization frees existing +- or purchases additional entitlements. Additional entitlements may be purchased by your +- organization administrator by logging into Red Hat Network Classic and visiting +- the 'Subscription Management' page in the 'Your RHN' section of RHN. ++ or purchases additional entitlements. + + A common cause of this error code is due to having mistakenly setup an + Activation Key which is set as the universal default. If an activation key is set diff --git a/SOURCES/rhn-client-tools-2.10.10-1.0.6.el9-to-rhn-client-tools-2.10.10-1.0.7.el9.patch b/SOURCES/rhn-client-tools-2.10.10-1.0.6.el9-to-rhn-client-tools-2.10.10-1.0.7.el9.patch new file mode 100644 index 0000000..4ebf949 --- /dev/null +++ b/SOURCES/rhn-client-tools-2.10.10-1.0.6.el9-to-rhn-client-tools-2.10.10-1.0.7.el9.patch @@ -0,0 +1,19 @@ +This is to fix OL9 systems to register with ULN. The platform dist no longer available +in OL9 and dist not used in up2dateErrors.py file. The fix is to remove unused dist from +up2dateErrors.py file. + +Orabug: 33858443 +Signed-off-by: PSM Swamiji +Signed-off-by: Darren Archibald +--- +diff -ruN rhn-client-tools-2.10.10/src/up2date_client/up2dateErrors.py.orig rhn-client-tools-2.10.10/src/up2date_client/up2dateErrors.py +--- rhn-client-tools-2.10.10/src/up2date_client/up2dateErrors.py.orig 2022-02-22 09:28:17.442866600 +0530 ++++ rhn-client-tools-2.10.10/src/up2date_client/up2dateErrors.py 2022-02-22 10:32:09.148452800 +0530 +@@ -27,7 +27,6 @@ + t.ugettext = t.gettext + _ = t.ugettext + import OpenSSL +-from platform import dist + from rhn.i18n import ustr + from up2date_client import config + from up2date_client import up2dateLog diff --git a/SPECS/rhn-client-tools.spec b/SPECS/rhn-client-tools.spec new file mode 100644 index 0000000..47f0cdf --- /dev/null +++ b/SPECS/rhn-client-tools.spec @@ -0,0 +1,1600 @@ +%if 0%{?fedora} || 0%{?suse_version} > 1320 || 0%{?rhel} >= 8 || 0%{?mageia} +%global build_py3 1 +%global default_py3 1 +%endif + +%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 || 0%{?mageia} +%global py3_deps 1 +%endif + +# python2 libs are needed only for server, this version is for client +%global build_py2 0 + +%{!?_presetdir:%global _presetdir /lib/systemd/system-preset} +%if "%{_vendor}" == "debbuild" +# Bash constructs in scriptlets don't play nice with Debian's default shell, dash +%global _buildshell /bin/bash +%endif + +%{!?__python2:%global __python2 /usr/bin/python2} +%{!?__python3:%global __python3 /usr/bin/python3} + +%if %{undefined python2_version} +%global python2_version %(%{__python2} -Esc "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))") +%endif + +%if %{undefined python3_version} +%global python3_version %(%{__python3} -Ic "import sys; sys.stdout.write(sys.version[:3])") +%endif + +%if %{undefined python2_sitelib} +%global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") +%endif + +%if %{undefined python3_sitelib} +%global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") +%endif + +%if "%{_vendor}" == "debbuild" +# For making sure we can set the right args for deb distros +%global is_deb 1 +%endif + +%define pythonX %{?default_py3: python3}%{!?default_py3: python2} + +Summary: Support programs and libraries for Red Hat Satellite or Spacewalk +Name: rhn-client-tools +Version: 2.10.10 +Release: 1.0.8%{?dist} +%if "%{_vendor}" == "debbuild" +Group: admin +Packager: Spacewalk Project +%endif +License: GPLv2 +Source0: %{name}-%{version}.tar.gz +URL: https://github.com/spacewalkproject/spacewalk +Patch100: oracle-source-code-offer-client.patch +Patch101: oracle-spacewalk-code.patch +Patch102: bug26895848.patch +Patch103: 103-Disable-local-Oracle-public-yum-repos-after-registra.patch +Patch104: 104-Handle-dmidecode-dependencies-for-OL8-aarch64-builds.patch +Patch1000: rhn-client-tools-2.10.10-1.0.6.el9-to-rhn-client-tools-2.10.10-1.0.7.el9.patch +Patch1001: 1001-fix-base64-encoding-Bug34372838.patch + +%if 0%{?suse_version} +BuildRequires: update-desktop-files +%endif + +%if "%{_vendor}" != "debbuild" +Requires: rpm >= 4.2.3-24_nonptl +Requires: /usr/bin/gpg +Requires: coreutils + +%if 0%{?suse_version} +Requires: zypper +%else +%if 0%{?fedora} || 0%{?rhel} >= 8 || 0%{?mageia} >= 6 +Requires: dnf +%else +Requires: yum +%endif # 0%{?fedora} +%endif # 0%{?suse_version} +%endif + +%if "%{_vendor}" == "debbuild" +Requires: apt +%if 0%{?ubuntu} >= 1804 +Requires: gpg +%else +Requires: gnupg +%endif +Requires: coreutils +%endif +BuildRequires: rpm + +Requires: %{pythonX}-%{name} = %{version}-%{release} + +Conflicts: up2date < 5.0.0 +Conflicts: yum-rhn-plugin < 1.6.4-1 +Conflicts: rhncfg < 5.9.23-1 +Conflicts: spacewalk-koan < 0.2.7-1 +Conflicts: rhn-kickstart < 5.4.3-1 +Conflicts: rhn-virtualization-host < 5.4.36-2 + +BuildRequires: gettext +BuildRequires: intltool +BuildRequires: desktop-file-utils + +%if 0%{?fedora} +BuildRequires: fedora-logos +BuildRequires: dnf +%endif + +%if 0%{?mageia} >= 6 +BuildRequires: dnf +%endif + +%if 0%{?rhel} +BuildRequires: redhat-logos +%if 0%{?rhel} >= 8 +BuildRequires: dnf +%else +BuildRequires: yum +%endif +%endif + +%description +Red Hat Satellite Client Tools provides programs and libraries to allow your +system to receive software updates from Red Hat Satellite or Spacewalk. + +%if 0%{?build_py2} +%package -n python2-%{name} +Summary: Support programs and libraries for Red Hat Satellite or Spacewalk +%{?python_provide:%python_provide python2-%{name}} +%if "%{_vendor}" == "debbuild" +Group: python +%endif +Requires: %{name} = %{version}-%{release} +Requires: rhnlib >= 2.5.78 + +%if "%{_vendor}" != "debbuild" + +%if 0%{?fedora} || 0%{?rhel} >= 8 +Requires: pygobject2 +Requires: libgudev +%else +%if 0%{?suse_version} >= 1140 +Requires: python-pyudev +%else +Requires: python-gudev +%endif # 0%{?suse_version} >= 1140 +%endif # 0%{?fedora} + +%if 0%{?rhel} || 0%{?fedora} +%if 0%{?py3_deps} +Requires: python2-newt +%else +Requires: newt-python +%endif +%endif + +%if 0%{?suse_version} +Requires: dbus-1-python +Requires: python-newt +%else +%if 0%{?mageia} +Requires: python-dbus +%else +%if 0%{?py3_deps} +%if ! 0%{?rhel} >= 8 +Requires: python2-dbus +%endif +%else +Requires: dbus-python +%endif +%endif # 0%{?mageia} +%endif # 0%{?suse_version} + +%if 0%{?py3_deps} +Requires: python2-rpm +BuildRequires: python2-devel +BuildRequires: python2-rpm +%if 0%{?mageia} +%ifarch x86_64 +Requires: python-dmidecode +%endif +Requires: python-ethtool >= 0.4 +Requires: python-hwdata +BuildRequires: python-coverage +%else +%ifarch x86_64 +Requires: python2-dmidecode +%endif +Requires: python2-ethtool >= 0.4 +Requires: python2-hwdata +BuildRequires: python2-coverage +%endif +%else +Requires: rpm-python +%ifarch x86_64 +Requires: python-dmidecode +%endif +Requires: python-ethtool >= 0.4 +BuildRequires: python-devel +Requires: python-hwdata +BuildRequires: rpm-python +BuildRequires: python-coverage +%endif +%endif + +%if "%{_vendor}" == "debbuild" +Requires: python-rpm +%ifarch x86_64 +Requires: python-dmidecode +%endif +Requires: python-ethtool >= 0.4 +BuildRequires: python-dev +Requires: python2-hwdata +BuildRequires: python-rpm +BuildRequires: python-coverage +Requires: gir1.2-gudev-1.0 +Requires: python-gi +Requires: python-pyudev +Requires: python-dbus +Requires: python-newt +Requires(preun): python-minimal +Requires(post): python-minimal +%endif + +# The following BuildRequires are for check only +Requires: rhnlib >= 2.5.78 + +%description -n python2-%{name} +Python 2 specific files of %{name}. +%endif + +%if 0%{?build_py3} +%package -n python3-%{name} +Summary: Support programs and libraries for Red Hat Satellite or Spacewalk +%{?python_provide:%python_provide python3-%{name}} +%if "%{_vendor}" == "debbuild" +Group: python +%endif +Requires: %{name} = %{version}-%{release} + +%if "%{_vendor}" != "debbuild" +%if 0%{?suse_version} >= 1140 +Requires: python3-dbus-python +Requires: python3-newt +Requires: python3-pyudev +%else +Requires: libgudev +Requires: python3-dbus +%if 0%{?mageia} +Requires: python3-newt +Requires: python3-gobject3 +%else +Requires: newt-python3 +Requires: python3-gobject-base +%endif # 0%{?mageia} +%endif # 0%{?suse_version} >= 1140 +BuildRequires: python3-devel +%endif + +Requires: python3-rpm +%ifarch x86_64 +Requires: python3-dmidecode +%endif +Requires: python3-netifaces +Requires: python3-hwdata +Requires: python3-rhnlib >= 2.5.78 + +%if "%{_vendor}" == "debbuild" +BuildRequires: python3-dev +Requires: python3-dbus +Requires: python3-newt +Requires: gir1.2-gudev-1.0 +Requires: python3-pyudev +Requires: python3-gi +Requires(preun): python3-minimal +Requires(post): python3-minimal +%endif + +# The following BuildRequires are for check only +BuildRequires: python3-coverage +BuildRequires: python3-rpm +Requires: python3-rhnlib >= 2.5.78 + +%description -n python3-%{name} +Python 3 specific files of %{name}. +%endif + +%package -n rhn-check +Summary: Check for RHN actions +Requires: %{name} = %{version}-%{release} +Requires: %{pythonX}-rhn-check = %{version}-%{release} +%if "%{_vendor}" != "debbuild" +%if 0%{?suse_version} +Requires: zypp-plugin-spacewalk +%else +%if 0%{?fedora} || 0%{?rhel} >= 8 || 0%{?mageia} >= 6 +Requires: dnf-plugin-spacewalk >= 2.4.0 +%else +Requires: yum-rhn-plugin >= 1.6.4-1 +%endif +%endif +%endif + +%if "%{_vendor}" == "debbuild" +Requires: apt-transport-spacewalk +%endif + +%description -n rhn-check +rhn-check polls a Red Hat Satellite or Spacewalk server to find and execute +scheduled actions. + +%if 0%{?build_py2} +%package -n python2-rhn-check +Summary: Check for RHN actions +%{?python_provide:%python_provide python2-rhn-check} +Requires: rhn-check = %{version}-%{release} + +%if "%{_vendor}" == "debbuild" +Requires(preun): python-minimal +Requires(post): python-minimal +%endif + +%description -n python2-rhn-check +Python 2 specific files for rhn-check. +%endif + +%if 0%{?build_py3} +%package -n python3-rhn-check +Summary: Support programs and libraries for Red Hat Satellite or Spacewalk +%{?python_provide:%python_provide python3-rhn-check} +Requires: rhn-check = %{version}-%{release} + +%if "%{_vendor}" == "debbuild" +Requires(preun): python3-minimal +Requires(post): python3-minimal +%endif + +%description -n python3-rhn-check +Python 3 specific files for rhn-check. +%endif + + +%package -n rhn-setup +Summary: Configure and register an RHN/Spacewalk client +Requires: %{pythonX}-rhn-setup = %{version}-%{release} +%if 0%{?fedora} || 0%{?rhel} || 0%{?debian} || 0%{?ubuntu} +Requires: usermode >= 1.36 +%endif +%if 0%{?mageia} +Requires: usermode-consoleonly >= 1.36 +%endif +Requires: %{name} = %{version}-%{release} +Requires: rhnsd + +%description -n rhn-setup +rhn-setup contains programs and utilities to configure a system to use +Red Hat Satellite or Spacewalk, and to register a system with a Red Hat Satellite or Spacewalk server. + +%if 0%{?build_py2} +%package -n python2-rhn-setup +Summary: Configure and register an RHN/Spacewalk client +%{?python_provide:%python_provide python2-rhn-setup} +Requires: rhn-setup = %{version}-%{release} +%if 0%{?fedora} || 0%{?rhel} +Requires: newt-python +%endif +%if 0%{?mageia} || 0%{?debian} || 0%{?ubuntu} +Requires: python-newt +%endif + +%if "%{_vendor}" == "debbuild" +Requires(preun): python-minimal +Requires(post): python-minimal +%endif + +%description -n python2-rhn-setup +Python 2 specific files for rhn-setup. +%endif + +%if 0%{?build_py3} +%package -n python3-rhn-setup +Summary: Configure and register an RHN/Spacewalk client +%{?python_provide:%python_provide python3-rhn-setup} +Requires: rhn-setup = %{version}-%{release} +%if 0%{?mageia} || 0%{?debian} || 0%{?ubuntu} || 0%{?suse_version} >= 1140 +Requires: python3-newt +%else +Requires: newt-python3 +%endif + +%if "%{_vendor}" == "debbuild" +Requires(preun): python3-minimal +Requires(post): python3-minimal +%endif + +%description -n python3-rhn-setup +Python 3 specific files for rhn-setup. +%endif + + +%package -n rhn-setup-gnome +Summary: A GUI interface for RHN/Spacewalk Registration +Requires: %{name} = %{version}-%{release} +Requires: %{pythonX}-rhn-setup = %{version}-%{release} +Requires: %{pythonX}-rhn-setup-gnome = %{version}-%{release} +Requires: rhn-setup = %{version}-%{release} + +%if "%{_vendor}" == "debbuild" +Requires: libpam0g +Requires: libpam-modules +Requires: libpam-runtime +Requires: libpam-gnome-keyring +%else +Requires: pam >= 0.72 +%endif + + +%description -n rhn-setup-gnome +rhn-setup-gnome contains a GTK+ graphical interface for configuring and +registering a system with a Red Hat Satellite or Spacewalk server. + +%if 0%{?build_py2} +%package -n python2-rhn-setup-gnome +Summary: Configure and register an RHN/Spacewalk client +%{?python_provide:%python_provide python2-rhn-setup-gnome} +Requires: rhn-setup-gnome = %{version}-%{release} +%if "%{_vendor}" != "debbuild" +%if 0%{?suse_version} +Requires: python-gnome python-gtk +%else +%if 0%{?mageia} +Requires: pygtk2.0 pygtk2.0-libglade +Requires: usermode +%else +Requires: pygtk2 pygtk2-libglade +Requires: usermode-gtk +%endif +%endif + +%if 0%{?rhel} || 0%{?fedora} +Requires: liberation-sans-fonts +%endif +%if 0%{?mageia} +Requires: fonts-ttf-liberation +%endif +%if 0%{?suse_version} +Requires: liberation-fonts +%endif +%endif + +%if "%{_vendor}" == "debbuild" +Requires: python-gnome2 +Requires: python-gtk2 +Requires: python-glade2 +Requires: usermode +Requires: fonts-liberation +Requires(preun): python-minimal +Requires(post): python-minimal +%endif + +%description -n python2-rhn-setup-gnome +Python 2 specific files for rhn-setup-gnome. +%endif + +%if 0%{?build_py3} +%package -n python3-rhn-setup-gnome +Summary: Configure and register an RHN/Spacewalk client +%{?python_provide:%python_provide python3-rhn-setup-gnome} +Requires: rhn-setup-gnome = %{version}-%{release} +# gtk-builder-convert +%if "%{_vendor}" != "debbuild" +BuildRequires: gtk2-devel +BuildRequires: python3 +Requires: gtk3 +%if 0%{?suse_version} +Requires: python3-gobject +BuildRequires: python2-xml +%else +%if 0%{?mageia} +Requires: python3-gobject3 +%else +Requires: python3-gobject-base +%endif +%endif +%if 0%{?rhel} || 0%{?fedora} +Requires: liberation-sans-fonts +%endif +%if 0%{?mageia} +Requires: fonts-ttf-liberation +%endif +%if 0%{?suse_version} +Requires: liberation-fonts +%endif +%endif + +%if "%{_vendor}" == "debbuild" +BuildRequires: libgtk2.0-dev +Requires: libgtk-3-bin +Requires: gir1.2-gtk-3.0 + +Requires: python3-gi +Requires: fonts-liberation +Requires(preun): python3-minimal +Requires(post): python3-minimal +%endif + +%description -n python3-rhn-setup-gnome +Python 3 specific files for rhn-setup-gnome. +%endif + +# No debug builds +%define debug_package %{nil} + +%prep +%setup -q +#Oracle patches +%patch100 -p1 +%patch101 -p1 +%patch102 -p1 +%patch103 -p4 +%patch104 -p4 +%patch1000 -p1 +%patch1001 -p1 + +%build +make -f Makefile.rhn-client-tools %{?is_deb:PLATFORM=deb} + +%install +%if 0%{?build_py2} +make -f Makefile.rhn-client-tools install VERSION=%{version}-%{release} \ + PYTHONPATH=%{python2_sitelib} PYTHONVERSION=%{python2_version} \ + PREFIX=$RPM_BUILD_ROOT MANPATH=%{_mandir} %{?is_deb:PLATFORM=deb} +%endif +%if 0%{?build_py3} +sed -i 's|#!/usr/bin/python2|#!/usr/bin/python3|' src/actions/*.py src/bin/*.py test/*.py +make -f Makefile.rhn-client-tools %{?is_deb:PLATFORM=deb} +for g in data/*.glade ; do + mv $g $g.old + python3 /usr/bin/gtk-builder-convert $g.old $g +done +sed -i 's/GTK_PROGRESS_LEFT_TO_RIGHT/horizontal/' data/progress.glade +sed -i 's/GtkComboBox/GtkComboBoxText/; /property name="has_separator"/ d;' data/rh_register.glade +sed -i '/class="GtkVBox"/ { + s/GtkVBox/GtkBox/; + a \ \ \ \ \ \ \ \ vertical + }' data/gui.glade +make -f Makefile.rhn-client-tools install VERSION=%{version}-%{release} \ + PYTHONPATH=%{python3_sitelib} PYTHONVERSION=%{python3_version} \ + PREFIX=$RPM_BUILD_ROOT MANPATH=%{_mandir} %{?is_deb:PLATFORM=deb} +%endif + +ln -sf consolehelper $RPM_BUILD_ROOT%{_bindir}/rhn_register +ln -s spacewalk-channel $RPM_BUILD_ROOT%{_sbindir}/rhn-channel + +mkdir -p $RPM_BUILD_ROOT/var/lib/up2date +mkdir -pm700 $RPM_BUILD_ROOT%{_localstatedir}/spool/up2date +touch $RPM_BUILD_ROOT%{_localstatedir}/spool/up2date/loginAuth.pkl +%if 0%{?fedora} || 0%{?mageia} || 0%{?debian} >= 8 || 0%{?ubuntu} >= 1504 +mkdir -p $RPM_BUILD_ROOT/%{_presetdir} +install 50-spacewalk-client.preset $RPM_BUILD_ROOT/%{_presetdir} +%endif + +%if 0%{?build_py2} +%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} >= 1140 || 0%{?mageia} || 0%{?debian} || 0%{?ubuntu} +rm $RPM_BUILD_ROOT%{python2_sitelib}/up2date_client/hardware_hal.* +%else +rm $RPM_BUILD_ROOT%{python2_sitelib}/up2date_client/hardware_gudev.* +rm $RPM_BUILD_ROOT%{python2_sitelib}/up2date_client/hardware_udev.* +%endif +%endif + +%if 0%{?rhel} == 6 +rm -rf $RPM_BUILD_ROOT%{_datadir}/firstboot/modules/rhn_*_*.* +%endif +%if ! 0%{?rhel} || 0%{?rhel} > 6 +%if 0%{?build_py2} +rm -rf $RPM_BUILD_ROOT%{python2_sitelib}/up2date_client/firstboot +%endif +rm -rf $RPM_BUILD_ROOT%{_datadir}/firstboot/ +%endif +%if 0%{?build_py3} +rm -rf $RPM_BUILD_ROOT%{python3_sitelib}/up2date_client/firstboot +%endif + +desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications --vendor=rhn rhn_register.desktop +mkdir -p $RPM_BUILD_ROOT/usr/share/metainfo/ +install rhn_register.appdata.xml $RPM_BUILD_ROOT/usr/share/metainfo/ +%if 0%{?suse_version} +%suse_update_desktop_file -r rhn_register "Settings;System;SystemSetup;" +# no usermod on SUSE +rm -f $RPM_BUILD_ROOT%{_bindir}/rhn_register +%endif + +%if "%{_vendor}" != "debbuild" +%find_lang %{name} +%endif + +# create links to default script version +%define default_suffix %{?default_py3:-%{python3_version}}%{!?default_py3:-%{python2_version}} +for i in \ + /usr/sbin/rhn-profile-sync \ + /usr/sbin/rhn_check \ + /usr/sbin/rhn_register \ + /usr/sbin/rhnreg_ks \ + /usr/sbin/spacewalk-channel \ +; do + ln -s $(basename "$i")%{default_suffix} "$RPM_BUILD_ROOT$i" +done + +%if 0%{?suse_version} +%if 0%{?build_py2} +%py_compile -O %{buildroot}/%{python2_sitelib} +%endif +%if 0%{?build_py3} +%py3_compile -O %{buildroot}/%{python3_sitelib} +%endif +%endif + +%post +rm -f %{_localstatedir}/spool/up2date/loginAuth.pkl + +%if ! 0%{?build_py3} +%post -n rhn-setup-gnome +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +# See posttrans section below +%if "%{_vendor}" == "debbuild" +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +%endif + +%postun -n rhn-setup-gnome +%if "%{_vendor}" != "debbuild" +if [ $1 -eq 0 ] ; then +%endif +%if "%{_vendor}" == "debbuild" +if [[ "$1" == "purge" || "$1" == "remove" ]]; then +%endif + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +# This macro doesn't exist for debbuild. I'm shoving this into post instead. +%if "%{_vendor}" != "debbuild" +%posttrans -n rhn-setup-gnome +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +%endif +%endif + +%if 0%{?fedora} +%check + +make -f Makefile.rhn-client-tools test +%endif + +%if "%{_vendor}" == "debbuild" +%files +# No find_lang on Debian systems +%{_datadir}/locale/ +/var/lib/up2date/ +%else +%files -f %{name}.lang +%endif +# some info about mirrors +%doc doc/mirrors.txt +%doc doc/AUTHORS +%doc doc/LICENSE +%{_mandir}/man8/rhn-profile-sync.8* +%{_mandir}/man5/up2date.5* + +%dir %{_sysconfdir}/sysconfig/rhn +%dir %{_sysconfdir}/sysconfig/rhn/clientCaps.d +%dir %{_sysconfdir}/sysconfig/rhn/allowed-actions +%dir %{_sysconfdir}/sysconfig/rhn/allowed-actions/configfiles +%dir %{_sysconfdir}/sysconfig/rhn/allowed-actions/script +%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/sysconfig/rhn/up2date +%config(noreplace) %{_sysconfdir}/logrotate.d/up2date + +# dirs +%dir %{_datadir}/rhn +%dir %{_localstatedir}/spool/up2date + +%{_sbindir}/rhn-profile-sync + +%ghost %attr(600,root,root) %verify(not md5 size mtime) %{_localstatedir}/spool/up2date/loginAuth.pkl + +#public keys and certificates +%{_datadir}/rhn/RHNS-CA-CERT +%{_datadir}/rhn/ULN-CA-CERT + +%if 0%{?fedora} || 0%{?mageia} || 0%{?debian} >= 8 || 0%{?ubuntu} >= 1504 +%{_presetdir}/50-spacewalk-client.preset +%endif + +%if 0%{?build_py2} +%files -n python2-%{name} +%{_sbindir}/rhn-profile-sync-%{python2_version} +%dir %{python2_sitelib}/up2date_client/ +%{python2_sitelib}/up2date_client/__init__.* +%{python2_sitelib}/up2date_client/config.* +%{python2_sitelib}/up2date_client/haltree.* +%{python2_sitelib}/up2date_client/hardware* +%{python2_sitelib}/up2date_client/up2dateUtils.* +%{python2_sitelib}/up2date_client/up2dateLog.* +%{python2_sitelib}/up2date_client/up2dateErrors.* +%{python2_sitelib}/up2date_client/up2dateAuth.* +%{python2_sitelib}/up2date_client/rpcServer.* +%{python2_sitelib}/up2date_client/rhnserver.* +%{python2_sitelib}/up2date_client/pkgUtils.* +%{python2_sitelib}/up2date_client/rpmUtils.* +%{python2_sitelib}/up2date_client/debUtils.* +%{python2_sitelib}/up2date_client/rhnPackageInfo.* +%{python2_sitelib}/up2date_client/rhnChannel.* +%{python2_sitelib}/up2date_client/rhnHardware.* +%{python2_sitelib}/up2date_client/transaction.* +%{python2_sitelib}/up2date_client/clientCaps.* +%{python2_sitelib}/up2date_client/capabilities.* +%{python2_sitelib}/up2date_client/rhncli.* +%{python2_sitelib}/up2date_client/pkgplatform.* +%endif + +%if 0%{?build_py3} +%files -n python3-%{name} +%{_sbindir}/rhn-profile-sync-%{python3_version} +%dir %{python3_sitelib}/up2date_client/ +%{python3_sitelib}/up2date_client/__init__.* +%{python3_sitelib}/up2date_client/config.* +%{python3_sitelib}/up2date_client/haltree.* +%{python3_sitelib}/up2date_client/hardware* +%{python3_sitelib}/up2date_client/up2dateUtils.* +%{python3_sitelib}/up2date_client/up2dateLog.* +%{python3_sitelib}/up2date_client/up2dateErrors.* +%{python3_sitelib}/up2date_client/up2dateAuth.* +%{python3_sitelib}/up2date_client/rpcServer.* +%{python3_sitelib}/up2date_client/rhnserver.* +%{python3_sitelib}/up2date_client/pkgUtils.* +%{python3_sitelib}/up2date_client/rpmUtils.* +%{python3_sitelib}/up2date_client/debUtils.* +%{python3_sitelib}/up2date_client/rhnPackageInfo.* +%{python3_sitelib}/up2date_client/rhnChannel.* +%{python3_sitelib}/up2date_client/rhnHardware.* +%{python3_sitelib}/up2date_client/transaction.* +%{python3_sitelib}/up2date_client/clientCaps.* +%{python3_sitelib}/up2date_client/capabilities.* +%{python3_sitelib}/up2date_client/rhncli.* +%{python3_sitelib}/up2date_client/pkgplatform.* + +%if "%{_vendor}" != "debbuild" +%dir %{python3_sitelib}/up2date_client/__pycache__/ +%{python3_sitelib}/up2date_client/__pycache__/__init__.* +%{python3_sitelib}/up2date_client/__pycache__/config.* +%{python3_sitelib}/up2date_client/__pycache__/haltree.* +%{python3_sitelib}/up2date_client/__pycache__/hardware* +%{python3_sitelib}/up2date_client/__pycache__/up2dateUtils.* +%{python3_sitelib}/up2date_client/__pycache__/up2dateLog.* +%{python3_sitelib}/up2date_client/__pycache__/up2dateErrors.* +%{python3_sitelib}/up2date_client/__pycache__/up2dateAuth.* +%{python3_sitelib}/up2date_client/__pycache__/rpcServer.* +%{python3_sitelib}/up2date_client/__pycache__/rhnserver.* +%{python3_sitelib}/up2date_client/__pycache__/pkgUtils.* +%{python3_sitelib}/up2date_client/__pycache__/rpmUtils.* +%{python3_sitelib}/up2date_client/__pycache__/debUtils.* +%{python3_sitelib}/up2date_client/__pycache__/rhnPackageInfo.* +%{python3_sitelib}/up2date_client/__pycache__/rhnChannel.* +%{python3_sitelib}/up2date_client/__pycache__/rhnHardware.* +%{python3_sitelib}/up2date_client/__pycache__/transaction.* +%{python3_sitelib}/up2date_client/__pycache__/clientCaps.* +%{python3_sitelib}/up2date_client/__pycache__/capabilities.* +%{python3_sitelib}/up2date_client/__pycache__/rhncli.* +%{python3_sitelib}/up2date_client/__pycache__/pkgplatform.* +%endif +%endif + +%files -n rhn-check +%{_mandir}/man8/rhn_check.8* +%{_sbindir}/rhn_check + +%if 0%{?build_py2} +%files -n python2-rhn-check +%{_sbindir}/rhn_check-%{python2_version} +%dir %{python2_sitelib}/rhn +%dir %{python2_sitelib}/rhn/actions/ +%{python2_sitelib}/up2date_client/getMethod.* +# actions for rhn_check to run +%{python2_sitelib}/rhn/actions/__init__.* +%{python2_sitelib}/rhn/actions/hardware.* +%{python2_sitelib}/rhn/actions/systemid.* +%{python2_sitelib}/rhn/actions/reboot.* +%{python2_sitelib}/rhn/actions/rhnsd.* +%{python2_sitelib}/rhn/actions/up2date_config.* +%doc doc/README +%endif + +%if 0%{?build_py3} +%files -n python3-rhn-check +%{_sbindir}/rhn_check-%{python3_version} +%dir %{python3_sitelib}/rhn +%dir %{python3_sitelib}/rhn/actions/ +%{python3_sitelib}/up2date_client/getMethod.* +%{python3_sitelib}/rhn/actions/__init__.* +%{python3_sitelib}/rhn/actions/hardware.* +%{python3_sitelib}/rhn/actions/systemid.* +%{python3_sitelib}/rhn/actions/reboot.* +%{python3_sitelib}/rhn/actions/rhnsd.* +%{python3_sitelib}/rhn/actions/up2date_config.* + +%if "%{_vendor}" != "debbuild" +%dir %{python3_sitelib}/rhn/actions/__pycache__/ +%{python3_sitelib}/up2date_client/__pycache__/getMethod.* +%{python3_sitelib}/rhn/actions/__pycache__/__init__.* +%{python3_sitelib}/rhn/actions/__pycache__/hardware.* +%{python3_sitelib}/rhn/actions/__pycache__/systemid.* +%{python3_sitelib}/rhn/actions/__pycache__/reboot.* +%{python3_sitelib}/rhn/actions/__pycache__/rhnsd.* +%{python3_sitelib}/rhn/actions/__pycache__/up2date_config.* +%endif +%endif + +%files -n rhn-setup +%{_mandir}/man8/rhnreg_ks.8* +%{_mandir}/man8/rhn_register.8* +%{_mandir}/man8/spacewalk-channel.8* +%{_mandir}/man8/rhn-channel.8* + +%config(noreplace) %{_sysconfdir}/security/console.apps/rhn_register +%config(noreplace) %{_sysconfdir}/pam.d/rhn_register +%if 0%{?fedora} || 0%{?rhel} || 0%{?mageia} +%{_bindir}/rhn_register +%endif +%{_sbindir}/rhn_register +%{_sbindir}/rhnreg_ks +%{_sbindir}/spacewalk-channel +%{_sbindir}/rhn-channel + +%{_datadir}/setuptool/setuptool.d/99rhn_register +%doc doc/README + +%if 0%{?suse_version} +# on SUSE directories not owned by any package +%dir %{_sysconfdir}/security/console.apps +%dir %{_datadir}/setuptool +%dir %{_datadir}/setuptool/setuptool.d +%endif + +%if 0%{?build_py2} +%files -n python2-rhn-setup +%{_sbindir}/rhn_register-%{python2_version} +%{_sbindir}/rhnreg_ks-%{python2_version} +%{_sbindir}/spacewalk-channel-%{python2_version} +%{python2_sitelib}/up2date_client/rhnreg.* +%{python2_sitelib}/up2date_client/pmPlugin.* +%{python2_sitelib}/up2date_client/tui.* +%{python2_sitelib}/up2date_client/rhnreg_constants.* +%endif + +%if 0%{?build_py3} +%files -n python3-rhn-setup +%{_sbindir}/rhn_register-%{python3_version} +%{_sbindir}/rhnreg_ks-%{python3_version} +%{_sbindir}/spacewalk-channel-%{python3_version} +%{python3_sitelib}/up2date_client/rhnreg.* +%{python3_sitelib}/up2date_client/pmPlugin.* +%{python3_sitelib}/up2date_client/tui.* +%{python3_sitelib}/up2date_client/rhnreg_constants.* + +%if "%{_vendor}" != "debbuild" +%{python3_sitelib}/up2date_client/__pycache__/rhnreg.* +%{python3_sitelib}/up2date_client/__pycache__/pmPlugin.* +%{python3_sitelib}/up2date_client/__pycache__/tui.* +%{python3_sitelib}/up2date_client/__pycache__/rhnreg_constants.* +%endif +%endif + +%files -n rhn-setup-gnome +%{_datadir}/pixmaps/*png +%{_datadir}/icons/hicolor/16x16/apps/up2date.png +%{_datadir}/icons/hicolor/24x24/apps/up2date.png +%{_datadir}/icons/hicolor/32x32/apps/up2date.png +%{_datadir}/icons/hicolor/48x48/apps/up2date.png +%if 0%{?rhel} > 6 || 0%{?fedora} +%{_datadir}/icons/hicolor/22x22/apps/up2date.png +%{_datadir}/icons/hicolor/256x256/apps/up2date.png +%endif +/usr/share/metainfo/rhn_register.appdata.xml +%{_datadir}/applications/rhn_register.desktop +%{_datadir}/rhn/up2date_client/gui.glade +%{_datadir}/rhn/up2date_client/progress.glade +%{_datadir}/rhn/up2date_client/rh_register.glade + +%if 0%{?suse_version} +# on SUSE these directories are part of packages not installed +# at buildtime. OBS failed with not owned by any package +%dir %{_datadir}/icons/hicolor +%dir %{_datadir}/icons/hicolor/16x16 +%dir %{_datadir}/icons/hicolor/16x16/apps +%dir %{_datadir}/icons/hicolor/24x24 +%dir %{_datadir}/icons/hicolor/24x24/apps +%dir %{_datadir}/icons/hicolor/32x32 +%dir %{_datadir}/icons/hicolor/32x32/apps +%dir %{_datadir}/icons/hicolor/48x48 +%dir %{_datadir}/icons/hicolor/48x48/apps +%dir %{_datadir}/rhn/up2date_client +%endif + +%if 0%{?build_py2} +%files -n python2-rhn-setup-gnome +%{python2_sitelib}/up2date_client/messageWindow.* +%{python2_sitelib}/up2date_client/rhnregGui.* +%{python2_sitelib}/up2date_client/gtk_compat.* +%{python2_sitelib}/up2date_client/gui.* +%{python2_sitelib}/up2date_client/progress.* +%if 0%{?rhel} == 6 +%{_datadir}/firstboot/modules/rhn_register.* +%{python2_sitelib}/up2date_client/firstboot/rhn_login_gui.* +%{python2_sitelib}/up2date_client/firstboot/rhn_start_gui.* +%{python2_sitelib}/up2date_client/firstboot/rhn_choose_server_gui.* +%{python2_sitelib}/up2date_client/firstboot/rhn_choose_channel.* +%{python2_sitelib}/up2date_client/firstboot/rhn_provide_certificate_gui.* +%{python2_sitelib}/up2date_client/firstboot/rhn_create_profile_gui.* +%{python2_sitelib}/up2date_client/firstboot/rhn_review_gui.* +%{python2_sitelib}/up2date_client/firstboot/rhn_finish_gui.* +%endif +%endif +%doc doc/README + +%if 0%{?build_py3} +%files -n python3-rhn-setup-gnome +%{python3_sitelib}/up2date_client/messageWindow.* +%{python3_sitelib}/up2date_client/rhnregGui.* +%{python3_sitelib}/up2date_client/gtk_compat.* +%{python3_sitelib}/up2date_client/gui.* +%{python3_sitelib}/up2date_client/progress.* + +%if "%{_vendor}" != "debbuild" +%{python3_sitelib}/up2date_client/__pycache__/messageWindow.* +%{python3_sitelib}/up2date_client/__pycache__/rhnregGui.* +%{python3_sitelib}/up2date_client/__pycache__/gtk_compat.* +%{python3_sitelib}/up2date_client/__pycache__/gui.* +%{python3_sitelib}/up2date_client/__pycache__/progress.* +%endif +%endif + +%if "%{_vendor}" == "debbuild" + +%if 0%{?build_py2} +%post -n python2-%{name} +# Do late-stage bytecompilation, per debian policy +pycompile -p python2-%{name} -V -3.0 + +%preun -n python2-%{name} +# Ensure all *.py[co] files are deleted, per debian policy +pyclean -p python2-%{name} + +%post -n python2-rhn-check +# Do late-stage bytecompilation, per debian policy +pycompile -p python2-rhn-check -V -3.0 + +%preun -n python2-rhn-check +# Ensure all *.py[co] files are deleted, per debian policy +pyclean -p python2-rhn-check + +%post -n python2-rhn-setup +# Do late-stage bytecompilation, per debian policy +pycompile -p python2-rhn-setup -V -3.0 + +%preun -n python2-rhn-setup +# Ensure all *.py[co] files are deleted, per debian policy +pyclean -p python2-rhn-setup + +%post -n python2-rhn-setup-gnome +# Do late-stage bytecompilation, per debian policy +pycompile -p python2-rhn-setup-gnome -V -3.0 + +%preun -n python2-rhn-setup-gnome +# Ensure all *.py[co] files are deleted, per debian policy +pyclean -p python2-rhn-setup-gnome +%endif + +%if 0%{?build_py3} +%post -n python3-%{name} +# Do late-stage bytecompilation, per debian policy +py3compile -p python3-%{name} -V -4.0 + +%preun -n python3-%{name} +# Ensure all *.py[co] files are deleted, per debian policy +py3clean -p python3-%{name} + +%post -n python3-rhn-check +# Do late-stage bytecompilation, per debian policy +py3compile -p python3-rhn-check -V -4.0 + +%preun -n python3-rhn-check +# Ensure all *.py[co] files are deleted, per debian policy +py3clean -p python3-rhn-check + +%post -n python3-rhn-setup +# Do late-stage bytecompilation, per debian policy +py3compile -p python3-rhn-setup -V -4.0 + +%preun -n python3-rhn-setup +# Ensure all *.py[co] files are deleted, per debian policy +py3clean -p python3-rhn-setup + +%post -n python3-rhn-setup-gnome +# Do late-stage bytecompilation, per debian policy +py3compile -p python3-rhn-setup-gnome -V -4.0 + +%preun -n python3-rhn-setup-gnome +# Ensure all *.py[co] files are deleted, per debian policy +py3clean -p python3-rhn-setup-gnome +%endif +%endif + + +%changelog +* Tue Jul 12 2022 Laurence Rochfort 2.10.10-1.0.8 +- Fix osad start failure due to base64.encodestring() removal in Python 3.9 [Orabug: 34372838] + +* Thu Jun 23 2022 Darren Archibald 2.10.10-1.0.7 +- Remove unused Platform dist to run on OL9 [Orabug: 33858443] + +* Tue Mar 29 2022 David Sloboda 2.10.10-1.0.6 +- Modify spec file due to new RPM requirements +- Do not use python2 for client + +* Tue Feb 9 2021 Laurence Rochfort 2.10.10-1.0.5 +- Port the following from base OS rhn-client-tools to allow dmidecode build for OL8 aarch64 [Orabug: 31414043] +- Related: #1622145 - don't run dmi_warnings() if there's no dmidecode + (tkasparek@redhat.com) +- Related: #1622145 - split into arch package (tkasparek@redhat.com) +- Resolves: #1622145 - drop dmidecode dependency on non x86_64 arches + (tkasparek@redhat.com) + +* Tue Jul 28 2020 Laurence Rochfort 2.10.10-1.0.4 +- Disable local Oracle yum repos after client registration [Orabug: 31640087] + +* Wed Jun 03 2020 Tunga Mavengere 2.10.10-1.0.2 +- python*dmidecode is not available on aarch64 hosts therefore only require it if architecture is x86_64 + +* Mon Apr 20 2020 Tunga Mavengere 2.10.10-1.0.1 +- Changed to install both RHNS-CA-CERT and ULN-CA-CERT in /usr/share/rhn/ instead of only RHNS-CA-CERT [OraBug 26895848] +- Fix text strings [OraBug 20596345] +- Added written offer for source code. (Keshav Sharma) + +* Wed Feb 26 2020 Michael Mraka 2.10.10-1 +- updated copyright to 2020 + +* Tue Oct 01 2019 Michael Mraka 2.10.9-1 +- python2-dbus is not necessary on RHEL8 server + +* Thu Aug 08 2019 Michael Mraka 2.10.8-1 +- return a non-zero exit status on errors in rhn_check + +* Wed Jun 26 2019 Michael Mraka 2.10.7-1 +- removed dead code reported by covscan + +* Tue Feb 12 2019 Michael Mraka 2.10.6-1 +- Add ability to work behind http proxies +- Fix clean-up of Config singleton to allow new config path + +* Fri Feb 01 2019 Michael Mraka 2.10.5-1 +- 1666099 - python3 is picky about bytes and string + +* Thu Jan 10 2019 Michael Mraka 2.10.4-1 +- Revert "1627438 - don't build python2 packages on new Fedoras" + +* Wed Dec 19 2018 Michael Mraka 2.10.3-1 +- xml.dom is not in python2-libs on opensuse + +* Wed Dec 19 2018 Michael Mraka 2.10.2-1 +- still needs python2 for rhn_register gui in build + +* Wed Dec 19 2018 Michael Mraka 2.10.1-1 +- 1627438 - don't build python2 packages on new Fedoras + +* Fri Nov 23 2018 Michael Mraka 2.9.33-1 +- updated copyright years +- Regenerating .po and .pot files for rhn-client-tools +- Updating .po translations from Zanata + +* Fri Nov 16 2018 Michael Mraka 2.9.32-1 +- fix deps on mageia + +* Fri Nov 16 2018 Michael Mraka 2.9.30-1 +- use python2 for converting glade xml + +* Fri Nov 16 2018 Michael Mraka 2.9.29-1 +- fix deps on mageia + +* Tue Nov 06 2018 Michael Mraka 2.9.27-1 +- 1646929 - convert values from bytes to string in py3 + +* Thu Oct 25 2018 Tomas Kasparek 2.9.26-1 +- Fix wrong python3-newt dependency name for SUSE + +* Wed Oct 03 2018 Michael Mraka 2.9.25-1 +- dbus package has different name in mageia + +* Wed Oct 03 2018 Michael Mraka 2.9.24-1 +- mageia does not provice 22x22 and 256x256 icons + +* Wed Oct 03 2018 Michael Mraka 2.9.23-1 +- fix build on mageia + +* Wed Oct 03 2018 Michael Mraka 2.9.22-1 +- coverage is in python-coverage on mageia + +* Wed Oct 03 2018 Michael Mraka 2.9.21-1 +- use explicit version of python + +* Wed Oct 03 2018 Michael Mraka 2.9.20-1 +- fix build on mageia + +* Mon Sep 17 2018 Tomas Kasparek 2.9.19-1 +- python-unversioned-command is no longer needed +- 1626421 - python3 is expecting str, not bytes + +* Tue Aug 21 2018 Tomas Kasparek 2.9.18-1 +- Revert "1617942 - drop dmidecode dependency on s390x" - Spacewalk is + supported on x86_64 only +- Revert "1617942 - split into arch package" - Spacewalk is supported on x86_64 + only + +* Thu Aug 16 2018 Tomas Kasparek 2.9.17-1 +- 1617942 - split into arch package + +* Thu Aug 16 2018 Tomas Kasparek 2.9.16-1 +- 1617942 - drop dmidecode dependency on s390x +- debUtils.py: Fix edge case finding pkg install time on Debian + +* Tue Jul 31 2018 Tomas Kasparek 2.9.15-1 +- client, usix: Rework how client packaging is done for Debian/Ubuntu + +* Thu Jul 12 2018 Tomas Kasparek 2.9.14-1 +- rhn-client-tools: Fix typo in rhnreg + +* Wed Jul 11 2018 Tomas Kasparek 2.9.13-1 +- rhn-client-tools: Fix systemd detection for non-UsrMerge systems + +* Tue Jul 10 2018 Tomas Kasparek 2.9.12-1 +- python-unversioned-command is available only in Rawhide + +* Tue Jul 10 2018 Tomas Kasparek 2.9.11-1 +- require python-unversioned-command for /usr/bin/python simlink + +* Tue Jul 10 2018 Tomas Kasparek 2.9.10-1 +- python_sitelib is actually python2_sitelib, be more clear about that + +* Tue Jul 10 2018 Tomas Kasparek 2.9.9-1 +- be more explicit about which python version we require + +* Wed May 30 2018 Tomas Kasparek 2.9.8-1 +- client/rhel: Enable DNF plugin for Mageia 6+ and openSUSE Leap 15.0+ + +* Fri May 04 2018 Tomas Kasparek 2.9.7-1 +- 1094744 - provide AppData file for rhn-setup-gnome + +* Mon Apr 30 2018 Tomas Kasparek 2.9.6-1 +- further fix building on older Fedoras + +* Mon Apr 30 2018 Tomas Kasparek 2.9.5-1 +- fix dependencies on older Fedoras + +* Wed Apr 25 2018 Tomas Kasparek 2.9.4-1 +- do touch --no-create only on older systems + +* Wed Apr 18 2018 Tomas Kasparek 2.9.3-1 +- adapt to new fedora python2/3 packaging +- RHEL 5 is no longer supported + +* Mon Apr 16 2018 Tomas Kasparek 2.9.2-1 +- 1566025 - require latest provider of /usr/bin/gpg + +* Tue Apr 03 2018 Jiri Dostal 2.9.1-1 +- Build both python 2/3 because of rhnpush +- Bumping package versions for 2.9. + +* Fri Mar 23 2018 Jiri Dostal 2.8.22-1 +- strip quotes when reading /etc/sysconfig/network + +* Mon Mar 19 2018 Tomas Kasparek 2.8.21-1 +- don't try to delete python2 files when there are none + +* Mon Mar 19 2018 Tomas Kasparek 2.8.20-1 +- don't build python2 when building python3 only + +* Mon Mar 19 2018 Tomas Kasparek 2.8.19-1 +- don't build python2 subpackages on systems with default python2 +- Regenerating .po and .pot files for rhn-client-tools. +- Updating .po translations from Zanata + +* Tue Feb 20 2018 Tomas Kasparek 2.8.18-1 +- don't require yum on rhel8 + +* Tue Feb 20 2018 Tomas Kasparek 2.8.17-1 +- require dnf-plugin-spacewalk on rhel8 +- rhel8 utilizes python3 + +* Fri Feb 09 2018 Michael Mraka 2.8.16-1 +- remove install/clean section initial cleanup +- removed Group from specfile +- removed BuildRoot from specfiles + +* Wed Dec 13 2017 Tomas Kasparek 2.8.15-1 +- 1417185 - do chmod an the new file, not the old one which will be deleted +- 1417185 - change permissions to default provided by rhn-client-tools rpm + +* Fri Dec 08 2017 Tomas Kasparek 2.8.14-1 +- fix warning: numeric expression expected (got ") + +* Fri Dec 01 2017 Michael Mraka 2.8.13-1 +- dist cannot detect the distribution anymore +- fix rpm names in SUSE +- rhn-client-tools: fix filelist for SUSE and enable py3 build for Tumbleweed + +* Wed Nov 22 2017 Michael Mraka 2.8.12-1 +- update rhn-setup-gnome to work on python3 based systems + +* Wed Nov 15 2017 Michael Mraka 2.8.11-1 +- sh-utils provide has been removed from coreutils + +* Wed Oct 25 2017 Michael Mraka 2.8.10-1 +- device.sys_path is attribute not function + +* Mon Oct 23 2017 Michael Mraka 2.8.9-1 +- make getting device properties compatible with older versions of pyudev +- use new pyudev module on SUSE to get udev information +- add getting device information using pyudev module + +* Wed Oct 18 2017 Michael Mraka 2.8.8-1 +- expanded tabs to spaces +- 1502695 - remove dependency on libgnome + +* Tue Oct 17 2017 Michael Mraka 2.8.7-1 +- 1502695 - removed dependency on libgnome +- fixed typo introduced in 8ed741dfaf76b37dc88724692f90240aed7a85a5 +- gui has moved to standard path +- removed settings for old RH build system + +* Thu Oct 05 2017 Tomas Kasparek 2.8.6-1 +- 1494389 - detect if action has been picked up for 2nd time +- 1494389 - Revert "[1260527] RHEL7 reboot loop" +- 1494389 - Revert "fix except to be compatible with Python 2.4" + +* Mon Oct 02 2017 Michael Mraka 2.8.5-1 +- fixed python2 on Fedora requires + +* Fri Sep 29 2017 Michael Mraka 2.8.4-1 +- require the same version of other packages +- move client actions to rhn namespace +- import methods from standard path +- all python modules are now in standard sitelib + +* Wed Sep 27 2017 Gennadii Altukhov 2.8.3-1 +- fix dependencies of rhn-client-tools on different platforms + +* Fri Sep 22 2017 Michael Mraka 2.8.2-1 +- install files into python2_sitelib/python3_sitelib +- let rpmbuild take care of .pyc/.pyo +- move rhn-setup-gnome files into proper python2/python3 subpackages +- move rhn-setup files into proper python2/python3 subpackages +- move rhn-check files into proper python2/python3 subpackages +- move rhn-client-tools files into proper python2/python3 subpackages +- split rhn-setup-gnome into python2/python3 specific packages +- split rhn-setup into python2/python3 specific packages +- split rhn-check into python2/python3 specific packages +- split rhn-client-tools into python2/python3 specific packages +- simplified Requires/Provides definition +- remove unused import + +* Wed Sep 06 2017 Michael Mraka 2.8.1-1 +- purged changelog entries for Spacewalk 2.0 and older +- Bumping package versions for 2.8. + +* Wed Aug 09 2017 Michael Mraka 2.7.16-1 +- precompile py3 bytecode on Fedora 23+ +- use standard brp-python-bytecompile + +* Mon Aug 07 2017 Eric Herget 2.7.15-1 +- another pass to update copyright year + +* Fri Aug 04 2017 Tomas Kasparek 2.7.14-1 +- 1430298 - rhnreg_ks man page missing documentation for some options + +* Wed Aug 02 2017 Gennadii Altukhov 2.7.13-1 +- 1477149 - fix rhn-profile sync on Fedora 26 fix ipv6 network mask calculation + +* Mon Jul 31 2017 Eric Herget 2.7.12-1 +- update copyright year + +* Tue Jul 18 2017 Michael Mraka 2.7.11-1 +- move version and release before sources + +* Mon Jul 17 2017 Jan Dobes 2.7.10-1 +- Regenerating .po and .pot files for rhn-client-tools +- Updating .po translations from Zanata +- PR 500 - Add epoch information for deb packages + +* Mon Apr 24 2017 Tomas Kasparek 2.7.9-1 +- 1444764 - sgmlop module might not be available on RHEL 7 + +* Fri Apr 21 2017 Michael Mraka 2.7.8-1 +- Enable detection of Oracle Linux during registration. + +* Wed Apr 19 2017 Ondrej Gajdusek 2.7.7-1 +- change requirement from python2 package to python3 for fedora + +* Mon Mar 06 2017 Gennadii Altukhov 2.7.6-1 +- 1371871 - fix UnicodeDecodeError when running rhnreg_ks with a different + locale than en_US +- Updated links to github in spec files +- Migrating Fedorahosted to GitHub + +* Fri Mar 03 2017 Jiri Dostal 2.7.5-1 +- 1427249 - Fix rhn_register crashing on startup on Python < 2.5. + +* Wed Feb 01 2017 Eric Herget 2.7.4-1 +- 1414579 - remove sstr call on list arguments to fix rhel7 client issue + +* Wed Jan 18 2017 Eric Herget 2.7.3-1 +- 1414579 - rhn-search traceback - immediateTrigger-server exists with certain + identification + +* Mon Jan 02 2017 Jiri Dostal 2.7.2-1 +- urlsplit back compatibility with python 2.4 fixing bug introduced in dc7ee6d + +* Tue Nov 15 2016 Gennadii Altukhov 2.7.1-1 +- fix except to be compatible with Python 2.4 +- Bumping package versions for 2.7. + +* Fri Nov 11 2016 Jiri Dostal 2.6.7-1 +- [1260527] RHEL7 reboot loop + +* Wed Nov 09 2016 Gennadii Altukhov 2.6.6-1 +- Revert Project-Id-Version for translations + +* Tue Nov 08 2016 Gennadii Altukhov 2.6.5-1 +- Regenerating .po and .pot files for rhn-client-tools. +- Updating .po translations from Zanata + +* Tue Oct 25 2016 Gennadii Altukhov 2.6.4-1 +- 1320468 - add newline before hostname in LoginPage label + +* Fri Sep 23 2016 Jiri Dostal 2.6.3-1 +- Fix of deprecated functions urllib.splittype and urllib.splithost + +* Thu Sep 22 2016 Jan Dobes 2.6.2-1 +- fedora 24 client will not send it's smbios because there is a warning and it + fails on syntax error + +* Wed Aug 03 2016 Tomas Lestach 2.6.1-1 +- fix typo/missing space in rhn_check rpm description +- Bumping package versions for 2.6. + +* Tue May 24 2016 Tomas Kasparek 2.5.16-1 +- updating copyright years +- Regenerating .po and .pot files for rhn-client-tools. +- Updating .po translations from Zanata + +* Thu May 12 2016 Gennadii Altukhov 2.5.15-1 +- change build dependency on python-devel, because we don't use Python3 during + package building + +* Wed May 11 2016 Gennadii Altukhov 2.5.14-1 +- 1326306 - use 'netifaces' module for Python3 instead of 'ethtools' + +* Fri Feb 19 2016 Jan Dobes 2.5.13-1 +- fixed 'exceptions.ValueError: invalid literal for int(): 0oxxx' to work in + python 2.4 (RHEL5) + +* Thu Feb 18 2016 Jan Dobes 2.5.12-1 +- delete file with input files after template is created +- try to generate more similar order of entries in template +- pulling *.po translations from Zanata +- fixing current *.po translations + +* Fri Feb 12 2016 Michael Mraka 2.5.11-1 +- 1259884 - fixed missing method for sorting of rhnChannels +- 1259884 - open terminal for write only + +* Fri Jan 22 2016 Tomas Kasparek 2.5.10-1 +- Bug 1300251 - clientCaps.py : IndexError: string index out of range + +* Tue Jan 19 2016 Michael Mraka 2.5.9-1 +- yet another python3 fixes + +* Tue Jan 12 2016 Grant Gainey 2.5.8-1 +- 875728 - Clarify useNoSSLForPackages comment to match reality + +* Tue Jan 12 2016 Michael Mraka 2.5.7-1 +- 1259884, 1286555 - more python3 fixes + +* Fri Jan 08 2016 Michael Mraka 2.5.6-1 +- updated dnf / rhnlib / rhn-client-tools dependencies +- fixed rpmbuild tests + +* Fri Jan 08 2016 Michael Mraka 2.5.5-1 +- 1259884, 1286555 - updated to work in python3 + +* Fri Jan 08 2016 Tomas Lestach 2.5.4-1 +- 1260454 - clean up channels to subscribe before processing results + +* Thu Dec 17 2015 Jan Dobes 2.5.3-1 +- 1262780 - alow to use existing rpcServer when creating RhnServer + +* Tue Nov 24 2015 Jan Dobes 2.5.2-1 +- rhel client tools: po files updated +- rhel client tools: remove virtualization host platform entitlement references +- rhel client tools: drop references to update entitlements +- client-tools: Remove 'provisioning_entitled' slot from RHEL and Debian +- backend: unused reg_num parameter removed from documentation +- client-tools: Remove 'monitoring_entitled' slot from RHEL and Debian + +* Thu Oct 15 2015 Tomas Lestach 2.5.1-1 +- fix rhnChannel instance has no attribute 'get' +- Bumping package versions for 2.5. + +* Thu Sep 24 2015 Jan Dobes 2.4.11-1 +- Bumping copyright year. + +* Wed Sep 23 2015 Jan Dobes 2.4.10-1 +- Pulling updated *.po translations from Zanata. + +* Wed Sep 16 2015 Jan Dobes 2.4.9-1 +- 1263707 - fixing python2.4 to python3.3 exception compatibility + +* Wed Sep 02 2015 Jan Dobes 2.4.8-1 +- Show a descriptive message on reboot + +* Fri Jul 24 2015 Tomas Kasparek 2.4.7-1 +- merge if into into one registerSystem call +- remove dead code + +* Thu May 21 2015 Matej Kollar 2.4.6-1 +- dnf is default on fedora22, so require it instead of yum-rhn-plugin +- Dependencies on rhnlib + +* Tue May 19 2015 Tomas Kasparek 2.4.5-1 +- dnf is default on fedora22, so require it instead of yum + +* Fri Apr 24 2015 Michael Mraka 2.4.4-1 +- make code python 2.4 to 3.3 compatible + +* Thu Apr 23 2015 Michael Mraka 2.4.2-1 +- allow rhn-client-tool use yum or dnf + +* Mon Apr 20 2015 Michael Mraka 2.4.1-1 +- missing buildrequires for F23 + +* Thu Mar 19 2015 Grant Gainey 2.3.16-1 +- Updating copyright info for 2015 +- Revert "allow building rhn-client-tools package on rhel5" + +* Thu Mar 19 2015 Tomas Kasparek 2.3.15-1 +- allow building rhn-client-tools package on rhel5 + +* Fri Mar 06 2015 Matej Kollar 2.3.14-1 +- Fixed typos with options and function name + +* Fri Mar 06 2015 Matej Kollar 2.3.13-1 +- Fix issue introduced by b0cd7ef72cd92837155e6c5dcdb5213cba31af48 + +* Mon Mar 02 2015 Grant Gainey 2.3.12-1 +- Use plural for lists +- Refactoring +- Sanitize input +- Fix grammar +- Extract listing of available channels +- Extract listing of base channel +- Extract channels listing +- Extract channel removal +- Extract channel addition +- Extract logging function +- Cleanup +- Pylint/Pep8 +- Get rid of unused global variable + +* Mon Mar 02 2015 Matej Kollar 2.3.11-1 +- 1147425 - we might be registered also via rhsm +- 1147425 - avoid "list index out of range" +- Make indentation more PEP8 + +* Fri Feb 20 2015 Matej Kollar 2.3.10-1 +- Localize error messages +- Typo +- 1036586 - separate username/password request +- Remove unused variable +- Indentation homogenization +- Separate definitions from directly executed code +- Remove unused import + +* Wed Feb 18 2015 Matej Kollar 2.3.9-1 +- 916597 - More helpful message + +* Thu Feb 05 2015 Matej Kollar 2.3.8-1 +- Updating function names +- Documentation changes - fix name and refer to RFC. + +* Tue Jan 13 2015 Matej Kollar 2.3.7-1 +- Getting rid of Tabs and trailing spaces in Python +- Getting rid of Tabs and trailing spaces in LICENSE, COPYING, and README files + +* Mon Dec 22 2014 Stephen Herr 2.3.6-1 +- rhn-client-tools: no usermod on SUSE + +* Thu Oct 09 2014 Michael Mraka 2.3.5-1 +- fixed translations + +* Thu Oct 09 2014 Michael Mraka 2.3.4-1 +- fixed ar.po formating + +* Tue Oct 07 2014 Michael Mraka 2.3.3-1 +- disable sgmlop import in rhn_check + +* Mon Oct 06 2014 Michael Mraka 2.3.2-1 +- rhn-client-tools translations backported from RHEL6 +- rhn-client-tools translations updated from Transifex + +* Tue Aug 26 2014 Michael Mraka 2.3.1-1 +- updated translations + +* Fri Jul 11 2014 Milan Zazrivec 2.2.7-1 +- fix copyright years + +* Thu Jul 10 2014 Tomas Kasparek 2.2.6-1 +- Update .po and .pot files for rhn-client-tools. + +* Wed Jul 09 2014 Milan Zazrivec 2.2.5-1 +- allow unicode characters in proxy username / password + +* Fri Jun 13 2014 Michael Mraka 2.2.4-1 +- replace python-gudev by gudev introspection + +* Wed Jun 04 2014 Milan Zazrivec 2.2.3-1 +- tmpDir option from up2date is no longer used, removing + +* Fri May 23 2014 Milan Zazrivec 2.2.2-1 +- spec file polish + +* Mon May 12 2014 Michael Mraka 2.2.1-1 +- use set() for list of unique values +- 1094749 - fix cpu socket counting + +* Fri Feb 14 2014 Milan Zazrivec 2.1.16-1 +- 1061013 - remove up2date_config.rpmmacros client action +- 1061013 - remove macros.up2date from package build + +* Fri Feb 14 2014 Matej Kollar 2.1.15-1 +- 1061013 - remove unneeded rpm macros file +- 1060742 - new information icon in gnome3 + +* Tue Jan 14 2014 Matej Kollar 2.1.14-1 +- Updating the copyright years info +- Update .po and .pot files for rhn-client-tools. + +* Thu Dec 12 2013 Milan Zazrivec 2.1.13-1 +- 1038694 - remove text from registration screen +- 1038694 - new error icon in gnome3 + +* Mon Dec 09 2013 Milan Zazrivec 2.1.12-1 +- 1037778 - new registration icons + +* Wed Nov 27 2013 Milan Zazrivec 2.1.11-1 +- 1035330 - run TUI registration when executed from setuptool + +* Wed Oct 09 2013 Milan Zazrivec 2.1.10-1 +- 1017249 - TUI rhn_register: string polish +- 1017249 - GUI rhn_register: string polish + +* Mon Sep 30 2013 Michael Mraka 2.1.9-1 +- removed trailing whitespaces + +* Mon Sep 30 2013 Michael Mraka 2.1.8-1 +- 994531 - uptime report: respect xmlrpc's integer limits + +* Tue Sep 17 2013 Michael Mraka 2.1.7-1 +- Grammar error occurred + +* Wed Sep 11 2013 Stephen Herr 2.1.6-1 +- 988839 - rhn-client-tools can get the variant information from the new place + +* Thu Aug 29 2013 Tomas Lestach 2.1.5-1 +- fix source string typo + +* Wed Aug 28 2013 Milan Zazrivec 2.1.4-1 +- No firstboot modules on RHEL 7 and later + +* Thu Aug 15 2013 Stephen Herr 2.1.3-1 +- 919432 - rhn-client-tools should correctly conflict with old virt-host + versions + +* Wed Aug 14 2013 Tomas Lestach 2.1.2-1 +- 983999 - put the 1st element of the python search path to the end + +* Tue Aug 06 2013 Tomas Kasparek 2.1.1-1 +- Branding clean-up of proxy stuff in client dir +- Bumping package versions for 2.1. +