summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 01:18:01 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 01:18:01 +0000
commit47eb73c62378b4822d6f0caefe26592de5a7b174 (patch)
treeb088213f8bb90ee5e00393b63eb8b0bfc433546e
parentf0d0ec778d66a1e490ace662dc291ca2382d3596 (diff)
automatic import of python-signxml
-rw-r--r--.gitignore1
-rw-r--r--python-signxml.spec142
-rw-r--r--sources1
3 files changed, 144 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0815327 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/signxml-3.1.1.tar.gz
diff --git a/python-signxml.spec b/python-signxml.spec
new file mode 100644
index 0000000..8ffc41c
--- /dev/null
+++ b/python-signxml.spec
@@ -0,0 +1,142 @@
+%global _empty_manifest_terminate_build 0
+Name: python-signxml
+Version: 3.1.1
+Release: 1
+Summary: Python XML Signature and XAdES library
+License: Apache Software License
+URL: https://github.com/kislyuk/signxml
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8a/6f/64aa3a1a67abe8f00b4fed3f85f64a24a6915e720a8bfbf0cde19e1f48d0/signxml-3.1.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-lxml
+Requires: python3-cryptography
+Requires: python3-pyOpenSSL
+Requires: python3-certifi
+Requires: python3-ruff
+Requires: python3-coverage
+Requires: python3-build
+Requires: python3-wheel
+Requires: python3-mypy
+Requires: python3-lxml-stubs
+
+%description
+*SignXML* is an implementation of the W3C `XML Signature <http://en.wikipedia.org/wiki/XML_Signature>`_ standard in
+Python. This standard (also known as "XMLDSig") is used to provide payload security in `SAML 2.0
+<http://en.wikipedia.org/wiki/SAML_2.0>`_, `XAdES <https://en.wikipedia.org/wiki/XAdES>`_, and `WS-Security
+<https://en.wikipedia.org/wiki/WS-Security>`_, among other uses. The standard is defined in the `W3C Recommendation
+<https://www.w3.org/standards/types#REC>`_ `XML Signature Syntax and Processing Version 1.1
+<http://www.w3.org/TR/xmldsig-core1/>`_. *SignXML* implements all of the required components of the Version 1.1
+standard, and most recommended ones. Its features are:
+* Use of a libxml2-based XML parser configured to defend against
+ `common XML attacks <https://docs.python.org/3/library/xml.html#xml-vulnerabilities>`_ when verifying signatures
+* Extensions to allow signing with and verifying X.509 certificate chains, including hostname/CN validation
+* Extensions to sign and verify `XAdES <https://en.wikipedia.org/wiki/XAdES>`_ signatures
+* Support for exclusive XML canonicalization with inclusive prefixes (`InclusiveNamespaces PrefixList
+ <http://www.w3.org/TR/xml-exc-c14n/#def-InclusiveNamespaces-PrefixList>`_, required to verify signatures generated by
+ some SAML implementations)
+* Modern Python compatibility (3.7-3.11+ and PyPy)
+* Well-supported, portable, reliable dependencies: `lxml <https://github.com/lxml/lxml>`_,
+ `cryptography <https://github.com/pyca/cryptography>`_, `pyOpenSSL <https://github.com/pyca/pyopenssl>`_
+* Comprehensive testing (including the XMLDSig interoperability suite) and `continuous integration
+ <https://github.com/XML-Security/signxml/actions>`_
+* Simple interface with useful, ergonomic, and secure defaults (no network calls, XSLT or XPath transforms)
+* Compactness, readability, and extensibility
+
+%package -n python3-signxml
+Summary: Python XML Signature and XAdES library
+Provides: python-signxml
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-signxml
+*SignXML* is an implementation of the W3C `XML Signature <http://en.wikipedia.org/wiki/XML_Signature>`_ standard in
+Python. This standard (also known as "XMLDSig") is used to provide payload security in `SAML 2.0
+<http://en.wikipedia.org/wiki/SAML_2.0>`_, `XAdES <https://en.wikipedia.org/wiki/XAdES>`_, and `WS-Security
+<https://en.wikipedia.org/wiki/WS-Security>`_, among other uses. The standard is defined in the `W3C Recommendation
+<https://www.w3.org/standards/types#REC>`_ `XML Signature Syntax and Processing Version 1.1
+<http://www.w3.org/TR/xmldsig-core1/>`_. *SignXML* implements all of the required components of the Version 1.1
+standard, and most recommended ones. Its features are:
+* Use of a libxml2-based XML parser configured to defend against
+ `common XML attacks <https://docs.python.org/3/library/xml.html#xml-vulnerabilities>`_ when verifying signatures
+* Extensions to allow signing with and verifying X.509 certificate chains, including hostname/CN validation
+* Extensions to sign and verify `XAdES <https://en.wikipedia.org/wiki/XAdES>`_ signatures
+* Support for exclusive XML canonicalization with inclusive prefixes (`InclusiveNamespaces PrefixList
+ <http://www.w3.org/TR/xml-exc-c14n/#def-InclusiveNamespaces-PrefixList>`_, required to verify signatures generated by
+ some SAML implementations)
+* Modern Python compatibility (3.7-3.11+ and PyPy)
+* Well-supported, portable, reliable dependencies: `lxml <https://github.com/lxml/lxml>`_,
+ `cryptography <https://github.com/pyca/cryptography>`_, `pyOpenSSL <https://github.com/pyca/pyopenssl>`_
+* Comprehensive testing (including the XMLDSig interoperability suite) and `continuous integration
+ <https://github.com/XML-Security/signxml/actions>`_
+* Simple interface with useful, ergonomic, and secure defaults (no network calls, XSLT or XPath transforms)
+* Compactness, readability, and extensibility
+
+%package help
+Summary: Development documents and examples for signxml
+Provides: python3-signxml-doc
+%description help
+*SignXML* is an implementation of the W3C `XML Signature <http://en.wikipedia.org/wiki/XML_Signature>`_ standard in
+Python. This standard (also known as "XMLDSig") is used to provide payload security in `SAML 2.0
+<http://en.wikipedia.org/wiki/SAML_2.0>`_, `XAdES <https://en.wikipedia.org/wiki/XAdES>`_, and `WS-Security
+<https://en.wikipedia.org/wiki/WS-Security>`_, among other uses. The standard is defined in the `W3C Recommendation
+<https://www.w3.org/standards/types#REC>`_ `XML Signature Syntax and Processing Version 1.1
+<http://www.w3.org/TR/xmldsig-core1/>`_. *SignXML* implements all of the required components of the Version 1.1
+standard, and most recommended ones. Its features are:
+* Use of a libxml2-based XML parser configured to defend against
+ `common XML attacks <https://docs.python.org/3/library/xml.html#xml-vulnerabilities>`_ when verifying signatures
+* Extensions to allow signing with and verifying X.509 certificate chains, including hostname/CN validation
+* Extensions to sign and verify `XAdES <https://en.wikipedia.org/wiki/XAdES>`_ signatures
+* Support for exclusive XML canonicalization with inclusive prefixes (`InclusiveNamespaces PrefixList
+ <http://www.w3.org/TR/xml-exc-c14n/#def-InclusiveNamespaces-PrefixList>`_, required to verify signatures generated by
+ some SAML implementations)
+* Modern Python compatibility (3.7-3.11+ and PyPy)
+* Well-supported, portable, reliable dependencies: `lxml <https://github.com/lxml/lxml>`_,
+ `cryptography <https://github.com/pyca/cryptography>`_, `pyOpenSSL <https://github.com/pyca/pyopenssl>`_
+* Comprehensive testing (including the XMLDSig interoperability suite) and `continuous integration
+ <https://github.com/XML-Security/signxml/actions>`_
+* Simple interface with useful, ergonomic, and secure defaults (no network calls, XSLT or XPath transforms)
+* Compactness, readability, and extensibility
+
+%prep
+%autosetup -n signxml-3.1.1
+
+%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-signxml -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..371edcc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+88b51c085c920c95a485d0ac6067f74e signxml-3.1.1.tar.gz