Sync from SUSE:SLFO:Main python-distro revision e8fae0a3ef0e16c3c7dac92a749f3273
This commit is contained in:
parent
7f0e86b0de
commit
ee19dfaaa3
BIN
distro-1.8.0.tar.gz
(Stored with Git LFS)
BIN
distro-1.8.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
distro-1.9.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
distro-1.9.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,25 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 23 00:52:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup macro.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 27 09:21:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.9.0:
|
||||||
|
* Refactor distro.info() method to return an InfoDict [#360]
|
||||||
|
* Ignore the file '/etc/board-release' [#353]
|
||||||
|
* Ignore the file '/etc/ec2_version' [#359]
|
||||||
|
* Test on modern versions of CPython and PyPy and macOS [#362]
|
||||||
|
* Add support for ALT Linux Server 10.1 distribution [#354]
|
||||||
|
* Add Debian Testing to the tests [#356]
|
||||||
|
* Update archlinux resource for tests [#352]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 18 16:28:25 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove duplicate files calling %fdupes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 5 12:16:53 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
Fri May 5 12:16:53 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
@ -116,7 +138,7 @@ Tue Feb 5 11:48:38 CET 2019 - Matej Cepl <mcepl@suse.com>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 13 16:52:25 UTC 2018 - mcepl@suse.com
|
Wed Jun 13 16:52:25 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
- Enable tests properly (this is pytest, not unittest),
|
- Enable tests properly (this is pytest, not unittest),
|
||||||
it is necessary to explicitly set locale to an Unicode one
|
it is necessary to explicitly set locale to an Unicode one
|
||||||
(https://github.com/nir0s/distro/issues/223)
|
(https://github.com/nir0s/distro/issues/223)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-distro
|
# spec file for package python-distro
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,19 +20,19 @@
|
|||||||
%{!?license: %global license %doc}
|
%{!?license: %global license %doc}
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
Name: python-distro
|
Name: python-distro
|
||||||
Version: 1.8.0
|
Version: 1.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Linux Distribution - a Linux OS platform information API
|
Summary: Linux Distribution - a Linux OS platform information API
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/nir0s/distro
|
URL: https://github.com/nir0s/distro
|
||||||
Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz
|
||||||
Patch0: assert_locale.patch
|
Patch0: assert_locale.patch
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test
|
# SECTION test
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
@ -47,10 +47,9 @@ distro (for: Linux Distribution) provides information about the Linux distributi
|
|||||||
It is a renewed alternative implementation for Python's original platform.linux_distribution function, but it also provides much more functionality which isn't necessarily Python bound like a command-line interface.
|
It is a renewed alternative implementation for Python's original platform.linux_distribution function, but it also provides much more functionality which isn't necessarily Python bound like a command-line interface.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n distro-%{version}
|
%autosetup -p1 -n distro-%{version}
|
||||||
# remove shebang. Has been added by upstream intentionally: https://github.com/python-distro/distro/commit/8032f16a1082ff72471c13ff665f3ad9c929f3b0
|
# remove shebang. Has been added by upstream intentionally: https://github.com/python-distro/distro/commit/8032f16a1082ff72471c13ff665f3ad9c929f3b0
|
||||||
sed -i '1{/\/usr\/bin\/env python/d;}' src/distro/distro.py
|
sed -i '1{/\/usr\/bin\/env python/d;}' src/distro/distro.py
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@ -58,6 +57,7 @@ sed -i '1{/\/usr\/bin\/env python/d;}' src/distro/distro.py
|
|||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/distro
|
%python_clone -a %{buildroot}%{_bindir}/distro
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/distro
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
@ -74,7 +74,8 @@ export LANG=C.UTF-8
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%python_alternative %{_bindir}/distro
|
%python_alternative %{_bindir}/distro
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/distro
|
||||||
|
%{python_sitelib}/distro-%{version}.dist-info
|
||||||
%%license LICENSE
|
%%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user