forked from pool/python-distro
Accepting request 1149664 from devel:languages:python
- Switch to autosetup macro. OBS-URL: https://build.opensuse.org/request/show/1149664 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-distro?expand=0&rev=21
This commit is contained in:
parent
184064992d
commit
9190c546eb
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Wed Dec 27 09:21:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -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
|
||||||
@ -24,7 +24,6 @@ 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
|
||||||
@ -33,7 +32,7 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
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}
|
||||||
@ -48,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
|
||||||
@ -77,7 +75,7 @@ export LANG=C.UTF-8
|
|||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%python_alternative %{_bindir}/distro
|
%python_alternative %{_bindir}/distro
|
||||||
%{python_sitelib}/distro
|
%{python_sitelib}/distro
|
||||||
%{python_sitelib}/distro-%{version}*-info
|
%{python_sitelib}/distro-%{version}.dist-info
|
||||||
%%license LICENSE
|
%%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user