Accepting request 900714 from openSUSE:Tools

OBS-URL: https://build.opensuse.org/request/show/900714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spec-cleaner?expand=0&rev=68
This commit is contained in:
Dominique Leuenberger 2021-06-19 21:03:13 +00:00 committed by Git OBS Bridge
commit 28c65df4c1
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