diff --git a/.python-uhashring.metadata b/.python-uhashring.metadata new file mode 100644 index 0000000..a665c6e --- /dev/null +++ b/.python-uhashring.metadata @@ -0,0 +1 @@ +2e90dbc38c4dc8ff89182705602805cc5c55519b SOURCES/2.1.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-uhashring.spec b/SPECS/python-uhashring.spec new file mode 100644 index 0000000..412c702 --- /dev/null +++ b/SPECS/python-uhashring.spec @@ -0,0 +1,51 @@ +%global module uhashring + +Name: python-%{module} +Version: 2.1 +Release: 1%{?dist} +Summary: Python module uhashring + +License: BSD-3-Clause +URL: https://github.com/ultrabug/uhashring/ +Source: https://github.com/ultrabug/%{module}/archive/refs/tags/%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%global _description %{expand: +uhashring implements consistent hashing in pure Python.} + +%description %_description + +%package -n python3-%{module} +Summary: %{summary} + +%description -n python3-%{module} +%_description + +%prep +%autosetup -p1 -n %{module}-%{version} + +%generate_buildrequires +%pyproject_buildrequires -t + +%build +%pyproject_wheel + +%install +%pyproject_install + +%pyproject_save_files %{module} + +%check +%pytest + +%files -n python3-%{module} -f %{pyproject_files} +%doc README.rst +%license LICENSE + +%changelog +* Fri Nov 18 2022 Alfredo Moralejo - 2.1-1 +- Initial build with version 2.1 +