summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 04:56:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 04:56:03 +0000
commita888bb0a9733560da0bf1ab2050046ef938fec83 (patch)
tree95c974f181cd83b2fed5ce3c745ce848b123fc2e
parent55b0a9e2ebf07cc4cfb3dfc78523c4d8dcde4ea9 (diff)
automatic import of python-xss-utils
-rw-r--r--.gitignore1
-rw-r--r--python-xss-utils.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..93ea46f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xss-utils-0.4.0.tar.gz
diff --git a/python-xss-utils.spec b/python-xss-utils.spec
new file mode 100644
index 0000000..fe47058
--- /dev/null
+++ b/python-xss-utils.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-xss-utils
+Version: 0.4.0
+Release: 1
+Summary: Utility functions to prevent possible XSS attack on django/mako templates
+License: AGPL 3.0
+URL: https://github.com/edx/xss-utils
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c4/d9/dbb1b5b46c96993d66265d7467ae6d6c07e0e49931dfdc6717a58ecd7126/xss-utils-0.4.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+
+%description
+Utilities to prevent possible Cross Site Scripting (XSS) attacks on Django/Mako templates.
+
+%package -n python3-xss-utils
+Summary: Utility functions to prevent possible XSS attack on django/mako templates
+Provides: python-xss-utils
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-xss-utils
+Utilities to prevent possible Cross Site Scripting (XSS) attacks on Django/Mako templates.
+
+%package help
+Summary: Development documents and examples for xss-utils
+Provides: python3-xss-utils-doc
+%description help
+Utilities to prevent possible Cross Site Scripting (XSS) attacks on Django/Mako templates.
+
+%prep
+%autosetup -n xss-utils-0.4.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+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 .
+
+%files -n python3-xss-utils -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a06418f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+12f17e4d706cd4dcdf8d2af4eae629a5 xss-utils-0.4.0.tar.gz