@ -2,8 +2,8 @@
# EPEL7 not possible because libgcrypt version is 1.5
# EPEL7 not possible because libgcrypt version is 1.5
Name: keepassxc
Name: keepassxc
Version: 2.6.6
Version: 2.7.1
Release: 5 %{?dist}
Release: 1 %{?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/
@ -12,43 +12,57 @@ Source0: https://github.com/keepassxreboot/keepassxc/releases/download/%{
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3BVLBS4B3XHJEXFVGD7RK2ZMXZG6JQZT/
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3BVLBS4B3XHJEXFVGD7RK2ZMXZG6JQZT/
# read also https://github.com/keepassxreboot/keepassxc/pull/3520/files
# read also https://github.com/keepassxreboot/keepassxc/pull/3520/files
#
#
# Patch improved by pewpeww https://src.fedoraproject.org/rpms/keepassxc/pull-request/1
# Patch0 improved by pewpeww https://src.fedoraproject.org/rpms/keepassxc/pull-request/1
#
# 23 March 2022 Germano Massullo's update: Jan Grulich said that Qt patch https://code.qt.io/cgit/qt/qtbase.git/commit/?id=dda7dab8274991e4a61a97c352d4367f8f815bb9
# is included in qt5-qtbase in all Fedora versions but it is not in RHEL qt5-qtbase package.
# So I think it is no longer needed in Fedora
%if 0%{?el8}
Patch0: xcb.patch
Patch0: xcb.patch
%endif
BuildRequires: botan2-devel
BuildRequires: cmake >= 3.1
BuildRequires: cmake >= 3.1
BuildRequires: desktop-file-utils
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++ >= 4.7
BuildRequires: gcc-c++ >= 4.7
BuildRequires: qt5-qtbase-devel >= 5.2
BuildRequires: libappstream-glib
BuildRequires: qt5-qttools-devel >= 5.2
BuildRequires: qt5-qtsvg-devel
BuildRequires: qrencode-devel
BuildRequires: libargon2-devel
BuildRequires: libargon2-devel
BuildRequires: libcurl-devel
BuildRequires: libcurl-devel
BuildRequires: libgcrypt-devel >= 1.7
BuildRequires: libgcrypt-devel >= 1.7
BuildRequires: libmicrohttpd-devel
BuildRequires: libmicrohttpd-devel
BuildRequires: libsodium-devel
BuildRequires: libsodium-devel
BuildRequires: libusb1-devel
BuildRequires: libXi-devel
BuildRequires: libXi-devel
BuildRequires: libXtst-devel
BuildRequires: libXtst-devel
BuildRequires: libyubikey-devel
BuildRequires: libyubikey-devel
BuildRequires: minizip-compat-devel
BuildRequires: pcsc-lite-devel
BuildRequires: qrencode-devel
BuildRequires: readline-devel
BuildRequires: qt5-qtbase-devel >= 5.2
BuildRequires: qt5-qtbase-private-devel
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qttools-devel >= 5.2
BuildRequires: qt5-qtx11extras-devel
BuildRequires: qt5-qtx11extras-devel
# For EL8 missing quazip read
# https://bugzilla.redhat.com/show_bug.cgi?id=1859390
# https://bugzilla.redhat.com/show_bug.cgi?id=1754061#c1
# https://bugzilla.redhat.com/show_bug.cgi?id=1754155
%if 0%{?fedora}
BuildRequires: quazip-qt5-devel
%endif
BuildRequires: ykpers-devel
BuildRequires: ykpers-devel
BuildRequires: zlib-devel
BuildRequires: zlib-devel
BuildRequires: libappstream-glib
BuildRequires: qt5-qtbase-private-devel
BuildRequires: readline-devel
# For EL8 missing rubygem-asciidoctor read
# For EL8 missing rubygem-asciidoctor read
# 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
%if 0%{?fedora}
%if 0%{?fedora}
BuildRequires: rubygem-asciidoctor
BuildRequires: rubygem-asciidoctor
%endif
%endif
# enforces on the user system, Qt version to be the same one used to build KeepassXC
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
# KeePassXC bundles the ykcore code due to lack of support from Yubico and
# stratification of version across various operating system distros. Additionally,
# KeePassXC has modified the API of ykcore to make it more functional when using
# non-YubiKey keys (ie, OnlyKey).
Provides: bundled(ykcore)
%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
@ -124,20 +138,21 @@ install -D -m 644 -p x-keepassxc.desktop \
#install appdata files
#install appdata files
%find_lang keepassx --with-qt
%find_lang %{name} --with-qt
%check
%check
%ctest
%ctest
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
%files
%files -f %{name}.lang
%doc README.md
%doc README.md
%license COPYING LICENSE*
%license COPYING LICENSE*
%{_bindir}/keepassxc
%{_bindir}/keepassxc
%{_bindir}/keepassxc-cli
%{_bindir}/keepassxc-cli
%{_bindir}/keepassxc-proxy
%{_bindir}/keepassxc-proxy
%{_datadir}/keepassxc
%{_datadir}/keepassxc
%{_datadir}/keepassxc/wordlists
%{_datadir}/applications/org.%{name}.KeePassXC.desktop
%{_datadir}/applications/org.%{name}.KeePassXC.desktop
%{_datadir}/metainfo/org.%{name}.KeePassXC.appdata.xml
%{_datadir}/metainfo/org.%{name}.KeePassXC.appdata.xml
%{_datadir}/mimelnk
%{_datadir}/mimelnk
@ -152,6 +167,20 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.%{nam
%endif
%endif
%changelog
%changelog
* Wed Apr 06 2022 Germano Massullo <germano.massullo@gmail.com> - 2.7.1-1
- 2.7.1 release
* Tue Mar 22 2022 Germano Massullo <germano.massullo@gmail.com> - 2.7.0-1
- 2.7.0 release
- adds BuildRequires: botan2-devel
- adds BuildRequires: pcsc-lite-devel
- adds Provides: bundled(ykcore)
- enforcing on the user system, Qt version to be the same one used to build KeepassXC
- replaces BuildRequires: quazip-qt5-devel with BuildRequires: minizip-compat-devel
* Tue Mar 08 2022 Jan Grulich <jgrulich@redhat.com> - 2.6.6-6
- Rebuild (qt5)
* Mon Feb 21 2022 Germano Massullo <germano.massullo@gmail.com> - 2.6.6-5
* Mon Feb 21 2022 Germano Massullo <germano.massullo@gmail.com> - 2.6.6-5
- User pewpeww improved xcb.patch - https://src.fedoraproject.org/rpms/keepassxc/pull-request/1
- User pewpeww improved xcb.patch - https://src.fedoraproject.org/rpms/keepassxc/pull-request/1