Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
9ab7e530c7
!9 Adapting to the pyproject.toml compilation mode
From: @caodongxia 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-05-05 06:36:45 +00:00
caodongxia
1b36667c31 Adapting to the pyproject.toml compilation mode 2023-05-05 11:30:33 +08:00
openeuler-ci-bot
eb81f7b6fd
!8 【轻量级 PR】:add python-django-debreach.yaml.
From: @ptr_0f_invalid 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2023-01-15 06:13:56 +00:00
Alex Rain
cc7c3469e4
add python-django-debreach.yaml.
Signed-off-by: Alex Rain <conrst3949@outlook.com>
2023-01-07 07:26:47 +00:00
openeuler-ci-bot
0cc0a2d67b
!4 Upgrade package to version 2.1.0
From: @jxy_git 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-11-08 01:18:03 +00:00
jxy_git
cad6c349e1 Upgrade package to version 2.1.0 2022-11-07 16:15:28 +08:00
openeuler-ci-bot
5336255890
!2 License compliance rectification
From: @penelope_y 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-05-16 09:08:18 +00:00
penelope
fdf8cff332 License compliance rectification 2022-05-11 14:57:57 +08:00
openeuler-ci-bot
c9f4475fb8 !1 Add python-django-debreach 2.0.1 package
From: @sean-lau
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-01-30 09:38:48 +08:00
liusheng
b8144e3df1 Add django-debreach-2.0.1 package 2021-01-30 09:15:38 +08:00
3 changed files with 98 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,94 @@
%global _empty_manifest_terminate_build 0
%global pypi_name django-debreach
Name: python-%{pypi_name}
Version: 2.1.0
Release: 2
Summary: Basic/extra mitigation against the BREACH attack for Django projects
License: BSD-2-Clause
URL: http://github.com/lpomfrey/django-debreach
Source0: https://files.pythonhosted.org/packages/1f/1a/2bc5970d6b848c7ff4ab2932493a8e25bbed47f7668e4c3338152defc01a/django-debreach-2.1.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-Django
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-pip
BuildRequires: python3-wheel
%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} -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%pyproject_build
%install
%pyproject_install %{pypi_name}==%{version}
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
PYTHONPATH=. %{__python3} runtests.py
%files -n python3-%{pypi_name} -f filelist.lst
%dir %{python3_sitelib}/*
%{python3_sitelib}/debreach
%{_docdir}/python-%{pypi_name}/docs/*
%changelog
* Fri May 5 2023 caodongxia <caodongxia@h-partners.com> - 2.1.0-2
- Adapting to the pyproject.toml compilation mode
* Mon Nov 07 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 2.1.0-1
- Upgrade package to version 2.1.0
* Wed May 11 2022 yangping <yangping69@h-partners> - 2.0.1-2
- License compliance rectification
* Fri Jan 29 2021 liusheng <liusheng2048@gmail.com> - 2.0.1-1
- Init package for python-django-debreach

View File

@ -0,0 +1,4 @@
separator: .
src_repo: lpomfrey/django-debreach
tag_prefix: ^
version_control: github