blob: 2161729e0c50ae2d409b257ddaf718b617f840ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
%global pypi_name orderly-set
%global pypi_version 5.2.2
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1
Summary: A package containing multiple implementations of Ordered Set
License: MIT
URL: https://github.com/seperman/orderly-set
Source0: https://github.com/seperman/orderly-set/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
# Required by tests
BuildRequires: python3-wheel
BuildRequires: python3-pytest
BuildRequires: python3-mypy
%description
Orderly Set is a package containing multiple implementations of
Ordered Set.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Orderly Set is a package containing multiple implementations
of Ordered Set.
%prep
%autosetup -n orderly-set-%{pypi_version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%check
# Tests are not running, see https://github.com/seperman/orderly-set/issues/7
#{__python3} setup.py test
%files -n python3-%{pypi_name}
%doc README.md
%license MIT-LICENSE
%{python3_sitelib}/orderly_set
%{python3_sitelib}/orderly_set-*.egg-info
%changelog
* Mon Jan 27 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 5.2.2-1
- Initial package.
|