re-enable LTO and tests

epel9
Germano Massullo 2 years ago
parent 1bd3fedb63
commit 580faffd37

@ -3,7 +3,7 @@
Name: keepassxc Name: keepassxc
Version: 2.7.1 Version: 2.7.1
Release: 12%{?dist} Release: 13%{?dist}
Summary: Cross-platform password manager Summary: Cross-platform password manager
License: Boost and BSD and CC0 and GPLv3 and LGPLv2 and LGPLv2+ and LGPLv3+ and Public Domain License: Boost and BSD and CC0 and GPLv3 and LGPLv2 and LGPLv2+ and LGPLv3+ and Public Domain
URL: http://www.keepassxc.org/ URL: http://www.keepassxc.org/
@ -109,11 +109,6 @@ information can be considered as quite safe.
%autosetup -p1 %autosetup -p1
%build %build
# This package fails to build with LTO due to undefined symbols. LTO
# was disabled in OpenSuSE as well, but with no real explanation why
# beyond the undefined symbols. It really shold be investigated further.
# Disable LTO
%define _lto_cflags %{nil}
%if %{defined el8} %if %{defined el8}
. /opt/rh/gcc-toolset-11/enable . /opt/rh/gcc-toolset-11/enable
%endif %endif
@ -122,7 +117,6 @@ information can be considered as quite safe.
# https://bugzilla.redhat.com/show_bug.cgi?id=1859390 # https://bugzilla.redhat.com/show_bug.cgi?id=1859390
# https://bugzilla.redhat.com/show_bug.cgi?id=1820896 # https://bugzilla.redhat.com/show_bug.cgi?id=1820896
%cmake \ %cmake \
-DWITH_TESTS=OFF \
-DWITH_XC_ALL=ON \ -DWITH_XC_ALL=ON \
-DWITH_XC_KEESHARE_SECURE=ON \ -DWITH_XC_KEESHARE_SECURE=ON \
-DWITH_XC_UPDATECHECK=OFF \ -DWITH_XC_UPDATECHECK=OFF \
@ -157,7 +151,8 @@ install -D -m 644 -p x-keepassxc.desktop \
%find_lang %{name} --with-qt %find_lang %{name} --with-qt
%check %check
%ctest # 'testcli' fails with "Subprocess aborted" in Koji and local mock
%ctest --exclude-regex testcli
desktop-file-validate %{buildroot}%{_datadir}/applications/org.%{name}.KeePassXC.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/org.%{name}.KeePassXC.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.%{name}.KeePassXC.appdata.xml appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.%{name}.KeePassXC.appdata.xml
@ -179,6 +174,10 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.%{nam
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
%changelog %changelog
* Thu Sep 22 2022 Otto Liljalaakso <otto.liljalaakso@iki.fi> - 2.7.1-13
- Re-enable LTO (rhbz#2127754)
- Enable most tests (rhbz#2127757)
* Wed Sep 21 2022 Jan Grulich <jgrulich@redhat.com> - 2.7.1-12 * Wed Sep 21 2022 Jan Grulich <jgrulich@redhat.com> - 2.7.1-12
- Rebuild (qt5) - Rebuild (qt5)

Loading…
Cancel
Save