Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:GA
python-Django.35486
python-Django.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-Django.spec of Package python-Django.35486
# # spec file for package python-Django # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-Django Version: 2.0.7 Release: 0 Summary: A high-level Python Web framework License: BSD-3-Clause Group: Development/Languages/Python Url: http://www.djangoproject.com Source: https://www.djangoproject.com/m/releases/2.0/Django-%{version}.tar.gz Source99: python-Django-rpmlintrc # PATCH-FIX-UPSTREAM CVE-2023-24580-DOS_file_upload.patch bsc#1208082 mcepl@suse.com # prevent DOS in file uploads Patch0: CVE-2023-24580-DOS_file_upload.patch # PATCH-FIX-UPSTREAM CVE-2023-31047-Fixed-31710-Prevented-pot.patch bsc#1210866 mmachova@suse.com Patch1: CVE-2023-31047-Fixed-31710-Prevented-pot.patch # PATCH-FIX-UPSTREAM CVE-2023-36053.patch bsc#1212742 Patch8: CVE-2023-36053.patch # PATCH-FIX-UPSTREAM CVE-2023-43665.patch bsc#1215978 Patch9: CVE-2023-43665.patch # PATCH-FIX-UPSTREAM CVE-2024-27351.patch bsc#1220358 Patch10: CVE-2024-27351.patch # PATCH-FIX-UPSTREAM fix-cve-2023-23969.patch bsc#1207565 Patch11: fix-cve-2023-23969.patch # PATCH-FIX-UPSTREAM CVE-2024-38875.patch bsc#1227590 Patch12: CVE-2024-38875.patch # PATCH-FIX-UPSTREAM CVE-2024-39329.patch bsc#1227593 Patch13: CVE-2024-39329.patch # PATCH-FIX-UPSTREAM CVE-2024-39330.patch bsc#1227594 Patch14: CVE-2024-39330.patch # PATCH-FIX-UPSTREAM CVE-2024-39614.patch bsc#1227595 Patch15: CVE-2024-39614.patch # PATCH-FIX-UPSTREAM CVE-2019-12308.patch https://github.com/django/django/commit/deeba6d92006999fee9adfbd8be79bf0a59e8008 (no Bugzilla entry) # for CVE-2024-41991.patch to apply more cleanly Patch16: CVE-2019-12308.patch # PATCH-FIX-UPSTREAM CVE-2022-28346.patch https://github.com/django/django/commit/93cae5cb2f9a4ef1514cf1a41f714fef08005200 bsc#1198398 # for CVE-2024-42005.patch to even work # I noticed also CVE-2022-28347, but I don't think this is affected (the functionality is not present) Patch17: CVE-2022-28346.patch # PATCH-FIX-UPSTREAM CVE-2024-41989.patch bsc#1228629 Patch18: CVE-2024-41989.patch # PATCH-FIX-UPSTREAM CVE-2024-41990.patch bsc#1228630 Patch19: CVE-2024-41990.patch # PATCH-FIX-UPSTREAM CVE-2024-41991.patch bsc#1228631 Patch20: CVE-2024-41991.patch # PATCH-FIX-UPSTREAM CVE-2024-42005.patch bsc#1228632 Patch21: CVE-2024-42005.patch # PATCH-FIX-UPSTREAM CVE-2024-45230.patch bsc#1229823 Patch22: CVE-2024-45230.patch # PATCH-FIX-UPSTREAM CVE-2024-45231.patch bsc#1229824 Patch23: CVE-2024-45231.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow Requires: python-pytz Requires: python-setuptools Requires: python-xml Recommends: python-bcrypt Provides: python3-django = %{version} Obsoletes: python3-django < %{version} Provides: python3-South = %{version} Obsoletes: python3-South < %{version} Requires(post): update-alternatives Requires(preun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %description Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. %prep %autosetup -p1 -n Django-%{version} %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/django-admin.py %python_clone -a %{buildroot}%{_bindir}/django-admin %{python_expand install -D -m 0644 extras/django_bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/django_bash_completion-%{$python_bin_suffix}.sh pushd %{buildroot}%{$python_sitelib} chmod a-x django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.js # Fix wrong-script-interpreter sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" django/bin/django-admin.py sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" django/conf/project_template/manage.py-tpl %fdupes . # Deduplicating files can generate a RPMLINT warning for pyc mtime $python -m compileall -d %{$python_sitelib} django/bin/ $python -O -m compileall -d %{$python_sitelib} django/bin/ $python -m compileall -d %{$python_sitelib} django/conf/project_template/ $python -O -m compileall -d %{$python_sitelib} django/conf/project_template/ $python -m compileall -d %{$python_sitelib} django/conf/locale/ $python -O -m compileall -d %{$python_sitelib} django/conf/locale/ $python -m compileall -d %{$python_sitelib} django/conf/locale/ru/ $python -O -m compileall -d %{$python_sitelib} django/conf/locale/ru/ %fdupes django/bin/ popd } %post %{python_install_alternative django-admin.py django-admin} %preun %python_uninstall_alternative django-admin %files %{python_files} %defattr(-,root,root,-) %doc AUTHORS README.rst %license LICENSE %python_alternative %{_bindir}/django-admin %python_alternative %{_bindir}/django-admin.py %{_sysconfdir}/bash_completion.d/django_bash_completion-%{python_bin_suffix}.sh %{python_sitelib}/django %{python_sitelib}/Django-%{version}-py*.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor