!1 Add python-django-debreach 2.0.1 package
From: @sean-lau Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
c9f4475fb8
BIN
django-debreach-2.0.1.tar.gz
Normal file
BIN
django-debreach-2.0.1.tar.gz
Normal file
Binary file not shown.
56
python-django-debreach.spec
Normal file
56
python-django-debreach.spec
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
%global pypi_name django-debreach
|
||||||
|
|
||||||
|
Name: python-%{pypi_name}
|
||||||
|
Version: 2.0.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Basic/extra mitigation against the BREACH attack for Django projects
|
||||||
|
|
||||||
|
License: BSD
|
||||||
|
URL: http://github.com/lpomfrey/django-debreach
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-Django
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
|
||||||
|
%description
|
||||||
|
Basic/extra mitigation against the BREACH attack for Django projects.
|
||||||
|
|
||||||
|
When combined with rate limiting in your web-server, or by using something
|
||||||
|
like django-ratelimit, the techniques here should provide at least some
|
||||||
|
protection against the BREACH attack.
|
||||||
|
|
||||||
|
%package -n python3-%{pypi_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
|
Requires: python3dist(django) >= 2.0
|
||||||
|
%description -n python3-%{pypi_name}
|
||||||
|
Basic/extra mitigation against the BREACH attack for Django projects.
|
||||||
|
|
||||||
|
When combined with rate limiting in your web-server, or by using something
|
||||||
|
like django-ratelimit, the techniques here should provide at least some
|
||||||
|
protection against the BREACH attack.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
|
# Remove bundled egg-info
|
||||||
|
rm -rf %{pypi_name}.egg-info
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
%check
|
||||||
|
PYTHONPATH=. %{__python3} setup.py test
|
||||||
|
|
||||||
|
%files -n python3-%{pypi_name}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%{python3_sitelib}/debreach
|
||||||
|
%{python3_sitelib}/django_debreach-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jan 29 2021 liusheng <liusheng2048@gmail.com> - 2.0.1-1
|
||||||
|
- Init package for python-django-debreach
|
||||||
Loading…
x
Reference in New Issue
Block a user