Accepting request 1112048 from devel:languages:python
- Remove duplicate files calling %fdupes OBS-URL: https://build.opensuse.org/request/show/1112048 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-distro?expand=0&rev=19
This commit is contained in:
commit
8f276e02b9
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%
|
|||||||
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
|
||||||
@ -58,6 +59,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 +76,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}*-info
|
||||||
%%license LICENSE
|
%%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user