%global _basename ChiPass %global forgeurl https://codeberg.org/%{_basename}/%{_basename} %global commit 387a12b979377cc42a708a3364f349021e06def2 %global date 20261109 %forgemeta Name: chipass Version: 2026.09.0 Release: 0%{?dist} Summary: Cross-platform password manager License: GPL-2.0-or-later AND BSD-2-Clause AND MIT AND CC0-1.0 AND Apache-2.0 AND LGPL-2.0-only AND LGPL-2.1-only URL: %{forgeurl} Source: %{forgesource} # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval # due zxcvbn-c not being available on 32bit x86 ExcludeArch: %{ix86} %if (%{defined fedora} && 0%{?fedora} >= 44) || (%{defined rhel} && 0%{?rhel} >= 10) BuildRequires: botan3-devel %else BuildRequires: botan2-devel %endif BuildRequires: cmake >= 3.16 BuildRequires: desktop-file-utils BuildRequires: gcc-c++ # Required for LC_ALL=en_US.UTF-8 during tests BuildRequires: glibc-langpack-en BuildRequires: keyutils-libs-devel BuildRequires: libappstream-glib BuildRequires: libusb1-devel BuildRequires: libXi-devel BuildRequires: libXtst-devel # Concerning minizip dependency drama, this is the list of available minizip packages # for all active branches # == el9 == # minizip # minizip1.2 # # == fedora >= 40 == # minizip-ng # minizip-ng-compat # Read https://fedoraproject.org/wiki/Changes/MinizipNGTransition %if 0%{?el9} BuildRequires: minizip1.2-devel %else BuildRequires: minizip-ng-compat-devel %endif BuildRequires: pcsc-lite-devel BuildRequires: qrencode-devel BuildRequires: readline-devel BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtsvg-devel BuildRequires: qt6-qttools-devel BuildRequires: zlib-devel BuildRequires: rubygem-asciidoctor # Required for GPG signature verification BuildRequires: openpgpverify # enforces on the user system, Qt version to be the same one used to build KeepassXC # This avoids "not a bug" bugreports like this one # https://bugzilla.redhat.com/show_bug.cgi?id=2068981 # Moreover it is very important in case of mass rebuild of Qt+applications that # are dependent from Qt, because it happened (see following bugreport) that users experienced # that their system was not able to install a new Qt update due packaging bugs, but the system # was able to update keepassxc (which was built upon new Qt release), resulting in a # Qt - KeepassXC mismatch # https://bugzilla.redhat.com/show_bug.cgi?id=2111413 %{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_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) # Use the system zxcvbn-c library on Fedora. EPEL does not currently provide # zxcvbn-c, so KeePassXC falls back to its bundled copy there. # EPEL request: https://bugzilla.redhat.com/show_bug.cgi?id=2541423 %if 0%{?fedora} BuildRequires: zxcvbn-c-devel %else Provides: bundled(zxcvbn-c) = 2.6 %endif # https://github.com/keepassxreboot/keepassxc/pull/13810 Recommends: (wl-clipboard if gnome-shell) %description ChiPass is a modern, secure, and open-source password manager that stores and manages your most sensitive information. You can run ChiPass on Windows, macOS, and Linux systems. ChiPass is for people with extremely high demands of secure personal data management. It saves many different types of information, such as usernames, passwords, URLs, attachments, and notes in an offline, encrypted file that can be stored in any location, including private and public cloud solutions. For easy identification and management, user-defined titles and icons can be specified for entries. In addition, entries are sorted into customizable groups. An integrated search function allows you to use advanced patterns to easily find any entry in your database. A customizable, fast, and easy-to-use password generator utility allows you to create passwords with any combination of characters or easy to remember passphrases. %prep %forgeautosetup -p1 # Older version of appstream-util can't parse some url types %if 0%{?rhel} == 9 sed -i '/type="vcs-browser"/d' ./share/freedesktop/%{_basename}.metainfo.xml sed -i '/type="contribute"/d' ./share/freedesktop/%{_basename}.metainfo.xml %endif %build %cmake %{?flatpak:-DCHIPASS_DIST_TYPE=Flatpak} -DCHIPASS_BUILD_TYPE=Release -DCHIPASS_WITH_UPDATE_CHECK=OFF %cmake_build %install %cmake_install %if %{defined flatpak} install -m0755 utils/%{name}-flatpak-wrapper.sh %{buildroot}%{_bindir}/%{name}-wrapper %endif desktop-file-install --dir %{buildroot}%{_datadir}/applications --delete-original \ --add-mime-type application/x-%{name} %{buildroot}%{_datadir}/applications/%{_basename}.desktop %find_lang %{name} --with-qt %check # C language fails https://github.com/keepassxreboot/keepassxc/issues/11813 export LC_ALL=en_US.UTF-8 # 'testcli' fails with "Subprocess aborted" in Koji and local mock %ctest --exclude-regex testcli desktop-file-validate %{buildroot}%{_datadir}/applications/%{_basename}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{_basename}.metainfo.xml %files -f %{name}.lang %doc README.md %license COPYING LICENSE* %{_bindir}/%{name} %{_bindir}/%{name}-cli %{_bindir}/%{name}-proxy %if %{defined flatpak} %{_bindir}/%{name}-wrapper %endif %{_datadir}/%{name}/docs %{_datadir}/%{name}/icons %{_datadir}/%{name}/wordlists %{_datadir}/applications/%{_basename}.desktop %{_metainfodir}/%{_basename}.metainfo.xml %{_datadir}/mime/packages/*.xml %{_datadir}/icons/hicolor/*/*/*%{name}* %{_datadir}/polkit-1/actions/org.keepassxc.KeePassXC.policy %{_mandir}/man1/%{name}-cli.1* %{_mandir}/man1/%{name}.1* %changelog * Thu Nov 19 2026 Hazel Bunny - 2026.09.0-0 - First release on copr repository