gunicorn/rpm/install
Randall Leeds 2978c45051 fix rpm for faf2cc5
Thanks @daybarr
2013-07-03 00:42:30 -07:00

14 lines
497 B
Plaintext

%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
INSTALLED_FILES="\
%{python_sitelib}/*
%{_bindir}/*
%doc docs
"
echo "$INSTALLED_FILES" > INSTALLED_FILES