forked from pool/python-certstream
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c9be29ff6e | |||
| 85abfb0a6a | |||
| 1e5de06cb8 | |||
| 761260758f |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 4 14:42:57 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- fix usage of libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 15 13:03:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 29 19:16:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
Thu Apr 29 19:16:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-certstream
|
# spec file for package python-certstream
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
Name: python-certstream
|
Name: python-certstream
|
||||||
Version: 1.12
|
Version: 1.12
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -24,14 +24,16 @@ Summary: Python library for receiving certificate transparency list updat
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/CaliDog/certstream-python/
|
URL: https://github.com/CaliDog/certstream-python/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/c/certstream/certstream-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/c/certstream/certstream-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
#SECTION tests
|
#SECTION tests
|
||||||
BuildRequires: %{python_module termcolor}
|
BuildRequires: %{python_module termcolor}
|
||||||
BuildRequires: %{python_module websocket-client >= 0.58.0}
|
BuildRequires: %{python_module websocket-client >= 0.58.0}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun):update-alternatives
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python3-termcolor
|
Requires: python3-termcolor
|
||||||
Requires: python3-websocket-client >= 0.48.0
|
Requires: python3-websocket-client >= 0.48.0
|
||||||
@@ -45,31 +47,31 @@ Certstream is a library to connect to the certstream network (certstream.calidog
|
|||||||
It supports automatic reconnection when networks issues occur, and should be stable for long-running jobs.
|
It supports automatic reconnection when networks issues occur, and should be stable for long-running jobs.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n certstream-%{version}
|
%autosetup -p1 -n certstream-%{version}
|
||||||
# do not hardcode dependencies
|
# do not hardcode dependencies
|
||||||
sed -i -e 's:==:>=:g' requirements.txt
|
sed -i -e 's:==:>=:g' requirements.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/certstream
|
%python_clone -a %{buildroot}%{_bindir}/certstream
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
# there are no tests
|
# there are no tests
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative certstream
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative certstream
|
||||||
|
|
||||||
%postun
|
# post and postun macro call is not needed with only libalternatives
|
||||||
%python_uninstall_alternative certstream
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/certstream/
|
%{python_sitelib}/certstream/
|
||||||
%{python_sitelib}/certstream-%{version}-py*.egg-info
|
%{python_sitelib}/certstream-%{version}*-info
|
||||||
%python_alternative %{_bindir}/certstream
|
%python_alternative %{_bindir}/certstream
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user