enabled EPEL8 builds

epel9
Germano Massullo 4 years ago
parent bb67739a4b
commit 40e93ccd9c

@ -3,7 +3,7 @@
Name: keepassxc Name: keepassxc
Version: 2.6.3 Version: 2.6.3
Release: 1%{?dist} Release: 2%{?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/
@ -25,10 +25,11 @@ BuildRequires: libXi-devel
BuildRequires: libXtst-devel BuildRequires: libXtst-devel
BuildRequires: libyubikey-devel BuildRequires: libyubikey-devel
BuildRequires: qt5-qtx11extras-devel BuildRequires: qt5-qtx11extras-devel
# For quazip read https://bugzilla.redhat.com/show_bug.cgi?id=1754061#c1 # For EL8 missing quazip read
%if 0%{?el8} # https://bugzilla.redhat.com/show_bug.cgi?id=1859390
BuildRequires: quazip-devel # https://bugzilla.redhat.com/show_bug.cgi?id=1754061#c1
%else # https://bugzilla.redhat.com/show_bug.cgi?id=1754155
%if 0%{?fedora}
BuildRequires: quazip-qt5-devel BuildRequires: quazip-qt5-devel
%endif %endif
BuildRequires: ykpers-devel BuildRequires: ykpers-devel
@ -36,8 +37,12 @@ BuildRequires: zlib-devel
BuildRequires: libappstream-glib BuildRequires: libappstream-glib
BuildRequires: qt5-qtbase-private-devel BuildRequires: qt5-qtbase-private-devel
BuildRequires: readline-devel BuildRequires: readline-devel
# For EL8 missing rubygem-asciidoctor read
# https://bugzilla.redhat.com/show_bug.cgi?id=1859390
# https://bugzilla.redhat.com/show_bug.cgi?id=1820896
%if 0%{?fedora}
BuildRequires: rubygem-asciidoctor BuildRequires: rubygem-asciidoctor
%endif
%description %description
KeePassXC is a community fork of KeePassX KeePassXC is a community fork of KeePassX
KeePassXC is an application for people with extremely high demands on secure KeePassXC is an application for people with extremely high demands on secure
@ -66,13 +71,26 @@ information can be considered as quite safe.
# beyond the undefined symbols. It really shold be investigated further. # beyond the undefined symbols. It really shold be investigated further.
# Disable LTO # Disable LTO
%define _lto_cflags %{nil} %define _lto_cflags %{nil}
%if 0%{?fedora}
%cmake \ %cmake \
-DWITH_TESTS=OFF \ -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 \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release
%endif
# -DWITH_XC_DOCS=OFF is needed on EL due missing rubygem-asciidoctor
# For EL8 missing rubygem-asciidoctor read
# https://bugzilla.redhat.com/show_bug.cgi?id=1859390
# https://bugzilla.redhat.com/show_bug.cgi?id=1820896
%if 0%{?el8}
-DWITH_TESTS=OFF \
-DWITH_XC_ALL=ON \
-DWITH_XC_KEESHARE_SECURE=ON \
-DWITH_XC_UPDATECHECK=OFF \
-DWITH_XC_DOCS=OFF \
-DCMAKE_BUILD_TYPE=Release
%endif
%cmake_build %cmake_build
%install %install
@ -119,10 +137,17 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.%{nam
%{_datadir}/mime/packages/*.xml %{_datadir}/mime/packages/*.xml
%{_datadir}/icons/hicolor/*/*/*keepassxc* %{_datadir}/icons/hicolor/*/*/*keepassxc*
%{_libdir}/%{name} %{_libdir}/%{name}
# Missing rubygem-asciidoctor in EL8 does not allow having documentation in EL8
# Read https://bugzilla.redhat.com/show_bug.cgi?id=1859390
%if 0%{?fedora}
%{_mandir}/man1/%{name}-cli.1* %{_mandir}/man1/%{name}-cli.1*
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
%endif
%changelog %changelog
* Thu Jan 21 2021 Germano Massullo <germano.massullo@gmail.com> - 2.6.3-2
- EL8: disabled documentation, removed rubygem-asciidoctor and quazip depencendies. For bugzilla tickets about missing dependencies, read this spec file near Fedora/EL8 macros
* Wed Jan 13 2021 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.6.3-1 * Wed Jan 13 2021 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.6.3-1
- Update to 2.6.3 - Update to 2.6.3

Loading…
Cancel
Save