diff --git a/python-django.spec b/python-django.spec index 0a650a9..3a63dbe 100644 --- a/python-django.spec +++ b/python-django.spec @@ -1,6 +1,6 @@ %define majver %(echo %version | cut -d. -f1-2) Name: python-django -Version: 3.1.7 +Version: 3.2.4 Release: 1mamba Summary: A high-level Python Web framework Group: System/Libraries/Python @@ -13,13 +13,12 @@ Source: https://www.djangoproject.com/m/releases/%{majver}/Django-%{versi Source1: simplejson-init.py License: BSD ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython36-devel +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(asgiref) +BuildRequires: python3.7dist(pytz) +BuildRequires: python3.7dist(setuptools) +BuildRequires: python3.7dist(sqlparse) ## AUTOBUILDREQ-END -BuildRequires: python-Sphinx -BuildRequires: python-Jinja2 -Requires: python36 >= %python36_version -Requires: python-simplejson-py36 -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description 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. @@ -32,73 +31,55 @@ Summary: Documentation for %{name} 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. This package contains documentation for %{name} high-level Python Web framework. +%if "%{?with_pyver}" +%pyver_package +%endif + %prep %setup -q -n Django-%{version} -#cd django/utils/simplejson/ -#rm -rf * -#cp -p %{SOURCE1} __init__.py %build -%{__python36} setup.py build - -( - cd docs - make html -) +CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python36} setup.py install \ - --skip-build \ +%{__python} setup.py install \ + -O1 --skip-build \ --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python36_sitearch} + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist -mkdir -p %{buildroot}%{_mandir}/man1/ -cp -p docs/man/* %{buildroot}%{_mandir}/man1/ - -mv %{buildroot}%{_bindir}/django-admin.py %{buildroot}%{_bindir}/django-admin - -find %{buildroot} -name "*.po" | xargs rm -f +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{python36_sitearch}/Django-%{version}-py%{python36_version}.egg-info -%{_bindir}/django-admin -%dir %{python36_sitearch}/django -%{python36_sitearch}/django/*.py* -%{python36_sitearch}/django/apps -%{python36_sitearch}/django/bin -%{python36_sitearch}/django/conf -%{python36_sitearch}/django/contrib -%{python36_sitearch}/django/core -%{python36_sitearch}/django/db -%{python36_sitearch}/django/dispatch -%{python36_sitearch}/django/forms -%{python36_sitearch}/django/http -%{python36_sitearch}/django/middleware -#%{python36_sitearch}/django/shortcuts -%{python36_sitearch}/django/template -%{python36_sitearch}/django/templatetags -%{python36_sitearch}/django/test -%{python36_sitearch}/django/urls -%{python36_sitearch}/django/utils -%{python36_sitearch}/django/views -%dir %{python36_sitearch}/django/__pycache__ -%{python36_sitearch}/django/__pycache__/* -#%{_mandir}/man1/daily_cleanup.1* -%{_mandir}/man1/django-admin.1* -#%{_mandir}/man1/gather_profile_stats.1* +%dir %{python_sitearch}/Django-%{version}-py*.egg-info +%{python_sitearch}/Django-%{version}-py*.egg-info/* %doc AUTHORS LICENSE -%files doc -%defattr(-,root,root) -%doc docs/_build/html/* - %changelog +* Wed Jun 02 2021 Automatic Build System 3.2.4-1mamba +- automatic version update by autodist + +* Fri May 14 2021 Automatic Build System 3.2.3-1mamba +- automatic version update by autodist + +* Wed May 12 2021 Automatic Build System 3.2.2-1mamba +- automatic version update by autodist + +* Tue May 11 2021 Silvan Calarco 3.2.1-2mamba +- rebuilt with distdeps + +* Tue May 04 2021 Automatic Build System 3.2.1-1mamba +- automatic version update by autodist + +* Tue Apr 13 2021 Automatic Build System 3.2-1mamba +- automatic version update by autodist + * Sun Feb 21 2021 Automatic Build System 3.1.7-1mamba - automatic version update by autodist