forked from pool/python-xmlsec
- Update to 1.13.13 * Add CI for Python 3.10, manylinux2 SOABI, musllinux1 SOABI and OpenSUSE Tumbleweed * Introduce linting with pre-commit * Rewrite PEP 484 stubs * xmlsec workaround for gh##84 * Resolve key loading issue on big-endian systems. * Fix building wheel when using PYXMLSEC_STATIC_DEPS=true * setup.py: Fix typo in PYXMLSEC_LIBXSLT_VERSION * Switch on modern headers lxml * use build to build wheels * remove pkgconfig as it's only a build-system requirement * exclude lxml 4.7 because the wheels are missing the lxml includes - Drop merged avoid_lxml_tests_failing.patch - Normalize the tests call OBS-URL: https://build.opensuse.org/request/show/1029766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlsec?expand=0&rev=22
80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-xmlsec
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-xmlsec
|
|
Version: 1.3.13
|
|
Release: 0
|
|
Summary: Python bindings for the XML Security Library
|
|
License: MIT
|
|
URL: https://github.com/mehcode/python-xmlsec
|
|
Source: https://files.pythonhosted.org/packages/source/x/xmlsec/xmlsec-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module hypothesis}
|
|
BuildRequires: %{python_module lxml >= 3.8.0}
|
|
BuildRequires: %{python_module lxml-devel}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pkgconfig}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module toml}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
# we need at least one backend
|
|
BuildRequires: libxmlsec1-openssl1
|
|
BuildRequires: pkgconfig(xmlsec1)
|
|
# we need at least one xmlsec backend on runtime
|
|
Recommends: libxmlsec1-openssl1
|
|
Requires: python-lxml >= 3.8.0
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python bindings for the XML Security Library
|
|
|
|
%prep
|
|
%autosetup -p1 -n xmlsec-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%ifarch %ix86
|
|
export skip_tests="not test_reinitialize_module"
|
|
%else
|
|
export skip_tests=""
|
|
%endif
|
|
%pytest_arch -k "$skip_tests" tests/
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitearch}/xmlsec
|
|
%{python_sitearch}/xmlsec-%{version}*-info
|
|
%{python_sitearch}/xmlsec*.so
|
|
|
|
%changelog
|