Blob Blame History Raw
%global srcname heapdict
%global pkgname HeapDict

Name:           python-%{srcname}
Version:        1.0.0
Release:        3%{?dist}
Summary:        A heap with decrease-key and increase-key operations

License:        BSD
URL:  {srcname}

BuildArch:      noarch

%global _description \
HeapDict is designed to be used as a priority queue, where items are added and \
consumed by priority. Compared to an ordinary dict, a heapdict has the \
following differences: popitem and peekitem returns the (key, priority) pair \
with the lowest priority, instead of a random object.

%description %{_description}

%package -n python2-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{srcname}}

BuildRequires:  python2-devel
BuildRequires:  python2-test

%description -n python2-%{srcname} %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}

BuildRequires:  python3-devel

%description -n python3-%{srcname} %{_description}

%autosetup -n %{pkgname}-%{version}




%files -n python2-%{srcname}
%license LICENSE
%doc README.rst

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst

* Tue Nov 28 2017 Lumír Balhar <> - 1.0.0-3
- Fix FTBFS - missing BR

* Tue Aug 22 2017 Elliott Sales de Andrade <> 1.0.0-2
- Standardize spec a bit more.
- Simplify description.

* Mon Feb 27 2017 Elliott Sales de Andrade <> 1.0.0-1
- Initial package release.