Blame python2-django1.11.spec

0f48ea
%global         pkgname Django
0f48ea
0f48ea
0f48ea
Name:           python2-django1.11
0f48ea
8fd3f7
Version:        1.11.20
8fd3f7
Release:        1%{?dist}
0f48ea
Summary:        Version 1.11 LTS of Django, a high-level Python Web framework
0f48ea
0f48ea
License:        BSD
0f48ea
URL:            http://www.djangoproject.com/
7b5d64
Source0:        %{pypi_source %pkgname}
0f48ea
0f48ea
0f48ea
BuildArch:      noarch
0f48ea
0f48ea
0f48ea
BuildRequires:  python2-devel
0f48ea
BuildRequires:  python2-bcrypt
ec7878
BuildRequires:  %{_bindir}/pathfix.py
0f48ea
0f48ea
# test requirements
0f48ea
BuildRequires:  python2-docutils
0f48ea
BuildRequires:  python2-jinja2
0f48ea
BuildRequires:  python2-mock
0f48ea
BuildRequires:  python2-numpy
0f48ea
BuildRequires:  python2-pillow
0f48ea
BuildRequires:  python2-pyyaml
0f48ea
BuildRequires:  python2-pytz
b52011
BuildRequires:  python2-memcached
0f48ea
b52011
Requires:       python2-pytz
0f48ea
Obsoletes:      python-django < 2
0f48ea
Obsoletes:      python2-django < 2
0f48ea
0f48ea
Provides: bundled(jquery) = 2.2.3
0f48ea
Provides: bundled(xregexp) = 2.0.0
0f48ea
c04c9e
%{?python_provide:%python_provide %{name}}
c04c9e
0f48ea
0f48ea
%description
0f48ea
This package provides Django in version 1.11 LTS, the last release
0f48ea
to support Python 2.
0f48ea
0f48ea
Django is a high-level Python Web framework that encourages rapid
0f48ea
development and a clean, pragmatic design. It focuses on automating as
0f48ea
much as possible and adhering to the DRY (Don't Repeat Yourself)
0f48ea
principle.
0f48ea
0f48ea
0f48ea
%package doc
0f48ea
Summary:        Documentation for Django, version 1.11 LTS
0f48ea
Requires:       %{name} = %{version}-%{release}
0f48ea
b52011
BuildRequires:  python2-sphinx
0f48ea
c04c9e
Obsoletes:      python-django-doc < 2
c04c9e
Obsoletes:      python2-django-doc < 2
c04c9e
c04c9e
%{?python_provide:%python_provide %{name}-doc}
c04c9e
0f48ea
%description doc
0f48ea
This package contains the documentation for the Django high-level
0f48ea
Python Web framework, version 1.11 LTS.
0f48ea
0f48ea
8b8963
# Exclude templates from shebang mangling
8b8963
%global __brp_mangle_shebangs_exclude_from \\.py-tpl$
8b8963
8b8963
0f48ea
%prep
0f48ea
%autosetup -n %{pkgname}-%{version}
0f48ea
ec7878
# Remove stray executable bit
ec7878
chmod -v -x django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.js
0f48ea
8b8963
# Keep env shebang in templates, but use python2 explicitly
8b8963
pathfix.py -pni "%{_bindir}/env python2" $(find -name '*.py-tpl')
0f48ea
0f48ea
%build
0f48ea
%py2_build
0f48ea
0f48ea
0f48ea
%install
0f48ea
0f48ea
%py2_install
0f48ea
0f48ea
%find_lang django
0f48ea
%find_lang djangojs
0f48ea
# append djangojs.lang to django.lang
0f48ea
cat djangojs.lang >> django.lang
0f48ea
0f48ea
# build documentation
0f48ea
(cd docs && mkdir djangohtml && mkdir -p _build/{doctrees,html} && make html)
0f48ea
0f48ea
# Fix admin script in %%{_bindir}
0f48ea
mv %{buildroot}%{_bindir}/django-admin %{buildroot}%{_bindir}/django-admin-1.11
0f48ea
rm %{buildroot}%{_bindir}/django-admin.py
ec7878
0f48ea
# Man page for django-admin-1.11 is not packaged -- the dot & number don't
0f48ea
# play well with man
0f48ea
0f48ea
# remove .po files
b52011
find %{buildroot} -name "*.po" | xargs rm -f
0f48ea
ec7878
# Fix shebang in internal script
8b8963
pathfix.py -pni "%{__python2} %{py2_shbang_opts}" %{buildroot}%{python2_sitelib}/django/bin/*
ec7878
0f48ea
0f48ea
%check
0f48ea
export PYTHONPATH=$(pwd)
847c06
export LANG=C.utf8
0f48ea
cd tests
b52011
%{__python2} ./runtests.py --settings=test_sqlite --verbosity=2 --parallel 1
0f48ea
0f48ea
0f48ea
%files -f django.lang
0f48ea
%doc AUTHORS README.rst
0f48ea
%license LICENSE
0f48ea
%{_bindir}/django-admin-1.11
ec7878
ec7878
%{python2_sitelib}/django/
ec7878
# Note: this duplicates files in %%find_lang
ec7878
# The macro is meant to make it easy for packages to own .mo files in:
ec7878
#    %%{_datadir}/locale/??/LC_MESSAGES/*.mo
ec7878
# ... but not the LC_MESSAGES directory itself.
ec7878
# But Django's lang files are in site-packages/django, and we own all of that.
ec7878
# This does cause harmless build warnings about duplicate files.
0f48ea
0f48ea
%{python2_sitelib}/*.egg-info
0f48ea
ec7878
0f48ea
%files doc
0f48ea
%doc docs/_build/html/*
0f48ea
0f48ea
0f48ea
%changelog
8fd3f7
* Mon Feb 18 2019 Petr Viktorin <pviktori@redhat.com> - 1.11.20-1
8fd3f7
- Update to the 1.11.20 security fix release
8fd3f7
- CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format()
8fd3f7
9bf64d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.18-2
9bf64d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9bf64d
88f7ba
* Tue Jan 08 2019 Petr Viktorin <pviktori@redhat.com> - 1.11.18-1
88f7ba
- Update to the 1.11.18 security fix release
88f7ba
- CVE-2019-3498: Content spoofing possibility in the default 404 page
88f7ba
- geo: Prevented repetitive calls to geos_version_tuple() in the WKBWriter class
88f7ba
- Officially supports Python 3.7
88f7ba
847c06
* Thu Nov 08 2018 Petr Viktorin <pviktori@redhat.com> - 1.11.16-2
847c06
- Switch locale from en_US.utf-8 to C.utf-8 for tests
847c06
02fb1a
* Fri Aug 03 2018 Petr Viktorin <pviktori@redhat.com> - 1.11.16-1
02fb1a
- Update to 1.11.16 release -- data loss bug fix
02fb1a
  Fixed a race condition in QuerySet.update_or_create() that could result in data loss
02fb1a
- Remove optional test dependencies
02fb1a
- Exclude templates from shebang mangling
02fb1a
d2c348
* Fri Aug 03 2018 Petr Viktorin <pviktori@redhat.com> - 1.11.15-2
7b5d64
- Update to 1.11.15 security release (CVE-2018-14574)
7b5d64
  CVE-2018-14574: Open redirect possibility in CommonMiddleware
7b5d64
  https://docs.djangoproject.com/en/2.0/releases/1.11.15/
7b5d64
d4ea2b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.14-2
d4ea2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d4ea2b
cc5b55
* Mon Jun 04 2018 Petr Viktorin <pviktori@redhat.com> - 1.11.14-1
cc5b55
- update to 1.11.14, fixing a memory usage regression and a GIS bug
cc5b55
  https://docs.djangoproject.com/en/2.0/releases/1.11.14/
cc5b55
4ff52e
* Thu May 03 2018 Matthias Runge <mrunge@redhat.com> - 1.11.13-1
4ff52e
- update to 1.11.13, fixing regressions and a crash
4ff52e
46f78e
* Mon Mar 12 2018 Petr Viktorin <pviktori@redhat.com> - 1.11.11-1
46f78e
- Update to 1.11.11 security release
46f78e
- Fixes CVE-2018-7536: DoS possibility in urlize and urlizetrunc template filters
46f78e
- Fixes CVE-2018-7537: DoS possibility in truncatechars_html and
46f78e
  truncatewords_html template filters
46f78e
ef3325
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.10-2
ef3325
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ef3325
e3be75
* Wed Dec 13 2017 Petr Viktorin <pviktori@redhat.com> - 1.11.10-1
e3be75
- Update to 1.11.10 security release
e3be75
- Fixes CVE-2018-6188: Information leakage in AuthenticationForm
e3be75
08ecff
* Wed Dec 13 2017 Petr Viktorin <pviktori@redhat.com> - 1.11.9-1
0f48ea
- Initial compat package
08ecff
- Based on Fedora's python-django 1.11.5-1; updated to 1.11.9