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:
Ana Guerrero 2023-09-22 19:46:54 +00:00 committed by Git OBS Bridge
commit 8f276e02b9
2 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -30,6 +30,7 @@ Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%
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
@ -58,6 +59,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 +76,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}*-info
%%license LICENSE
%changelog