From 01819610e633b0af25be136472c1c8c420f770cb32f6e1faa8c9bab0a7d69480 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Fri, 22 Sep 2023 19:46:54 +0000 Subject: [PATCH] Updating link to change in openSUSE:Factory/python-distro revision 19 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distro?expand=0&rev=f9efd26bb1186e05f873d1c6332e6513 --- python-distro.changes | 5 +++++ python-distro.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-distro.changes b/python-distro.changes index a2f1096..ad49767 100644 --- a/python-distro.changes +++ b/python-distro.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-distro.spec b/python-distro.spec index 00e4c4d..3c7e31c 100644 --- a/python-distro.spec +++ b/python-distro.spec @@ -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