同步操作将从 OpenCloudOS Stream/python-django 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%bcond_with python_bootstrapSummary: A high-level Python Web frameworkName: python-djangoVersion: 2.2.28Release: 5%{?dist}License: BSDURL: https://www.djangoproject.com/Source0: https://github.com/django/django/archive/refs/tags/%{version}.tar.gzPatch5000: disable-test-custom-fields.patch# this patch is supported to be removed when python-django updatingPatch5001: 0001-bypass-some-test-for-python3.11.patchBuildArch: noarch%descriptionDjango is a high-level Python web framework that encourages rapid developmentand clean, pragmatic design. Built by experienced developers, it takes care ofmuch of the hassle of web development, so you can focus on writing your appwithout needing to reinvent the wheel. It’s free and open source.%package bash-completionSummary: Bash completion files for DjangoBuildRequires: bash-completionRequires: bash-completion%description bash-completionThis package contains the Bash completion files form Django high-levelPython Web framework.%package -n python3-django-docSummary: Documentation for DjangoBuildRequires: makeSuggests: python3-django = %{version}-%{release}%description -n python3-django-docThis package contains the documentation for the Django high-levelPython Web framework.%package -n python3-djangoSummary: A high-level Python Web frameworkBuildRequires: python3-devel python3-setuptools python3-pytz python3-sqlparse python-selenium python3-sphinxBuildRequires: /usr/bin/pathfix.pyRequires: python3-pytz python3-sqlparse python3-argon2-cffi python3-bcryptProvides: python-Django, python3-django%description -n python3-djangoDjango is a high-level Python web framework that encourages rapid developmentand clean, pragmatic design. Built by experienced developers, it takes care ofmuch of the hassle of web development, so you can focus on writing your appwithout needing to reinvent the wheel. It’s free and open source.%prep%setup -q -n django-%{version}%patch5000 -p1# remove it when django update%if "%{python3_version}" == "3.11"%patch5001 -p1%endifpathfix.py -pni "%{__python3} %{py3_shbang_opts}" .%build%py3_build%install%py3_installpathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}/usr/lib/python%{python3_version}/site-packages/django/conf/project_template/manage.py-tpl(cd docs && mkdir djangohtml && mkdir -p _build/{doctrees,html} && make html)cp -ar docs ..mkdir -p %{buildroot}%{_mandir}/man1/cp -p docs/man/* %{buildroot}%{_mandir}/man1/bashcompdir=$(pkg-config --variable=completionsdir bash-completion)mkdir -p %{buildroot}$bashcompdirinstall -m 0644 -p extras/django_bash_completion \%{buildroot}$bashcompdir/django-admin.pyfor file in django-admin django-admin-3 django-admin-%{python3_version} python3-django-admin manage.py ; doln -s django-admin.py %{buildroot}$bashcompdir/$filedoneln -s ./django-admin %{buildroot}%{_bindir}/django-admin-3ln -s ./django-admin %{buildroot}%{_bindir}/django-admin-%{python3_version}ln -s ./django-admin %{buildroot}%{_bindir}/python3-django-adminfind %{buildroot} -name "*.po" -delete%checkcd %{_builddir}/django-%{version}export PYTHONPATH="$(pwd):%{?with_python_bootstrap:$PYTHONPATH}"cd testspython3 runtests.py --settings=test_sqlite --verbosity=2 --parallel 1%files bash-completion%{_datadir}/bash-completion%files -n python3-django-doc%doc docs/_build/html/*%files -n python3-django%license LICENSE%doc AUTHORS README.rst%{_bindir}/django-admin%{_bindir}/django-admin.py%{_bindir}/django-admin-3%{_bindir}/django-admin-%{python3_version}%{_bindir}/python3-django-admin%{python3_sitelib}/*%{_mandir}/man1/django-admin.1*%changelog* Thu Sep 14 2023 Shuo Wang <abushwang@tencent.com> - 2.2.28-5- use %setup for bootstrap* Thu Sep 14 2023 Shuo Wang <abushwang@tencent.com> - 2.2.28-4- bypass many test for python 3.11* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.2.28-3- Rebuilt for OpenCloudOS Stream 23.09* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.2.28-2- Rebuilt for OpenCloudOS Stream 23.05* Sun Apr 23 2023 Miaojun Dong <zoedong@tencent.com> - 2.2.28-1- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。