File keepassxc.spec of Package keepassxc
#
# spec file for package keepassxc
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: keepassxc
Version: 2.3.3
Release: 0
Summary: Qt5-based Password Manager
License: GPL-2.0-only OR GPL-3.0-only
Group: Productivity/Security
Url: https://www.keepassxc.org/
Source0: https://github.com/keepassxreboot/keepassxc/releases/download/%{version}/keepassxc-%{version}-src.tar.xz
Source1: https://github.com/keepassxreboot/keepassxc/releases/download/%{version}/keepassxc-%{version}-src.tar.xz.sig
Source2: https://keepassxc.org/keepassxc_master_signing_key.asc#/%{name}.keyring
BuildRequires: cmake >= 3.1.0
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: libgcrypt-devel >= 1.7
BuildRequires: libqt5-linguist-devel
BuildRequires: libyubikey-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(bash-completion)
BuildRequires: pkgconfig(libargon2)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: pkgconfig(libsodium) >= 1.0.12
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(ykpers-1)
BuildRequires: pkgconfig(zlib)
Requires: hicolor-icon-theme
Recommends: %{name}-lang
%description
A password manager or safe which manages your passwords. Databases
are locked with a master key/password or a key disk. The databases
are encrypted using AES and Twofish.
%lang_package
%prep
%setup -q
%build
%cmake \
-DWITH_XC_ALL=ON
make %{?_smp_mflags}
%install
%cmake_install
for i in $(find %{buildroot} -type f -name \*.svgz) ; do
j="${i%z}"
gunzip < $i > $j
done
%fdupes -s %{buildroot}/%{_prefix}
%check
# gh#keepassxreboot/keepassxc#667
export LANG=en_US.UTF-8
%ctest
%files
%license COPYING LICENSE*
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_bindir}/%{name}-proxy
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/icons/
%{_datadir}/%{name}/wordlists/
%{_datadir}/applications/org.keepassxc.KeePassXC.desktop
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/org.keepassxc.KeePassXC.appdata.xml
%{_datadir}/icons/hicolor/*/*/*%{name}*
%{_datadir}/mime/packages/%{name}.xml
%dir %{_libdir}/%{name}
%{_libdir}/keepassxc/libkeepassx-autotype-xcb.so
%{_mandir}/man1/%{name}-cli.1*
%files lang
%{_datadir}/%{name}/translations
%changelog