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
This commit is contained in:
Kristyna Streitova 2021-06-18 07:58:57 +00:00 committed by Git OBS Bridge
parent 44e10abc84
commit 01920fd3f5
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 17 09:43:14 UTC 2021 - Atilla ÖNTAŞ <tarakbumba@gmail.com>
- Fix: Use Mageia specific macro for Mageia builds in spec file
-------------------------------------------------------------------
Tue Nov 17 06:02:08 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

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