|
|
76151ed |
%global srcname heapdict
|
|
|
76151ed |
%global pkgname HeapDict
|
|
|
76151ed |
|
|
|
76151ed |
Name: python-%{srcname}
|
|
|
76151ed |
Version: 1.0.0
|
|
|
a0977e8 |
Release: 9%{?dist}
|
|
|
76151ed |
Summary: A heap with decrease-key and increase-key operations
|
|
|
76151ed |
|
|
|
76151ed |
License: BSD
|
|
|
76151ed |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
76151ed |
Source0: https://files.pythonhosted.org/packages/source/h/%{srcname}/%{pkgname}-%{version}.tar.gz
|
|
|
76151ed |
|
|
|
76151ed |
BuildArch: noarch
|
|
|
76151ed |
|
|
|
76151ed |
%global _description \
|
|
|
76151ed |
HeapDict is designed to be used as a priority queue, where items are added and \
|
|
|
76151ed |
consumed by priority. Compared to an ordinary dict, a heapdict has the \
|
|
|
76151ed |
following differences: popitem and peekitem returns the (key, priority) pair \
|
|
|
76151ed |
with the lowest priority, instead of a random object.
|
|
|
76151ed |
|
|
|
76151ed |
%description %{_description}
|
|
|
76151ed |
|
|
|
76151ed |
%package -n python3-%{srcname}
|
|
|
76151ed |
Summary: %{summary}
|
|
|
76151ed |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
76151ed |
|
|
|
76151ed |
BuildRequires: python3-devel
|
|
|
a0977e8 |
BuildRequires: python3-test
|
|
|
76151ed |
|
|
|
76151ed |
%description -n python3-%{srcname} %{_description}
|
|
|
76151ed |
|
|
|
76151ed |
|
|
|
76151ed |
%prep
|
|
|
76151ed |
%autosetup -n %{pkgname}-%{version}
|
|
|
76151ed |
|
|
|
76151ed |
|
|
|
76151ed |
%build
|
|
|
76151ed |
%py3_build
|
|
|
76151ed |
|
|
|
76151ed |
|
|
|
76151ed |
%install
|
|
|
76151ed |
%py3_install
|
|
|
76151ed |
|
|
|
76151ed |
|
|
|
76151ed |
%check
|
|
|
76151ed |
%{__python3} test_heap.py
|
|
|
76151ed |
|
|
|
76151ed |
|
|
|
76151ed |
%files -n python3-%{srcname}
|
|
|
76151ed |
%license LICENSE
|
|
|
76151ed |
%doc README.rst
|
|
|
76151ed |
%{python3_sitelib}/%{srcname}.py
|
|
|
76151ed |
%{python3_sitelib}/%{pkgname}-%{version}-py?.?.egg-info
|
|
|
76151ed |
%{python3_sitelib}/__pycache__/%{srcname}*.py?
|
|
|
76151ed |
|
|
|
76151ed |
|
|
|
76151ed |
%changelog
|
|
|
a0977e8 |
* Wed Jul 17 2019 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-9
|
|
|
a0977e8 |
- Change dependencies to work with the latest location of test.support module
|
|
|
a0977e8 |
https://fedoraproject.org/wiki/Changes/Move_test.support_module_to_python3-test_subpackage
|
|
|
a0977e8 |
|
|
|
afa1f65 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
|
|
|
afa1f65 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
afa1f65 |
|
|
|
dfb9a17 |
* Mon Oct 01 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.0-7
|
|
|
dfb9a17 |
- Drop Python 2 subpackage
|
|
|
dfb9a17 |
|
|
|
7441621 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
|
|
|
7441621 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
7441621 |
|
|
|
dcb4044 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-5
|
|
|
dcb4044 |
- Rebuilt for Python 3.7
|
|
|
dcb4044 |
|
|
|
2ae0da7 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
|
|
2ae0da7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2ae0da7 |
|
|
|
5dcfb15 |
* Tue Nov 28 2017 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-3
|
|
|
5dcfb15 |
- Fix FTBFS - missing BR
|
|
|
5dcfb15 |
|
|
|
76151ed |
* Tue Aug 22 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 1.0.0-2
|
|
|
76151ed |
- Standardize spec a bit more.
|
|
|
76151ed |
- Simplify description.
|
|
|
76151ed |
|
|
|
76151ed |
* Mon Feb 27 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 1.0.0-1
|
|
|
76151ed |
- Initial package release.
|