Projects
asm:eagle
python-django-eagle
python-django-eagle.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-django-eagle.spec of Package python-django-eagle
# # spec file for package python-django-eagle # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define skip_python2 1 %{?sle15_python_module_pythons} %if 0%{?sle_version} > 150400 && 0%{?sle_version} < 160000 %define required_python python311 %else %define required_python python3 %endif Name: python-django-eagle Version: 2.1.46 Release: 0 Summary: A Django application for serving eagle.sai.msu.ru License: BSD-2-Clause Group: Development/Languages/Python URL: http://curl.sai.msu.ru/hg/home/matwey/django-eagle Source: django-eagle-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildArch: noarch BuildRequires: %{python_module Django} BuildRequires: %{python_module django-collectd-rest >= 0.1.9} BuildRequires: %{python_module django-eremaea2 < 2.1} BuildRequires: %{python_module django-webpack-loader >= 1.0.0} BuildRequires: %{python_module dynaconf} BuildRequires: %{python_module ruamel.yaml} BuildRequires: nginx BuildRequires: systemd Requires: django-eagle = %{version} Requires: python-Django Requires: python-django-collectd-rest >= 0.1.9 Requires: python-django-eremaea2 < 2.1 Requires: python-django-webpack-loader >= 1.0.0 Requires: python-dynaconf Requires: python-ruamel.yaml BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description A Django application for service eagle.sai.msu.ru web site. The package contains systemd unit file to start uwsgi. The site is expected to be served through HTTP reverse proxy. %package -n django-eagle Summary: Systemd unit files for python-django-eagle Group: Development/Languages/Python Requires: %{required_python}-django-eagle = %{version} Requires: %{required_python}-uwsgi-python3 Recommends: nginx %{?systemd_ordering} %description -n django-eagle This package contains the systemd unit files for python-django-eagle. %prep %setup -q -n django-eagle-%{version} %build %python_build %install %python_install export STATIC_ROOT=%{buildroot}/srv/www/django-eagle/static %python_exec manage.py collectstatic --noinput install -D -m 0644 settings.yaml %{buildroot}%{_sysconfdir}/django-eagle/settings.yaml install -D -m 0644 nginx_vhost.conf %{buildroot}%{_sysconfdir}/nginx/vhosts.d/django-eagle.conf install -D -m 0644 django-eagle.socket %{buildroot}%{_unitdir}/django-eagle.socket install -D -m 0644 django-eagle.service %{buildroot}%{_unitdir}/django-eagle.service mkdir -p %{buildroot}%{_sbindir} ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcdjango-eagle mkdir -p %{buildroot}%{_localstatedir}/lib/django-eagle/media ln -s %{_localstatedir}/lib/django-eagle/media %{buildroot}/srv/www/django-eagle/media # Patch systemd service file for required_python version %if "%{required_python}" == "python311" sed -e 's/plugin=python3/plugin=python311/g' -e 's|/usr/bin/python3|/usr/bin/python3.11|g' -i %{buildroot}%{_unitdir}/django-eagle.service %endif %fdupes %{buildroot}%{_prefix} %fdupes %{buildroot}/srv %pre -n django-eagle /usr/sbin/groupadd -r django_eagle >/dev/null 2>&1 || : /usr/sbin/useradd -g django_eagle -s /bin/false -r -c "Django application for eagle.sai.msu.ru" -d %{_localstatedir}/lib/django-eagle django_eagle >/dev/null 2>&1 || : %service_add_pre django-eagle.socket django-eagle.service %post -n django-eagle %service_add_post django-eagle.socket django-eagle.service %preun -n django-eagle %service_del_preun django-eagle.socket django-eagle.service %postun -n django-eagle %service_del_postun django-eagle.socket django-eagle.service %files %{python_files} %{python_sitelib} %files -n django-eagle %defattr(-,root,root,-) %dir %{_sysconfdir}/django-eagle %attr(0600,django_eagle,django_eagle) %config %{_sysconfdir}/django-eagle/settings.yaml %dir %{_sysconfdir}/nginx/vhosts.d %config %{_sysconfdir}/nginx/vhosts.d/django-eagle.conf %{_unitdir}/django-eagle.socket %{_unitdir}/django-eagle.service %dir /srv/www/django-eagle /srv/www/django-eagle/* %dir %{_localstatedir}/lib/django-eagle %attr(0755,django_eagle,django_eagle) %dir %{_localstatedir}/lib/django-eagle/media %{_sbindir}/rcdjango-eagle %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.