1
0
forked from pool/python-varint

Compare commits

2 Commits

2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 13 12:33:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 02 04:36:23 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com> Tue Jun 02 04:36:23 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-varint # spec file for package python-varint
# #
# Copyright (c) 2020 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,16 +16,17 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-varint Name: python-varint
Version: 1.0.2 Version: 1.0.2
Release: 0 Release: 0
Summary: Library for encoding variable length integer data Summary: Library for encoding variable length integer data
License: MIT License: MIT
URL: http://github.com/fmoo/python-varint URL: https://github.com/fmoo/python-varint
Source0: https://files.pythonhosted.org/packages/source/v/varint/varint-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/v/varint/varint-%{version}.tar.gz
Source1: LICENSE Source1: LICENSE
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@@ -40,10 +41,10 @@ used in libraries such as sqlite, protobuf, v8, and more.
cp %{SOURCE1} . cp %{SOURCE1} .
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -51,6 +52,8 @@ cp %{SOURCE1} .
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/varint.py
%pycache_only %{python_sitelib}/__pycache__/varint*
%{python_sitelib}/varint-%{version}*-info
%changelog %changelog