Projects
domecam:mallard
python-django-mallard
python-django-mallard.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-django-mallard.spec of Package python-django-mallard (Revision 11)
Currently displaying revision
11
,
Show latest
# # spec file for package python-django-mallard # # Copyright (c) 2023 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 %{?!primary_python:%define primary_python python3} Name: python-django-mallard Version: 1.0.1 Release: 0 Summary: A Django application for serving mallard.sai.msu.ru License: BSD-2-Clause Group: Development/Languages/Python URL: http://curl.sai.msu.ru/hg/home/matwey/django-mallard Source: django-mallard-%{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-webpack-loader >= 1.0.0} BuildRequires: %{python_module dynaconf} BuildRequires: %{python_module ruamel.yaml} BuildRequires: nginx BuildRequires: systemd %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" Recommends: django-mallard %endif Requires: python-Django Requires: python-django-collectd-rest >= 0.1.9 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 mallard.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-mallard Summary: Systemd unit files for python-django-mallard Group: Development/Languages/Python Requires: %{primary_python}-django-mallard Requires: nginx Requires: uwsgi Requires: uwsgi-python3 %{?systemd_ordering} %description -n django-mallard This package contains the systemd unit files for python-django-mallard. %prep %setup -q -n django-mallard-%{version} %build %python_build %install %python_install DJANGO_MALLARD_STATIC_ROOT=%{buildroot}/srv/www/django-mallard/static python3 manage.py collectstatic --noinput install -D -m 0644 settings.yaml %{buildroot}%{_sysconfdir}/django-mallard/settings.yaml install -D -m 0644 nginx_vhost.conf %{buildroot}%{_sysconfdir}/nginx/vhosts.d/django-mallard.conf install -D -m 0644 django-mallard.socket %{buildroot}%{_unitdir}/django-mallard.socket install -D -m 0644 django-mallard.service %{buildroot}%{_unitdir}/django-mallard.service mkdir -p %{buildroot}%{_sbindir} ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcdjango-mallard %fdupes %{buildroot}%{_prefix} %fdupes %{buildroot}/srv %pre -n django-mallard /usr/sbin/groupadd -r django_mallard >/dev/null 2>&1 || : /usr/sbin/useradd -g django_mallard -s /bin/false -r -c "Django application for mallard.sai.msu.ru" -d %{_localstatedir}/lib/django-mallard django_mallard >/dev/null 2>&1 || : %service_add_pre django-mallard.socket django-mallard.service %post -n django-mallard %service_add_post django-mallard.socket django-mallard.service %preun -n django-mallard %service_del_preun django-mallard.socket django-mallard.service %postun -n django-mallard %service_del_postun django-mallard.socket django-mallard.service %files %{python_files} %{python_sitelib} %files -n django-mallard %defattr(-,root,root,-) %dir %{_sysconfdir}/django-mallard %attr(0600,django_mallard,django_mallard) %config %{_sysconfdir}/django-mallard/settings.yaml %dir %{_sysconfdir}/nginx/vhosts.d %config %{_sysconfdir}/nginx/vhosts.d/django-mallard.conf %{_unitdir}/django-mallard.socket %{_unitdir}/django-mallard.service %dir /srv/www/django-mallard /srv/www/django-mallard/* %{_sbindir}/rcdjango-mallard %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
.