diff --git a/python-MiniMock.changes b/python-MiniMock.changes index 37baae0..6367114 100644 --- a/python-MiniMock.changes +++ b/python-MiniMock.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 11 13:11:28 UTC 2022 - Matej Cepl + +- Deduplicate files in python_sitelib. + ------------------------------------------------------------------- Fri Feb 11 10:30:15 UTC 2022 - pgajdos@suse.com diff --git a/python-MiniMock.spec b/python-MiniMock.spec index 66c38ac..cac6b38 100644 --- a/python-MiniMock.spec +++ b/python-MiniMock.spec @@ -26,6 +26,7 @@ License: MIT URL: https://pypi.python.org/pypi/MiniMock Source: https://files.pythonhosted.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-tools BuildArch: noarch @@ -52,6 +53,7 @@ When using doctest, mock objects can be very simple. python3 -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/ python3 -O -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/ %endif +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand $python -B %{buildroot}%{$python_sitelib}/minimock.py