mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
support bdist_rpm
This commit is contained in:
parent
39f5d313f7
commit
0b8e48021e
13
rpm/install
Normal file
13
rpm/install
Normal file
@ -0,0 +1,13 @@
|
||||
%{__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 doc
|
||||
"
|
||||
echo "$INSTALLED_FILES" > INSTALLED_FILES
|
||||
Loading…
x
Reference in New Issue
Block a user