psss / rpms / libsemanage

Forked from rpms/libsemanage 5 years ago
Clone

c5af50e Use %{__python2} macro to build python2 packages

Authored and Committed by plautrba 5 years ago
    Use %{__python2} macro to build python2 packages
    
    ${__python} and /usr/bin/python are not available anymore.
    
    Fixes:
    make[1]: /usr/bin/python: Command not found
    Please specify at least one package name on the command line.
    cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -I../include -D_GNU_SOURCE -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow -Wno-unused-parameter  -fPIC -DSHARED -c -o semanageswig_wrap.lo semanageswig_wrap.c
    semanageswig_wrap.c:149:11: fatal error: Python.h: No such file or directory
     # include <Python.h>
               ^~~~~~~~~~
    compilation terminated.
    
        
file modified
+2 -2