rebuilt with python3 [release 1.8.1-2mamba;Sat May 16 2015]

This commit is contained in:
Silvan Calarco 2024-01-06 11:04:00 +01:00
parent f43b33136a
commit 75db7c9dbe

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: python-django
Version: 1.8.1
Release: 1mamba
Release: 2mamba
Summary: A high-level Python Web framework
Group: System/Libraries/Python
Vendor: openmamba
@ -13,12 +13,12 @@ Source: https://www.djangoproject.com/m/releases/%{majver}/Django-%{versi
Source1: simplejson-init.py
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
BuildRequires: python-Sphinx
BuildRequires: python-Jinja2
Requires: python >= %python_version
Requires: python-simplejson
Requires: python3 >= %python3_version
Requires: python-simplejson-py3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -39,21 +39,21 @@ This package contains documentation for %{name} high-level Python Web framework.
#cp -p %{SOURCE1} __init__.py
%build
%{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch}
%{__python3} setup.py build
(
cd docs
make html
)
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \
--skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python3_sitearch}
mkdir -p %{buildroot}%{_mandir}/man1/
cp -p docs/man/* %{buildroot}%{_mandir}/man1/
@ -66,36 +66,28 @@ find %{buildroot} -name "*.po" | xargs rm -f
%files
%defattr(-,root,root)
%{python_sitearch}/Django-%{version}-py%{python_version}.egg-info
%{python3_sitearch}/Django-%{version}-py%{python3_version}.egg-info
%{_bindir}/django-admin
%dir %{python_sitearch}/django
%{python_sitearch}/django/*.py*
%dir %{python_sitearch}/django/bin
%{python_sitearch}/django/bin/*.py*
%dir %{python27_sitearch}/django/apps
%{python27_sitearch}/django/apps/*
%dir %{python_sitearch}/django/conf
%{python_sitearch}/django/conf/*.py*
%dir %{python_sitearch}/django/conf/project_template
%{python_sitearch}/django/conf/project_template/*.py*
%dir %{python_sitearch}/django/conf/project_template/project_name
%{python_sitearch}/django/conf/project_template/project_name/*.py*
%{python_sitearch}/django/conf/app_template
%{python_sitearch}/django/conf/locale
%{python_sitearch}/django/conf/urls
%{python_sitearch}/django/contrib
%{python_sitearch}/django/core
%{python_sitearch}/django/db
%{python_sitearch}/django/dispatch
%{python_sitearch}/django/forms
%{python_sitearch}/django/http
%{python_sitearch}/django/middleware
#%{python_sitearch}/django/shortcuts
%{python_sitearch}/django/template
%{python_sitearch}/django/templatetags
%{python_sitearch}/django/test
%{python_sitearch}/django/utils
%{python_sitearch}/django/views
%dir %{python3_sitearch}/django
%{python3_sitearch}/django/*.py*
%{python3_sitearch}/django/apps
%{python3_sitearch}/django/bin
%{python3_sitearch}/django/conf
%{python3_sitearch}/django/contrib
%{python3_sitearch}/django/core
%{python3_sitearch}/django/db
%{python3_sitearch}/django/dispatch
%{python3_sitearch}/django/forms
%{python3_sitearch}/django/http
%{python3_sitearch}/django/middleware
#%{python3_sitearch}/django/shortcuts
%{python3_sitearch}/django/template
%{python3_sitearch}/django/templatetags
%{python3_sitearch}/django/test
%{python3_sitearch}/django/utils
%{python3_sitearch}/django/views
%dir %{python3_sitearch}/django/__pycache__
%{python3_sitearch}/django/__pycache__/*
#%{_mandir}/man1/daily_cleanup.1*
%{_mandir}/man1/django-admin.1*
#%{_mandir}/man1/gather_profile_stats.1*
@ -106,6 +98,9 @@ find %{buildroot} -name "*.po" | xargs rm -f
%doc docs/_build/html/*
%changelog
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-2mamba
- rebuilt with python3
* Thu May 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
- update to 1.8.1