diff --git a/2.2.3.tar.gz b/Django-1.11.18.tar.gz similarity index 48% rename from 2.2.3.tar.gz rename to Django-1.11.18.tar.gz index 54e650ff1b761a9d2589c103da3dbb41bf95e6f1..f07c34d3fd62e99703a68badab2f8af4df93d86b 100644 Binary files a/2.2.3.tar.gz and b/Django-1.11.18.tar.gz differ diff --git a/python-django.spec b/python-django.spec index 2cf9e86e788eba5fa24c1eb2f5f9f1e9384691ba..22a1c23522912fe7d965e9500baec66725856568 100644 --- a/python-django.spec +++ b/python-django.spec @@ -1,44 +1,43 @@ %global _empty_manifest_terminate_build 0 Name: python-django -Version: 2.2.3 -Release: 2 +Version: 1.11.18 +Release: 1 Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design. -License: BSD-3-Clause and OFL-1.1 and Apache-2.0 and MIT -URL: https://github.com/django/django -Source0: https://github.com/django/django/archive/%{version}.tar.gz -BuildArch: noarch - -Requires: python3-asgiref -Requires: python3-pytz -Requires: python3-sqlparse -Requires: python3-argon2-cffi -Requires: python3-bcrypt - +License: Python-2.0 and Apache-2.0 and MIT and OFL-1.1 +URL: https://www.djangoproject.com/ +Source0: https://files.pythonhosted.org/packages/90/84/7981bdfcfa80fe81df5325899f9fc1cbebce1fbe4fac092a32dca00d0ab2/Django-1.11.18.tar.gz +BuildArch: noarch %description A high-level Python Web framework that encourages rapid development and clean, pragmatic design. -%package -n python3-Django + +%package -n python2-django Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design. -Provides: python-Django, python3-django -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-Django +Provides: python2-django, python2-Django +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-pytz +Requires: python2-argon2-cffi +Requires: python2-bcrypt +%description -n python2-django A high-level Python Web framework that encourages rapid development and clean, pragmatic design. + %package help -Summary: Development documents and examples for Django -Provides: python3-Django-doc +Summary: Development documents and examples for django +Provides: python2-django-doc %description help -Development documents and examples for Django +A high-level Python Web framework that encourages rapid development and clean, pragmatic design. + %prep -%autosetup -n django-%{version} +%autosetup -n Django-1.11.18 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -65,15 +64,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-Django -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-django -f filelist.lst +%{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Tus Feb 09 2021 wangxiyuan -- Add python3-django for correct package name. Due to backward compatibility, the python3-Django is kept and it should be removed in the future. - -* Fri Jan 08 2021 Python_Bot +* Mon May 10 2021 openstack-sig - Package Spec generated