From 0bd735f1b77de08f014023445c35306002e308e4 Mon Sep 17 00:00:00 2001 From: chenhaixing Date: Fri, 9 Dec 2022 14:40:41 +0800 Subject: [PATCH] enable DT --- dnf.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dnf.spec b/dnf.spec index 2505709..f850218 100644 --- a/dnf.spec +++ b/dnf.spec @@ -3,7 +3,7 @@ Name: dnf Version: 4.14.0 -Release: 2 +Release: 3 Summary: A software package manager that manages packages on Linux distributions. License: GPLv2+ and GPLv2 and GPL URL: https://github.com/rpm-software-management/dnf @@ -90,6 +90,13 @@ Man pages and other related documents for dnf and yum %autosetup -p1 mkdir build-py3 +#Failure use case +#It not have root permissions in obs +#tests/api/test_dnf_base.py test_do_transaction +#tests/api/test_dnf_logging.py test_dnf_logger +sed -i '154,160d' tests/api/test_dnf_base.py +sed -i '51,55d' tests/api/test_dnf_logging.py + %build pushd build-py3 %cmake .. -DPYTHON_DESIRED:FILEPATH=%{__python3} @@ -123,6 +130,11 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/plugins %{buildroot}%{_sysconfdir}/yu ln -sr %{buildroot}%{_sysconfdir}/%{name}/protected.d %{buildroot}%{_sysconfdir}/yum/protected.d ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/vars +%check +export TERM=linux +pushd build-py3 +ctest -VV +popd %post %systemd_post dnf-makecache.timer @@ -225,6 +237,9 @@ ln -sr %{buildroot}%{_sysconfdir}/%{name}/vars %{buildroot}%{_sysconfdir}/yum/v %{_mandir}/man8/%{name}-automatic.8* %changelog +* Fri Dec 9 2022 chenhaixing - 4.14.0-3 +- DESC:enable DT + * Wed Nov 16 2022 chenhaixing - 4.14.0-2 - DESC:correct the incorrect Obsoletes