Blame SPECS/python-django-debreach.spec

e904be
%global pypi_name django-debreach
e904be
e904be
Name:           python-%{pypi_name}
e904be
Version:        2.0.1
e904be
Release:        5%{?dist}
e904be
Summary:        Basic/extra mitigation against the BREACH attack for Django projects
e904be
e904be
License:        BSD
e904be
URL:            http://github.com/lpomfrey/django-debreach
e904be
Source0:        https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
e904be
BuildArch:      noarch
e904be
e904be
BuildRequires:  python3-devel
e904be
BuildRequires:  python3dist(django)
e904be
BuildRequires:  python3dist(setuptools)
e904be
BuildRequires:  python3dist(sphinx)
e904be
e904be
%description
e904be
Basic/extra mitigation against the BREACH attack for Django projects.
e904be
e904be
When combined with rate limiting in your web-server, or by using something
e904be
like django-ratelimit, the techniques here should provide at least some
e904be
protection against the BREACH attack.
e904be
e904be
%package -n     python3-%{pypi_name}
e904be
Summary:        %{summary}
e904be
%{?python_provide:%python_provide python3-%{pypi_name}}
e904be
Requires:       python3dist(django) >= 2.0
e904be
%description -n python3-%{pypi_name}
e904be
Basic/extra mitigation against the BREACH attack for Django projects.
e904be
e904be
When combined with rate limiting in your web-server, or by using something
e904be
like django-ratelimit, the techniques here should provide at least some
e904be
protection against the BREACH attack.
e904be
e904be
%prep
e904be
%autosetup -n %{pypi_name}-%{version}
e904be
# Remove bundled egg-info
e904be
rm -rf %{pypi_name}.egg-info
e904be
e904be
%build
e904be
%py3_build
e904be
e904be
%install
e904be
%py3_install
e904be
e904be
%check
e904be
PYTHONPATH=. %{__python3} setup.py test
e904be
e904be
%files -n python3-%{pypi_name}
e904be
%license LICENSE
e904be
%doc README.rst
e904be
%{python3_sitelib}/debreach
e904be
%{python3_sitelib}/django_debreach-%{version}-py%{python3_version}.egg-info
e904be
e904be
%changelog
e904be
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
e904be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e904be
e904be
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
e904be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e904be
e904be
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-3
e904be
- Rebuilt for Python 3.9
e904be
e904be
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
e904be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e904be
e904be
* Thu Oct 10 2019 Javier Peña <jpena@redhat.com> - 2.0.1-1
e904be
- Updated to 2.0.1 release (#1759926, #1760238)
e904be
- Dropped Python 2 bits, version 2.x does not support it
e904be
e904be
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-5
e904be
- Rebuilt for Python 3.8.0rc1 (#1748018)
e904be
e904be
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-4
e904be
- Rebuilt for Python 3.8
e904be
e904be
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
e904be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e904be
e904be
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
e904be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e904be
e904be
* Fri Aug 31 2018 Javier Peña <jpena@redhat.com> - 1.5.2-1
e904be
- Initial package.