| |
@@ -1,52 +1,44 @@
|
| |
- %{?python_enable_dependency_generator}
|
| |
- # Turn off the brp-python-bytecompile script
|
| |
- %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
| |
-
|
| |
- %global pkgname Django
|
| |
-
|
| |
-
|
| |
- # Tests requiring Internet connections are disabled by default
|
| |
- # pass --with internet to run them (e.g. when doing a local rebuild
|
| |
- # for sanity checks before committing)
|
| |
- %bcond_with internet
|
| |
-
|
| |
Name: python-django
|
| |
-
|
| |
- Version: 2.2.5
|
| |
+ %global pkgname Django
|
| |
+ %global ver 3.0
|
| |
+ %global pre a1
|
| |
+ %global real_version %{ver}%{?pre:%{pre}}
|
| |
+ Version: %{ver}%{?pre:~%{pre}}
|
| |
Release: 1%{?dist}
|
| |
Summary: A high-level Python Web framework
|
| |
|
| |
License: BSD
|
| |
- URL: http://www.djangoproject.com/
|
| |
- Source0: https://files.pythonhosted.org/packages/source/D/Django/Django-%{version}.tar.gz
|
| |
-
|
| |
+ URL: https://www.djangoproject.com/
|
| |
+ Source0: %{pypi_source %{pkgname} %{real_version}}
|
| |
|
| |
# skip tests requiring network connectivity
|
| |
- Patch000: Django-2.0-skip-net-tests.patch
|
| |
-
|
| |
+ Patch000: Django-2.0-skip-net-tests.patch
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
-
|
| |
-
|
| |
- %description
|
| |
+ %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.
|
| |
+ principle.}
|
| |
+
|
| |
+ %description %_description
|
| |
+
|
| |
|
| |
%package bash-completion
|
| |
- Summary: bash completion files for Django
|
| |
+ Summary: Bash completion files for Django
|
| |
BuildRequires: bash-completion
|
| |
-
|
| |
+ Requires: bash-completion
|
| |
|
| |
%description bash-completion
|
| |
- This package contains the bash completion files form Django high-level
|
| |
+ This package contains the Bash completion files form Django high-level
|
| |
Python Web framework.
|
| |
|
| |
+
|
| |
%package -n python3-django-doc
|
| |
Summary: Documentation for Django
|
| |
- Requires: python3-django = %{version}-%{release}
|
| |
+ %{?python_provide:%python_provide python3-django-doc}
|
| |
+ Suggests: python3-django = %{version}-%{release}
|
| |
BuildRequires: python3-sphinx
|
| |
BuildRequires: python3-psycopg2
|
| |
|
| |
@@ -54,6 +46,7 @@
|
| |
This package contains the documentation for the Django high-level
|
| |
Python Web framework.
|
| |
|
| |
+
|
| |
%package -n python3-django
|
| |
Summary: A high-level Python Web framework
|
| |
%{?python_provide:%python_provide python3-django}
|
| |
@@ -64,6 +57,7 @@
|
| |
BuildRequires: python3-bcrypt
|
| |
# test requirements
|
| |
#BuildRequires: python3-py-bcrypt
|
| |
+ BuildRequires: python3-asgiref >= 3
|
| |
BuildRequires: python3-docutils
|
| |
BuildRequires: python3-jinja2
|
| |
BuildRequires: python3-mock
|
| |
@@ -78,79 +72,10 @@
|
| |
Provides: bundled(jquery) = 2.2.3
|
| |
Provides: bundled(xregexp) = 2.0.0
|
| |
|
| |
- # /usr/bin/django-admin moved from the python2 package
|
| |
- Conflicts: python2-django < 2
|
| |
- Conflicts: python-django < 2
|
| |
-
|
| |
- # Removed when F28 was rawhide, keep this till F30:
|
| |
- Obsoletes: python-django-devserver < 0.8.0-8
|
| |
- Obsoletes: python2-django-devserver < 0.8.0-8
|
| |
- Obsoletes: python-django-extra-form-fields < 0.0.1-16
|
| |
- Obsoletes: python2-django-extra-form-fields < 0.0.1-16
|
| |
- Obsoletes: python-django-profiles < 0.2-16
|
| |
- Obsoletes: python2-django-profiles < 0.2-16
|
| |
- Obsoletes: python-django-model-utils < 3.1.1-3
|
| |
- Obsoletes: python2-django-model-utils < 3.1.1-3
|
| |
- Obsoletes: python3-django-model-utils < 3.1.1-3
|
| |
- Obsoletes: python-django-netjsongraph < 0.2.2-5
|
| |
- Obsoletes: python2-django-netjsongraph < 0.2.2-5
|
| |
- Obsoletes: python3-django-netjsongraph < 0.2.2-5
|
| |
- Obsoletes: python-django-dynamite < 0.4.1-16
|
| |
- Obsoletes: python2-django-dynamite < 0.4.1-16
|
| |
- Obsoletes: python-django-flash < 1.8-18
|
| |
- Obsoletes: python2-django-flash < 1.8-18
|
| |
- Obsoletes: python-django-followit < 0.0.3-16
|
| |
- Obsoletes: python2-django-followit < 0.0.3-16
|
| |
- Obsoletes: python-django-socialregistration < 0.5.10-11
|
| |
- Obsoletes: python2-django-socialregistration < 0.5.10-11
|
| |
- Obsoletes: python-django-staticfiles < 1.2.1-13
|
| |
- Obsoletes: python2-django-staticfiles < 1.2.1-13
|
| |
- Obsoletes: python-django-sekizai-doc < 0.8.1-12
|
| |
- Obsoletes: python-django-sekizai < 0.8.1-12
|
| |
- Obsoletes: python2-django-sekizai < 0.8.1-12
|
| |
- Obsoletes: python3-django-sekizai-doc < 0.8.1-12
|
| |
- Obsoletes: python3-django-sekizai < 0.8.1-12
|
| |
- Obsoletes: python-django-south < 1.0.2-3
|
| |
- Obsoletes: python2-django-south < 1.0.2-3
|
| |
- Obsoletes: python3-django-south < 1.0.2-3
|
| |
- Obsoletes: python-django-pgjson < 0.3.1-7
|
| |
- Obsoletes: python2-django-pgjson < 0.3.1-7
|
| |
- Obsoletes: python3-django-pgjson < 0.3.1-7
|
| |
- Obsoletes: python-django-ckeditor < 5.3.0-4
|
| |
- Obsoletes: python2-django-ckeditor < 5.3.0-4
|
| |
- Obsoletes: python3-django-ckeditor < 5.3.0-4
|
| |
- Obsoletes: python-django-extensions < 1.7.3-6
|
| |
- Obsoletes: python2-django-extensions < 1.7.3-6
|
| |
- Obsoletes: python3-django-extensions < 1.7.3-6
|
| |
- Obsoletes: python-django-extensions-doc < 1.7.3-6
|
| |
- Obsoletes: python-django-helpdesk < 0.2.1-3
|
| |
- Obsoletes: python2-django-helpdesk < 0.2.1-3
|
| |
- Obsoletes: python3-django-helpdesk < 0.2.1-3
|
| |
- Obsoletes: python-django-openid-auth < 0.14-4
|
| |
- Obsoletes: python2-django-openid-auth < 0.14-4
|
| |
- Obsoletes: python3-django-openid-auth < 0.14-4
|
| |
- Obsoletes: python-django-pylibmc < 0.6.1-6
|
| |
- Obsoletes: python2-django-pylibmc < 0.6.1-6
|
| |
- Obsoletes: python3-django-pylibmc < 0.6.1-6
|
| |
- Obsoletes: python-django-select2 < 5.8.10-4
|
| |
- Obsoletes: python2-django-select2 < 5.8.10-4
|
| |
- Obsoletes: python3-django-select2 < 5.8.10-4
|
| |
- Obsoletes: python-django-setuptest < 0.2.1-6
|
| |
- Obsoletes: python2-django-setuptest < 0.2.1-6
|
| |
- Obsoletes: python3-django-setuptest < 0.2.1-6
|
| |
- Obsoletes: python-django-federated-login < 1.0.0-16
|
| |
- Obsoletes: python2-django-federated-login < 1.0.0-16
|
| |
- Obsoletes: python3-django-federated-login < 1.0.0-16
|
| |
-
|
| |
-
|
| |
- %description -n python3-django
|
| |
- 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 -n python3-django %_description
|
| |
|
| |
%prep
|
| |
- %autosetup -p1 -n %{pkgname}-%{version}
|
| |
+ %autosetup -p1 -n %{pkgname}-%{real_version}
|
| |
|
| |
# hard-code python3 in django-admin
|
| |
pushd django
|
| |
@@ -165,10 +90,6 @@
|
| |
%install
|
| |
%py3_install
|
| |
|
| |
- # Manually invoke the python byte compile macro for each path that needs byte
|
| |
- # compilation.
|
| |
- %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}
|
| |
-
|
| |
%find_lang django
|
| |
%find_lang djangojs
|
| |
# append djangojs.lang to django.lang
|
| |
@@ -176,7 +97,6 @@
|
| |
|
| |
|
| |
# build documentation
|
| |
- export SPHINXBUILD=sphinx-build-3
|
| |
(cd docs && mkdir djangohtml && mkdir -p _build/{doctrees,html} && make html)
|
| |
cp -ar docs ..
|
| |
|
| |
@@ -203,7 +123,7 @@
|
| |
find $RPM_BUILD_ROOT -name "*.po" | xargs rm -f
|
| |
|
| |
%check
|
| |
- cd %{_builddir}/%{pkgname}-%{version}
|
| |
+ cd %{_builddir}/%{pkgname}-%{real_version}
|
| |
export PYTHONPATH=$(pwd)
|
| |
cd tests
|
| |
|
| |
@@ -375,7 +295,7 @@
|
| |
%{python3_sitelib}/django/conf/urls/
|
| |
%{python3_sitelib}/django/conf/locale/*/*.py*
|
| |
%{python3_sitelib}/django/conf/locale/*.py*
|
| |
- %{python3_sitelib}/%{pkgname}-%{version}-py%{python3_version}.egg-info
|
| |
+ %{python3_sitelib}/%{pkgname}-%{real_version}-py%{python3_version}.egg-info
|
| |
%{python3_sitelib}/django/__pycache__
|
| |
%{python3_sitelib}/django/bin/__pycache__
|
| |
%{python3_sitelib}/django/conf/__pycache__
|
| |
@@ -394,6 +314,10 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Fri Oct 04 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0~a1-1
|
| |
+ - Update to 3.0a0 (rhbz#1750709)
|
| |
+ - https://fedoraproject.org/wiki/Changes/Django3
|
| |
+
|
| |
* Thu Sep 05 2019 Matthias Runge <mrunge@redhat.com> - 2.2.5-1
|
| |
- bugfix release 2.2.5 (rhbz#1747876)
|
| |
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1750709
https://fedoraproject.org/wiki/Changes/Django3