|
rdobuilder |
ccb0f0 |
%global module uhashring
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
Name: python-%{module}
|
|
rdobuilder |
ccb0f0 |
Version: 2.3
|
|
rdobuilder |
ccb0f0 |
Release: 3%{?dist}
|
|
rdobuilder |
ccb0f0 |
Summary: Python module uhashring
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
License: BSD-3-Clause
|
|
rdobuilder |
ccb0f0 |
URL: https://github.com/ultrabug/uhashring/
|
|
rdobuilder |
ccb0f0 |
Source0: https://github.com/ultrabug/%{module}/archive/refs/tags/%{version}.tar.gz
|
|
rdobuilder |
ccb0f0 |
# Adding tox.ini to enable automatic BRs
|
|
rdobuilder |
ccb0f0 |
Source1: tox.ini
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
BuildArch: noarch
|
|
rdobuilder |
ccb0f0 |
BuildRequires: python3-devel
|
|
rdobuilder |
ccb0f0 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
ccb0f0 |
# Required to run unit tests
|
|
rdobuilder |
ccb0f0 |
BuildRequires: python3-pytest
|
|
rdobuilder |
ccb0f0 |
BuildRequires: python3-memcached
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%global _description %{expand:
|
|
rdobuilder |
ccb0f0 |
uhashring implements consistent hashing in pure Python.}
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%description %_description
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%package -n python3-%{module}
|
|
rdobuilder |
ccb0f0 |
Summary: %{summary}
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%description -n python3-%{module}
|
|
rdobuilder |
ccb0f0 |
%_description
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%prep
|
|
rdobuilder |
ccb0f0 |
%autosetup -p1 -n %{module}-%{version}
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
cp %SOURCE1 .
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
sed -i 's/ *"black",//g' pyproject.toml
|
|
rdobuilder |
ccb0f0 |
sed -i 's/ *"flake8",//g' pyproject.toml
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%generate_buildrequires
|
|
rdobuilder |
ccb0f0 |
%pyproject_buildrequires -w -t
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%build
|
|
rdobuilder |
ccb0f0 |
%pyproject_wheel
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%install
|
|
rdobuilder |
ccb0f0 |
%pyproject_install
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%pyproject_save_files %{module}
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%check
|
|
rdobuilder |
ccb0f0 |
%pytest
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%files -n python3-%{module} -f %{pyproject_files}
|
|
rdobuilder |
ccb0f0 |
%doc README.rst
|
|
rdobuilder |
ccb0f0 |
%license LICENSE
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
%changelog
|
|
rdobuilder |
ccb0f0 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
|
|
rdobuilder |
ccb0f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
* Thu Jul 13 2023 Alfredo Moralejo <amoralej@redhat.com> - 2.3-2
|
|
rdobuilder |
ccb0f0 |
- Update to 2.3
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
|
|
rdobuilder |
ccb0f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
ccb0f0 |
|
|
rdobuilder |
ccb0f0 |
* Fri Nov 18 2022 Alfredo Moralejo <amoralej@redhat.com> - 2.1-1
|
|
rdobuilder |
ccb0f0 |
- Initial build with version 2.1
|
|
rdobuilder |
ccb0f0 |
|