diff options
Diffstat (limited to 'python-orderly-set.spec')
-rw-r--r-- | python-orderly-set.spec | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/python-orderly-set.spec b/python-orderly-set.spec new file mode 100644 index 0000000..2161729 --- /dev/null +++ b/python-orderly-set.spec @@ -0,0 +1,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. |