diff --git a/spec-cleaner.changes b/spec-cleaner.changes index e1b55bf..a8cf415 100644 --- a/spec-cleaner.changes +++ b/spec-cleaner.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 17 09:43:14 UTC 2021 - Atilla ÖNTAŞ + +- Fix: Use Mageia specific macro for Mageia builds in spec file + ------------------------------------------------------------------- Tue Nov 17 06:02:08 UTC 2020 - John Vandenberg diff --git a/spec-cleaner.spec b/spec-cleaner.spec index 226c63d..b7fa684 100644 --- a/spec-cleaner.spec +++ b/spec-cleaner.spec @@ -50,14 +50,22 @@ user to use spec-cleaner rather than to stick to perl based format_spec_file. rm pytest.ini %build +%if 0%{?mageia} +%py3_build +%else %python3_build +%endif %check export LANG=en_US.UTF-8 python3 -m pytest -k "not webtest" tests/*-tests.py %install +%if 0%{?mageia} +%py3_install +%else %python3_install +%endif %files %license COPYING @@ -90,7 +98,11 @@ python3 -m pytest -k "not webtest" tests/*-tests.py %{python3_sitelib}/spec_cleaner/rpmscriplets.py %{python3_sitelib}/spec_cleaner/rpmsection.py %{python3_sitelib}/spec_cleaner/__pycache__ +%if 0%{?mageia} +%{python3_sitelib}/*.egg-info +%else %{python3_sitelib}/spec_cleaner-%{version}-py%{py3_ver}.egg-info +%endif %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/excludes-bracketing.txt %{_datadir}/%{name}/licenses_changes.txt