2 Commits

2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 23 01:30:07 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 3 06:28:02 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Thu Apr 3 06:28:02 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -25,9 +25,11 @@ License: MIT
URL: https://github.com/tlsfuzzer/python-ecdsa URL: https://github.com/tlsfuzzer/python-ecdsa
Source: https://files.pythonhosted.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz
BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: openssl BuildRequires: openssl
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -49,12 +51,12 @@ into other protocols.
%setup -q -n ecdsa-%{version} %setup -q -n ecdsa-%{version}
%build %build
%python_build %pyproject_wheel
#remove shebang from all non executable files #remove shebang from all non executable files
find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#! %{_bindir}/env python@d}' {} \; find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#! %{_bindir}/env python@d}' {} \;
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -69,6 +71,6 @@ donttest="$donttest or (test_ellipticcurve and test_p192_mult_tests)"
%license LICENSE %license LICENSE
%doc NEWS README.md %doc NEWS README.md
%{python_sitelib}/ecdsa %{python_sitelib}/ecdsa
%{python_sitelib}/ecdsa-%{version}*-info %{python_sitelib}/ecdsa-%{version}.dist-info
%changelog %changelog