fixup python ply package name for fedora >= 25 42/10242/1
authorGabriel Ganne <gabriel.ganne@enea.com>
Thu, 25 Jan 2018 09:03:13 +0000 (10:03 +0100)
committerGabriel Ganne <gabriel.ganne@enea.com>
Thu, 25 Jan 2018 09:05:18 +0000 (10:05 +0100)
package name is:
 * python-ply for centos7/rhel7
 * python2-ply / python3-ply for fedora >= 25

Change-Id: Id021802a46a0cc29e9db57e18841a76575437002
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
Makefile

index 18494e7..1a8ef6e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,12 +88,12 @@ RPM_DEPENDS += subunit subunit-devel
 
 ifeq ($(OS_ID)-$(OS_VERSION_ID),fedora-25)
        RPM_DEPENDS += openssl-devel
-       RPM_DEPENDS += python-devel python-ply
+       RPM_DEPENDS += python-devel python2-ply
        RPM_DEPENDS += python2-virtualenv
        RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
 else ifeq ($(shell if [ "$(OS_ID)" = "fedora" ]; then test $(OS_VERSION_ID) -gt 25; echo $$?; fi),0)
        RPM_DEPENDS += compat-openssl10-devel
-       RPM_DEPENDS += python2-devel python-ply
+       RPM_DEPENDS += python2-devel python2-ply
        RPM_DEPENDS += python2-virtualenv
        RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
 else