diff --git a/SOURCES/python-2.7-almalinux_support.patch b/SOURCES/python-2.7-almalinux_support.patch new file mode 100644 index 0000000..599b1a7 --- /dev/null +++ b/SOURCES/python-2.7-almalinux_support.patch @@ -0,0 +1,12 @@ +diff -Naur Python-2.7.17.orig/Lib/platform.py Python-2.7.17.alma/Lib/platform.py +--- Python-2.7.17.orig/Lib/platform.py 2019-10-19 18:38:44.000000000 +0000 ++++ Python-2.7.17.alma/Lib/platform.py 2021-03-22 07:54:35.254207418 +0000 +@@ -291,7 +291,7 @@ + # and http://www.die.net/doc/linux/man/man1/lsb_release.1.html + + _supported_dists = ( +- 'SuSE', 'debian', 'fedora', 'redhat', 'centos', ++ 'SuSE', 'debian', 'fedora', 'redhat', 'centos', 'almalinux', + 'mandrake', 'mandriva', 'rocks', 'slackware', 'yellowdog', 'gentoo', + 'UnitedLinux', 'turbolinux') + diff --git a/SPECS/python2.spec b/SPECS/python2.spec index 72b2dd3..459daef 100644 --- a/SPECS/python2.spec +++ b/SPECS/python2.spec @@ -2,6 +2,8 @@ # Conditionals and other variables controlling the build # ====================================================== +%global dist %{?dist}.alma + # Note that the bcond macros are named for the CLI option they create. # "%%bcond_without" means "ENABLE by default and create a --without option" @@ -730,6 +732,7 @@ Patch357: 00357-CVE-2021-3177.patch # above: Patch5000: 05000-autotool-intermediates.patch +Patch5001: python-2.7-almalinux_support.patch # ====================================================== # Additional metadata, and subpackages @@ -1051,6 +1054,7 @@ find -name "*~" |xargs rm -f %patch5000 -p0 -b .autotool-intermediates %endif +%patch5001 -p1 # ====================================================== # Configuring and building the code: @@ -1979,6 +1983,9 @@ fi # ====================================================== %changelog +* Tue Apr 20 2021 Andrew Lukoshko - 2.7.18-4.alma +- Add AlmaLinux to supported distros + * Fri Jan 22 2021 Charalampos Stratakis - 2.7.18-4 - Security fix for CVE-2021-3177 Resolves: rhbz#1919163