## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-django Version: 4.2.16 Release: %autorelease Summary: A high-level Python Web framework # Django: BSD-3-Clause # Bundled Python code: PSF-2.0 # Font Awesome font: OFL-1.1 # Font Awesome icons: MIT # jquery, select2, xregexp: MIT # gis/gdal: BSD-3-Clause # gis/geos: BSD-3-Clause License: BSD-3-Clause AND PSF-2.0 AND MIT AND OFL-1.1 URL: https://www.djangoproject.com/ Source: %{pypi_source Django} Source: %{name}.rpmlintrc # python 3.13 - argparse change https://github.com/python/cpython/commit/c4a2e8a2c5188c3288d57b80852e92c83f46f6f3 # backport (fuzzed patch) for https://github.com/django/django/commit/3426a5c33c36266af42128ee9eca4921e68ea876.patch Patch: backport-3426a5c33c36266af42128ee9eca4921e68ea876.patch # these tests would sometimes trigger the following exception # UnicodeEncodeError: 'utf-8' codec can't encode characters in position 12-13: surrogates not allowed Patch: Django-skip-flaky-unicode-tests.diff # This allows to build the package without tests, e.g. when bootstrapping new Python version %bcond tests 1 BuildArch: noarch %global _description %{expand: Django is a high-level Python Web framework that encourages rapid development and a clean, pragmatic design. It focuses on automating as much as possible and adhering to the DRY (Don't Repeat Yourself) principle.} %description %_description %package bash-completion Summary: Bash completion files for Django BuildRequires: bash-completion Requires: bash-completion # Make sure this replaces any other Django bash-completion package Provides: python-django-bash-completion-impl Conflicts: python-django-bash-completion-impl %description bash-completion This package contains the Bash completion files form Django high-level Python Web framework. %package -n python3-django-doc Summary: Documentation for Django # Font Awesome: CC-BY-4.0, OFL-1.1, MIT License: BSD-3-Clause AND CC-BY-4.0 AND OFL-1.1 AND MIT Suggests: python3-django = %{version}-%{release} BuildRequires: make # Make sure this replaces any other Django doc package Provides: python-django-doc-impl Conflicts: python-django-doc-impl %description -n python3-django-doc This package contains the documentation for the Django high-level Python Web framework. %package -n python3-django Summary: A high-level Python Web framework Recommends: (%{name}-bash-completion = %{version}-%{release} if bash-completion) BuildRequires: python3-devel BuildRequires: python3-asgiref # see django/contrib/admin/static/admin/js/vendor/ Provides: bundled(jquery) = 3.6.4 Provides: bundled(select2) = 4.0.13 Provides: bundled(xregexp) = 3.2.0 # Make sure this replaces any other Django package Provides: python-django-impl Conflicts: python-django-impl %description -n python3-django %_description %prep %autosetup -p1 -n Django-%{version} # hard-code python3 in django-admin pushd django for file in conf/project_template/manage.py-tpl ; do sed -i "s/\/env python/\/python3/" $file ; done popd # Use non optimised psycopg for tests # Not available in Fedora sed -i 's/psycopg\[binary\]>=3\.1\.8/psycopg>=3.1.8/' tests/requirements/postgres.txt # Remove unnecessary test BRs sed -i '/^pywatchman\b/d' tests/requirements/py3.txt sed -i '/^tzdata$/d' tests/requirements/py3.txt # Remove deps on code checkers/linters sed -i '/^black\b/d' tests/requirements/py3.txt sed -i '/^black\b/d' docs/requirements.txt sed -i '/^blacken-docs\b/d' docs/requirements.txt %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:tests/requirements/{py3,postgres,mysql,oracle}.txt} docs/requirements.txt %build %pyproject_wheel %install %pyproject_install %pyproject_save_files django # build documentation (cd docs && mkdir djangohtml && mkdir -p _build/{doctrees,html} && make html) mkdir -p %{buildroot}%{_docdir}/python3-django-doc cp -ar docs/_build/html/* %{buildroot}%{_docdir}/python3-django-doc/ # install man pages (for the main executable only) mkdir -p %{buildroot}%{_mandir}/man1/ cp -p docs/man/* %{buildroot}%{_mandir}/man1/ # install bash completion script mkdir -p %{buildroot}%{bash_completions_dir} install -m 0644 -p extras/django_bash_completion \ %{buildroot}%{bash_completions_dir}/django-admin.py for file in django-admin django-admin-3 django-admin-%{python3_version} python3-django-admin manage.py ; do ln -s django-admin.py %{buildroot}%{bash_completions_dir}/$file done # Add backward compatible links to %%{_bindir} ln -s ./django-admin %{buildroot}%{_bindir}/django-admin-3 ln -s ./django-admin %{buildroot}%{_bindir}/django-admin-%{python3_version} ln -s ./django-admin %{buildroot}%{_bindir}/python3-django-admin # remove .po files find %{buildroot} -name "*.po" | xargs rm -f sed -i '/.po$/d' %{pyproject_files} %check # many contrib modules assume a configured app, "Requested setting INSTALLED_APPS..." # the rest needs optional dependencies %{pyproject_check_import \ -e 'django.contrib.*' \ -e 'django.core.serializers.pyyaml' \ -e 'django.db.backends.mysql*' \ -e 'django.db.backends.oracle*' \ -e 'django.db.backends.postgresql*'} %if %{with tests} cd %{_builddir}/Django-%{version} export PYTHONPATH=$(pwd) cd tests %{python3} runtests.py --settings=test_sqlite --verbosity=2 %endif %files bash-completion %{bash_completions_dir}/* %files -n python3-django-doc %doc %{_docdir}/python3-django-doc/* %license LICENSE %license %{_docdir}/python3-django-doc/_static/fontawesome/LICENSE.txt %files -n python3-django -f %{pyproject_files} %doc AUTHORS README.rst %doc %{python3_sitelib}/django/contrib/admin/static/admin/img/README.txt %license %{python3_sitelib}/django/contrib/admin/static/admin/css/vendor/select2/LICENSE-SELECT2.md %license %{python3_sitelib}/django/contrib/admin/static/admin/img/LICENSE %license %{python3_sitelib}/django/contrib/admin/static/admin/js/vendor/jquery/LICENSE.txt %license %{python3_sitelib}/django/contrib/admin/static/admin/js/vendor/select2/LICENSE.md %license %{python3_sitelib}/django/contrib/admin/static/admin/js/vendor/xregexp/LICENSE.txt %license %{python3_sitelib}/django/contrib/gis/gdal/LICENSE %license %{python3_sitelib}/django/contrib/gis/geos/LICENSE %{_bindir}/django-admin %{_bindir}/django-admin-3 %{_bindir}/django-admin-%{python3_version} %{_bindir}/python3-django-admin %{_mandir}/man1/django-admin.1* %changelog ## START: Generated by rpmautospec * Wed Sep 04 2024 Michel Lind - 4.2.16-1 - Update to version 4.2.16 - Fixes: CVE-2024-45230, RHBZ#2309746 - Sync spec improvements from python-django4.2 * Fri Jul 19 2024 Fedora Release Engineering - 4.2.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 10 2024 Neil Hanlon - 4.2.14-2 - bring in patches from upstream to address python 3.13 issues (fedora#2294769) * Wed Jul 10 2024 Neil Hanlon - 4.2.14-1 - update to 4.2.14 to address multiple CVEs - resolves CVE-2024-38875, CVE-2024-39329, CVE-2024-39330, CVE-2024-39614 * Sat Jun 29 2024 Python Maint - 4.2.11-4 - Rebuilt for Python 3.13 * Fri Jun 07 2024 Python Maint - 4.2.11-3 - Bootstrap for Python 3.13 * Tue Apr 09 2024 Michel Lind - 4.2.11-2 - Update list of bundled Javascript modules - Add virtual Provides and Conflicts to allow swapping Django stacks - Re-enable tests temporarily disabled for Python 3.12 beta * Mon Apr 08 2024 Michel Lind - 4.2.11-1 - Update to 4.2.11 - Resolves CVE-2024-24680 (rhbz#2263505) - Resolves CVE-2024-27351 (rhbz#2267654) * Tue Mar 12 2024 Miro Hrončok - 4.2.6-5 - No longer own the /usr/share/bash-completion directory * Fri Jan 26 2024 Fedora Release Engineering - 4.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Oct 13 2023 Michel Lind - 4.2.6-1 - Update to 4.2.6 (fixes CVE-2023-43665) - 4.2.5 also fixes CVE-2023-41164 - Remove unused patches * Fri Jul 21 2023 Michel Alexandre Salim - 4.2.3-1 - Update to 4.2.3 (rhbz#2212391) - Use SPDX license identifier - Drop unused patches * Fri Jul 21 2023 Fedora Release Engineering - 4.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 4.2.1-3 - Rebuilt for Python 3.12 * Fri May 5 2023 Steve Traylen - 4.2.1-1 - Use non binary version of psycopg in tests - Remove build dependency on black code checker - update to 4.2.1 (rhbz#2059544) * Mon Feb 13 2023 Matthias Runge - 4.1.7-1 - update to 4.1.7 (rhbz#2169312) * Fri Jan 20 2023 Fedora Release Engineering - 4.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 4.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 08 2022 Karolina Surma - 4.0.2-5 - Fix docs build with Sphinx 5+ * Tue Jun 14 2022 Miro Hrončok - 4.0.2-4 - Use dynamic BuildRequires for test and docs dependencies * Tue Jun 14 2022 Python Maint - 4.0.2-3 - Rebuilt for Python 3.11 * Tue Apr 19 2022 Miro Hrončok - 4.0.2-2 - Fix inspectdb.tests.InspectDBTestCase.test_custom_fields() on SQLite 3.37+ - Fixes: rhbz#2070100 * Wed Feb 02 2022 Matthias Runge - 4.0.2-1 - rebase to 4.0.2, fix for CVE-2022-22818 (rhbz#2049332) - fix for CVE-2022-23833 (rhbz#2049325) - this also fixes rhbz#1961135, rhbz#1967410, rhbz#1967428, rhbz#2037174, rhbz#2048940 * Mon Jan 24 2022 Matthias Runge - 4.0.1-1 - rebase to 4.0.x, https://fedoraproject.org/wiki/Changes/Django4.0, also rhbz#2006537 * Fri Jan 21 2022 Fedora Release Engineering - 3.2.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 17 2021 Michel Alexandre Salim - 3.2.9-4 - Drop obsolete python_provide lines * Wed Dec 15 2021 Michel Alexandre Salim - 3.2.9-3 - Use build-dependency generator - Use pyproject macros * Wed Dec 15 2021 Michel Alexandre Salim - 3.2.9-2 - Drop old BR on python3-mock * Wed Nov 24 2021 Karolina Surma - 3.2.9-1 - update to 3.2.9 - unskip fixed tests - backport fix for building docs with python-sphinx 4.3.0 * Wed Sep 08 2021 Matthias Runge - 3.2.7-1 - update to 3.2.7 (rhbz#1999958) * Mon Aug 09 2021 Matthias Runge - 3.2.6-1 - update to 3.2.6 (rhbz#1957630) - skip failing test AssertionError: "Error: invalid choice: 'test' (choose from 'foo')"(rhbz#1898084) * Tue Jul 27 2021 Fedora Release Engineering - 3.2.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.2.1-2 - Rebuilt for Python 3.10 * Tue May 04 2021 Matthias Runge - 3.2.1-1 - rebase to 3.2.1, fixes CVE-2021-31542 - rebase to 3.1.8 fixes CVE-2021-28658 (rbhz#1946580) - rebase to 3.2.1 (rhbz#1917820) * Fri Mar 05 2021 Matthias Runge - 3.1.7-1 - update to 3.1.7, fix CVE-2021-23336 (rhbz#1931542) * Thu Feb 04 2021 Matthias Runge - 3.1.6-1 - update to 3.1.6, fix CVE-2021-3281 (rhbz#1923734) * Wed Jan 27 2021 Fedora Release Engineering - 3.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 04 2021 Matthias Runge - 3.1.5-1 - update to 3.1.5 * Thu Dec 03 2020 Matthias Runge - 3.1.4-1 - update to 3.1.4 (rhbz#1893635) * Thu Oct 01 2020 Matthias Runge - 3.1.2-1 - update to 3.1.2 (rhbz#1874420) * Thu Sep 03 2020 Matthias Runge - 3.1.1-1 - update to 3.1.1 (rhbz#1874420) * Sun Aug 30 2020 Igor Raits - 3.1-1 - Update to 3.1 * Wed Jul 29 2020 Fedora Release Engineering - 3.0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 Michel Alexandre Salim - 3.0.7-2 - Add BR on setuptools * Sun Jun 07 2020 Miro Hrončok - 3.0.7-1 - Update to 3.0.7 - Security fix for CVE-2020-7471 (rhbz#1798516) - Security fix for CVE-2020-9402 (rhbz#1810093) - Security fix for CVE-2020-13254 (rhbz#1843617) - Security fix for CVE-2020-13596 (rhbz#1843627) * Mon May 25 2020 Miro Hrončok - 3.0.2-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 3.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 02 2020 Matthias Runge - 3.0.2-1 - bugfix release * Tue Dec 03 2019 Miro Hrončok - 3.0-1 - Update to 3.0 final * Tue Oct 15 2019 Miro Hrončok - 3.0~b1-1 - Update to 3.0b1 (rhbz#1761417) * Fri Oct 04 2019 Miro Hrončok - 3.0~a1-1 - Update to 3.0a1 (rhbz#1750709) - https://fedoraproject.org/wiki/Changes/Django3 * Thu Sep 05 2019 Matthias Runge - 2.2.5-1 - bugfix release 2.2.5 (rhbz#1747876) * Sun Aug 18 2019 Miro Hrončok - 2.2.4-2 - Rebuilt for Python 3.8 * Tue Aug 06 2019 Matthias Runge - 2.2.4-1 - fix CVE-2019-14235 (rhbz#1735784) - fix CVE-2019-14234 (rhbz#1735780) - fix CVE-2019-14233 (rhbz#1735775) - fix CVE-2019-14232 (rhbz#1735771) * Fri Jul 26 2019 Fedora Release Engineering - 2.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jul 04 2019 Matthias Runge - 2.2.3-1 - fix CVE-2019-12781 Incorrect HTTP detection with reverse-proxy connecting via HTTPS (rhbz#1726014) * Tue Jun 04 2019 Matthias Runge - 2.2.2-1 - fix CVE-2019-12308 AdminURLFieldWidget XSS (rhbz#1716763) * Wed Apr 10 2019 Miro Hrončok - 2.2-1 - Update to 2.2 (rhbz#1674439) * Wed Feb 20 2019 Matthias Runge - 2.1.7-1 - Fix CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format() rhbz#1678264 * Sat Feb 02 2019 Fedora Release Engineering - 2.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jan 11 2019 Igor Gnatenko - 2.1.5-2 - Enable python dependency generator * Mon Jan 07 2019 Matthias Runge - 2.1.5-1 - fix CVE-2019-3498 python-django: Content spoofing via URL path in default 404 page (rhbz#1663723) * Mon Oct 22 2018 Matthias Runge - 2.1.2-1 - fix CVE-2018-16984 Password hash disclosure to “view only” admin users (rhbz#1639399) * Fri Aug 17 2018 Matthias Runge - 2.1-1 - update to 2.1 (rhbz#1611025) * Sat Jul 14 2018 Fedora Release Engineering - 2.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jul 06 2018 Matthias Runge - 2.0.7-1 - bugfix update to 2.0.7 (rhbz#1597265) * Mon Jun 18 2018 Miro Hrončok - 2.0.6-2 - Rebuilt for Python 3.7 * Mon Jun 04 2018 Matthias Runge - 2.0.6-1 - bugfix update to 2.0.6 (rhbz#1585347) * Thu May 03 2018 Matthias Runge - 2.0.5-1 - update to 2.0.5 (rhbz#1574123) * Tue Apr 03 2018 Matthias Runge - 2.0.4-1 - update to 2.0.4 (rhbz#1541188) * Fri Mar 16 2018 Miro Hrončok - 2.0.3-4 - Obsolete pythonX-django-ckeditor, pythonX-django-extensions, pythonX-django-helpdesk, pythonX-django-openid-auth, pythonX-django-pylibmc, pythonX-django-select2, pythonX-django-setuptest, pythonX-django-federated-login * Sun Mar 11 2018 Miro Hrončok - 2.0.3-3 - Obsolete pythonX-django-pgjson * Wed Mar 07 2018 Miro Hrončok - 2.0.3-2 - Obsolete pythonX-django-sekizai and pythonX-django-south * Tue Mar 06 2018 Matthias Runge - 2.0.3-1 - update to 2.0.3, fix CVE-2018-7536 (rhbz#1552178) * Fri Mar 02 2018 Miro Hrončok - 2.0.2-4 - Obsolete packages retired from https://pagure.io/fesco/issue/1857 * Fri Mar 02 2018 Miro Hrončok - 2.0.2-3 - Obsolete pythonX-django-model-utils and pythonX-django-netjsongraph * Wed Feb 07 2018 Matthias Runge - 2.0.2-2 - requires python2 while being python3 (rhbz#15424) * Fri Feb 02 2018 Matthias Runge - 2.0.2-1 - fix CVE-2018-6188 * Tue Jan 16 2018 Matthias Runge - 2.0.1-1 - update to 2.0.1 - remove python2 bits - enable python3 tests * Tue Jan 16 2018 Troy Dawson - 1.11.9-2 - Update conditionals * Thu Jan 04 2018 Miro Hrončok - 1.11.9-1 - update to 1.11.9 * Thu Jan 04 2018 Miro Hrončok - 1.11.8-2 - Obsolete python(2)-django-devserver * Fri Dec 15 2017 Matthias Runge - 1.11.8-1 - update to 1.11.8 * Wed Sep 06 2017 Matthias Runge - 1.11.5-1 - update to 1.11.5 (rhbz#1488683) * Wed Aug 02 2017 Matthias Runge - 1.11.4-1 - update to 1.11.4 (rhbz#1477382) * Thu Jul 27 2017 Fedora Release Engineering - 1.11.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 03 2017 Matthias Runge - 1.11.3-1 - Update to 1.11.3 (rhbz#1467029) * Thu Jun 15 2017 Matthias Runge - 1.11.2-1 - update to 1.11.2 (rhbz#1448664 - add dependency to pytz (rhbz#1458493) * Thu Apr 06 2017 Matthias Runge - 1.11-1 - update to 1.11 (rhbz#1410268) * Tue Feb 28 2017 Matthias Runge - 1.10.5-1 - rebase to 1.10.5, fix FTBFS (rhbz#1424135) - declare bundled libs (rhbz#1401243) * Sat Feb 11 2017 Fedora Release Engineering - 1.10.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 12 2016 Stratakis Charalampos - 1.10.4-2 - Rebuild for Python 3.6 - Disable python3 tests for now * Fri Dec 02 2016 Matthias Runge - 1.10.4-1 - update to stable 1.10.4 (rhbz#1400730) * Wed Nov 02 2016 Matthias Runge - 1.10.3-1 - update to 1.10.3 (rhbz#1390782) - fix CVE-2016-9013, CVE-2016-9014 * Mon Oct 03 2016 Matthias Runge - 1.10.2-1 - update to 1.10.2 (rhbz#1381019) * Thu Sep 22 2016 Matthias Runge - 1.10.1-1 - rebase to 1.10.1 (rhbz#1338391) * Thu Jul 21 2016 Matthias Runge - 1-9.8-1 - fix CVE-2016-6186 (rhbz#1357701) * Tue Jul 19 2016 Fedora Release Engineering - 1.9.7-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jun 06 2016 Matthias Runge - 1.9.7-1 - bugfix release * Tue May 31 2016 Nils Philippsen - fix source URL * Sun May 8 2016 Peter Robinson 1.9.6-2 - Put the provives/obsoletes in the right spot for new python naming * Tue May 03 2016 Matthias Runge - 1.9.6-1 - update to 1.9.6 (rhbz#1323374) * Tue Mar 08 2016 Matthias Runge - 1.9.4-1 - update to 1.9.4 fixing a regression introduced in last upstream fix for CVE-2016-2512 * Wed Mar 02 2016 Matthias Runge - 1.9.3-1 - update to 1.9.3, fixing CVE-2016-2512, CVE-2016-2513 (rhbz#1313500) * Thu Feb 11 2016 Matthias Runge - 1.9.2-1 - update to 1.9.2 (rhbz#1266062) - modernize spec file, provide py2, obsolete python-django * Thu Feb 04 2016 Fedora Release Engineering - 1.8.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild ## END: Generated by rpmautospec