From 01920fd3f5d91e3763af056be849bf680a2915efdc0d0961c880ebc9f2f301fa Mon Sep 17 00:00:00 2001 From: Kristyna Streitova Date: Fri, 18 Jun 2021 07:58:57 +0000 Subject: [PATCH] Accepting request 900554 from home:tarakbumba:branches:openSUSE:Tools - Fix: Use Mageia specific macro for Mageia builds in spec file OBS-URL: https://build.opensuse.org/request/show/900554 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=158 --- spec-cleaner.changes | 5 +++++ spec-cleaner.spec | 12 ++++++++++++ 2 files changed, 17 insertions(+) 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