1
0
forked from pool/python-Django
python-Django/python-Django.spec

108 lines
4.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-Django
#
Accepting request 573722 from devel:languages:python - update to 2.0.2 (bsc#1077714, CVE-2018-6188): * Fixed #28883 -- Doc'd that the uuid URL path converter matches lowercase only letters. * Fixed a GeoIP2 test failure with the latest GeoIP2 database. * Added stub release notes for 2.0.1. * Bumped version for 2.0.2 release. * Fixed location of spatialite_source label. * Fixed #28958 -- Fixed admin changelist crash when using a query expression in the page's ordering. * Fixed #28231 -- Doc'd that QuerySet.bulk_create() casts objs to a list. * Fixed #29032 -- Fixed an example of using expressions in QuerySet.values(). * Disambiguated "settings" in SpatiaLite note. * Fixed typo in docs/topics/testing/advanced.txt. * Post-release version bump. * Refs #25604 -- Removed docs for makemigrations --exit. * Fixed #29002 -- Corrected cached template loader docs about when it's automatically enabled. * Fixed typo in TemplateCommand argument help text. * Added stub release notes for 1.11.9. * Fixed #28915 -- Prevented SQLite from truncating trailing zeros in the fractional part of DecimalField. * Refs #29086 -- Doc'd how to detect bytestring mistakes. * Fixed #28886 -- Updated prefix for example django.contrib.auth.urls URLs. * Fixed #29081 -- Clarified comments in QuerySet.select_related() example. * Refs #27985 -- Reallowed using __exact=None as an alias for __isnull=True if a custom lookup class with lookup_name != None is registered as the exact lookup. * Refs #28876 -- Fixed incorrect class-based model index name generation for models with quoted db_table. * Removed 'development' word in contributing docs * Fixed #29055 -- Doc'd that escapejs doesn't make template literals safe. * Fixed #29016 -- Fixed incorrect foreign key nullification on related instance deletion. * Fixed grammar in docs/releases/2.0.txt. * Fixed #29071 -- Fixed contrib.auth.authenticate() crash if a backend doesn't accept a request but a later one does. * Fixed #28944 -- Fixed crash when chaining values()/values_list() after QuerySet.select_for_update(of=()). * Fixed #29091 -- Fixed makemigrations crash if migrations directory doesn't have __init__.py. * Fixed #28898 -- Corrected admin check to allow a OneToOneField in ModelAdmin.autocomplete_fields. OBS-URL: https://build.opensuse.org/request/show/573722 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Django?expand=0&rev=36
2018-02-08 14:09:56 +01:00
# 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
Accepting request 594522 from devel:languages:python - update to version 2.0.4: * Fixed #29265 -- Removed the suggestion to hardcode static URLs. * Fixed #29206 -- Fixed PasswordResetConfirmView crash when the URL contains a non-UUID where one is expected. * Fixed #29195 -- Fixed Exists.output_field resolution on single-valued queries. * Fixed links to Sphinx docs. * Fixed typo in docs/releases/2.0.4.txt. * Clarified docs about ISO 8601 week numbering. * Fixed #29116 -- Fixed OpenLayersWidget deserialization ignoring the widget map's SRID. * Added CVE-2018-7536,7 to the security release archive. * Fixed #29221 -- Corrected admin's autocomplete widget to add a space after custom classes. * Fixed #29273 -- Prevented initial selection of empty choice in multiple choice widgets. * Added a pagination example to ListView docs. * Fixed #28514 -- Clarifed docs about idempotence of RelatedManager.add(). * isorted import statements in tutorial example. * Fixed #29192 -- Corrected docs regarding overriding fields from abstract base classes. * Refs #11278 -- Clarified RelatedManager differences between reverse one-to-many and many-to-many relations. * Added stub release notes for 1.11.12. * Fixed #29165 -- Clarified how to load initial data with migrations. * Fixed #29213 -- Fixed autocomplete widget's translations for zh-hans/zh-hant. * Reverted "Expanded docs for AbstractBaseUser.has_usable_password()." * Fixed typo in docs/releases/2.0.4/1.11.12.txt. * Bumped version for 2.0.4 release. * Fixed #29250 -- Added 'django_version' context to startapp/project docs. * Added release date for 2.0.4 and 1.11.12. * Post-release version bump. * Clarified a sentence in docs/topics/i18n/translation.txt. * Fixed #29229 -- Fixed column mismatch crash when combining two annotated values_list() querysets with union(), difference(), or intersection(). * Added stub release notes for 2.0.4. * Fixed a couple mistakes in docs/ref/forms/widgets.txt. * Fixed #28655 -- Added more examples for customizing widgets in a form. OBS-URL: https://build.opensuse.org/request/show/594522 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Django?expand=0&rev=38
2018-04-11 13:47:22 +02:00
Version: 2.0.4
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
Source1: https://www.djangoproject.com/m/pgp/Django-%{version}.checksum.txt#/Django-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source99: python-Django-rpmlintrc
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
# The publisher doesn't sign the source tarball, but a signatures file containing multiple hashes.
# Verify hashes in that file against source tarball.
echo "`grep -e '^[0-9a-f]\{32\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-32` %{SOURCE0}" | md5sum -c
echo "`grep -e '^[0-9a-f]\{40\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-40` %{SOURCE0}" | sha1sum -c
echo "`grep -e '^[0-9a-f]\{64\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-64` %{SOURCE0}" | sha256sum -c
%setup -q -n Django-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/django-admin.py
%python_clone -a %{buildroot}%{_bindir}/django-admin
Accepting request 222292 from devel:languages:python - Fix update-alternatives - Update to version 1.6.2: + Prevented the base geometry object of a prepared geometry to be garbage collected, which could lead to crash Django (#21662). + Fixed a crash when executing the changepassword command when the user object representation contained non-ASCII characters (#21627). + The collectstatic command will raise an error rather than default to using the current working directory if STATIC_ROOT is not set. Combined with the --clear option, the previous behavior could wipe anything below the current working directory (#21581). + Fixed mail encoding on Python 3.3.3+ (#21093). + Fixed an issue where when settings.DATABASES['default']['AUTOCOMMIT'] = False, the connection wasn’t in autocommit mode but Django pretended it was. + Fixed a regression in multiple-table inheritance exclude() queries (#21787). + Added missing items to django.utils.timezone.__all__ (#21880). + Fixed a field misalignment issue with select_related() and model inheritance (#21413). + Fixed join promotion for negated AND conditions (#21748). + Oracle database introspection now works with boolean and float fields (#19884). + Fixed an issue where lazy objects weren’t actually marked as safe when passed through mark_safe() and could end up being double-escaped (#21882). OBS-URL: https://build.opensuse.org/request/show/222292 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Django?expand=0&rev=3
2014-02-26 06:55:11 +01:00
%{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 LICENSE README.rst
%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