From abbe444b08fb1b463459123450597992960e90a8 Mon Sep 17 00:00:00 2001 From: Martin Kutlak Date: Jun 01 2020 17:18:28 +0000 Subject: Revert "Update to upstream release 1.3.8" This reverts commit 1b8b1eb2212166fe3bd7d7d3ed8f619eebce905e. python-xmlsec requires setuptools >= 42 and setuptools_scm[toml]>=3.4 and these and not available for Fedora 32. --- diff --git a/.gitignore b/.gitignore index 909943e..91e96e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ /xmlsec-1.3.3.tar.gz -/xmlsec-1.3.8.tar.gz diff --git a/python-xmlsec.spec b/python-xmlsec.spec index da84139..14f762b 100644 --- a/python-xmlsec.spec +++ b/python-xmlsec.spec @@ -1,8 +1,8 @@ %global srcname xmlsec Name: python-%{srcname} -Version: 1.3.8 -Release: 1%{?dist} +Version: 1.3.3 +Release: 8%{?dist} Summary: Python bindings for the XML Security Library License: MIT @@ -10,11 +10,12 @@ URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/x/%{srcname}/%{srcname}-%{version}.tar.gz BuildRequires: gcc -BuildRequires: pyproject-rpm-macros +BuildRequires: python3-devel BuildRequires: libxml2-devel >= 2.9.1 BuildRequires: xmlsec1-devel >= 1.2.18 BuildRequires: libtool-ltdl-devel + %description %{summary}. @@ -22,6 +23,9 @@ BuildRequires: libtool-ltdl-devel %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: %{py3_dist lxml} +BuildRequires: %{py3_dist pkgconfig} +BuildRequires: %{py3_dist pytest} Requires: libxml2 >= 2.9.1 Requires: xmlsec1 >= 1.2.18 Requires: xmlsec1-openssl @@ -35,32 +39,28 @@ Requires: %{py3_dist pkgconfig} %prep %autosetup -n %{srcname}-%{version} +rm -rf *.egg-info -%generate_buildrequires -%pyproject_buildrequires -t - %build -%pyproject_wheel +%py3_build %install -%pyproject_install +%py3_install + + +# Tests aren't available %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitearch}/xmlsec*.so -%{python3_sitearch}/%{srcname}/ -%{python3_sitearch}/%{srcname}-%{version}.dist-info/ +%{python3_sitearch}/xmlsec-%{version}-*.egg-info %changelog -* Mon Jun 1 2020 Martin Kutlak - 1.3.8-1 -- Update spec file -- Update to 1.3.8 (#1838368) - * Thu Jan 30 2020 Fedora Release Engineering - 1.3.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 5c55df5..949e360 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xmlsec-1.3.8.tar.gz) = a7f51177be882f57488580e1208b24d12cd6c884170189c1c11ad119e155417da6fb8465afd54fb1971c65ed5b9f69d053b378ea5f84e9f4432328377faff2e1 +SHA512 (xmlsec-1.3.3.tar.gz) = 6e842c455f249323f600297dd50ce835939e93eb4f2e1622fdea9903ab6a1b5dc5352d615cc7fd23624a922782ea40d9ee0f2c0302f5e06fc06c25f84e24759f