|
|
|
@ -28,11 +28,21 @@ Requires: python3-pip
@@ -28,11 +28,21 @@ Requires: python3-pip
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
mkdir -p %{buildroot} |
|
|
|
|
virtualenv-3 -p python3 %{buildroot}/var/www/pretix/venv |
|
|
|
|
virtualenv-3 -p python3 --distribute %{buildroot}/var/www/pretix/venv |
|
|
|
|
#virtualenv-3 -p python3 --distribute --relocatable %{buildroot}/var/www/pretix/venv |
|
|
|
|
#virtualenv-3 -p python3 --distribute --relocatable %{buildroot}/var/www/pretix/venv |
|
|
|
|
source %{buildroot}/var/www/pretix/venv/bin/activate |
|
|
|
|
pip3 install -U pip setuptools wheel |
|
|
|
|
pip3 install "pretix[postgres]==%{version}" gunicorn |
|
|
|
|
mkdir -p %{buildroot}/var/www/pretix/data/media |
|
|
|
|
### |
|
|
|
|
# undo prelinking |
|
|
|
|
find %{buildroot}/var/www/pretix/venv/bin/ -type f -perm /u+x,g+x -exec /usr/sbin/prelink -u {} \; |
|
|
|
|
# remove rpath from build |
|
|
|
|
#chrpath -d ${buildroot}/var/www/pretix/venv/bin/uwsgi |
|
|
|
|
# re-point the lib64 symlink - not needed on newer virtualenv |
|
|
|
|
rm %{buildroot}/var/www/pretix/venv/lib64 |
|
|
|
|
ln -sf /var/www/pretix/venv/lib %{buildroot}/var/www/pretix/venv/lib64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post |
|
|
|
|