python-distro/python-distro.spec

78 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-30 11:56:22 +08:00
Name: python-distro
2024-02-05 06:16:52 +00:00
Version: 1.9.0
2023-05-31 16:37:12 +08:00
Release: 1
2019-11-30 11:56:22 +08:00
Summary: Linux Distribution - a Linux OS platform information API
License: ASL 2.0
URL: https://github.com/nir0s/distro
Source0: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz
2023-05-31 16:37:12 +08:00
Patch0: fix-ModuleNoFoundError-in-test-case.patch
2019-11-30 11:56:22 +08:00
2023-05-31 16:37:12 +08:00
BuildRequires: python3-devel python3-pytest python3-pip python3-wheel
2019-11-30 11:56:22 +08:00
BuildArch: noarch
%description
Distro provides information about the OS distribution it runs on, such as a reliable machine-readable
ID, or version information.
It is the recommended replacement for Python's original platform.linux_distribution function (which
will be removed in Python 3.8). It also provides much more functionality which isn't necessarily
Python bound, like a command-line interface.
Distro currently supports Linux and BSD based systems but Windows and OS X support is also planned.
%package -n python3-distro
Summary: Linux Distribution - a Linux OS platform information API
%{?python_provide:%python_provide python3-distro}
%description -n python3-distro
Distro provides information about the OS distribution it runs on, such as a reliable machine-readable
ID, or version information.
It is the recommended replacement for Python's original platform.linux_distribution function (which
will be removed in Python 3.8). It also provides much more functionality which isn't necessarily
Python bound, like a command-line interface.
Distro currently supports Linux and BSD based systems but Windows and OS X support is also planned.
Python3 version of distro.
%prep
%autosetup -n distro-%{version} -p1
rm -rf distro.egg-info
%build
2023-05-31 16:37:12 +08:00
%pyproject_build
2019-11-30 11:56:22 +08:00
%install
2023-05-31 16:37:12 +08:00
%pyproject_install
2019-11-30 11:56:22 +08:00
%check
%{__python3} -m pytest tests -v
%files -n python3-distro
2020-07-23 19:49:30 +08:00
%doc LICENSE CHANGELOG.md CONTRIBUTORS.md README.md
2019-11-30 11:56:22 +08:00
%{python3_sitelib}/*
%{_bindir}/distro
%changelog
2024-02-05 06:16:52 +00:00
* Mon Feb 05 2024 zhouwenpei <zhouwenpei1@h-partners.com> - 1.9.0-1
- update to 1.9.0
2023-05-31 16:37:12 +08:00
* Wed May 31 2023 Ge Wang <wang__ge@126.com> - 1.8.0-1
- update to 1.8.0
* Tue Oct 25 2022 wangkerong <wangkerong@h-partners.com> - 1.6.0-2
- rebuild for next release
2021-11-24 15:01:51 +08:00
* Wed Nov 24 2021 hanhui <hanhui15@huawei.com> - 1.6.0-1
- update to 1.6.0
2020-10-23 17:01:37 +08:00
* Fri Oct 23 2020 tianwei <tianwei12@huawei.com> - 1.5.0-2
- delete python2
2020-07-23 19:49:30 +08:00
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 1.5.0-1
- Package update
2019-11-30 11:56:22 +08:00
* Mon Nov 25 2019 lingsheng <lingsheng@huawei.com> - 1.3.0-5
- Package init