diff --git a/distro-1.8.0.tar.gz b/distro-1.8.0.tar.gz deleted file mode 100644 index 16b4ca0..0000000 --- a/distro-1.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02e111d1dc6a50abb8eed6bf31c3e48ed8b0830d1ea2a1b78c61765c2513fdd8 -size 59428 diff --git a/distro-1.9.0.tar.gz b/distro-1.9.0.tar.gz new file mode 100644 index 0000000..1ea6da5 --- /dev/null +++ b/distro-1.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed +size 60722 diff --git a/python-distro.changes b/python-distro.changes index a2f1096..ba2af3f 100644 --- a/python-distro.changes +++ b/python-distro.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Fri Feb 23 00:52:41 UTC 2024 - Steve Kowalik + +- Switch to autosetup macro. + +------------------------------------------------------------------- +Wed Dec 27 09:21:33 UTC 2023 - Dirk Müller + +- 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 + +- Remove duplicate files calling %fdupes + ------------------------------------------------------------------- Fri May 5 12:16:53 UTC 2023 - Johannes Kastl @@ -116,7 +138,7 @@ Tue Feb 5 11:48:38 CET 2019 - Matej Cepl ------------------------------------------------------------------- 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 (https://github.com/nir0s/distro/issues/223) diff --git a/python-distro.spec b/python-distro.spec index 00e4c4d..f46a99f 100644 --- a/python-distro.spec +++ b/python-distro.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -20,19 +20,19 @@ %{!?license: %global license %doc} %bcond_without test Name: python-distro -Version: 1.8.0 +Version: 1.9.0 Release: 0 Summary: Linux Distribution - a Linux OS platform information API License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/nir0s/distro Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz Patch0: assert_locale.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION 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. %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 sed -i '1{/\/usr\/bin\/env python/d;}' src/distro/distro.py -%patch0 -p1 %build %pyproject_wheel @@ -58,6 +57,7 @@ sed -i '1{/\/usr\/bin\/env python/d;}' src/distro/distro.py %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/distro +%python_expand %fdupes %{buildroot}%{$python_sitelib}/distro %if %{with test} %check @@ -74,7 +74,8 @@ export LANG=C.UTF-8 %files %{python_files} %doc CHANGELOG.md README.md %python_alternative %{_bindir}/distro -%{python_sitelib}/* +%{python_sitelib}/distro +%{python_sitelib}/distro-%{version}.dist-info %%license LICENSE %changelog