d8e2119
Name:           keepassxc
0f8a41c
Version:        2.2.4
0bdcdfb
Release:        2%{?dist}
d8e2119
Summary:        Cross-platform password manager
d8e2119
License:        Boost and BSD and CC0 and GPLv3 and LGPLv2 and LGPLv2+ and LGPLv3+ and Public Domain
d8e2119
URL:            http://www.keepassxc.org/
0f8a41c
Source0:     	https://github.com/keepassxreboot/keepassxc/releases/download/%{version}/keepassxc-%{version}-src.tar.xz
d8e2119
d8e2119
BuildRequires:  cmake
d8e2119
BuildRequires:  desktop-file-utils
d8e2119
BuildRequires:  qt5-qtbase-devel >= 5.2
d8e2119
BuildRequires:  qt5-qttools-devel >= 5.2
d8e2119
BuildRequires:  libgcrypt-devel >= 1.6
d8e2119
BuildRequires:  libmicrohttpd-devel
d8e2119
BuildRequires:  libXi-devel
d8e2119
BuildRequires:  libXtst-devel
5139286
BuildRequires:  libyubikey-devel
d8e2119
BuildRequires:  qt5-qtx11extras-devel
5139286
BuildRequires:  ykpers-devel
d8e2119
BuildRequires:  zlib-devel
ab18181
BuildRequires:  libappstream-glib
d8e2119
d8e2119
%description
d8e2119
KeePassXC is a community fork of KeePassX
d8e2119
KeePassXC is an application for people with extremely high demands on secure
d8e2119
personal data management.
d8e2119
KeePassXC saves many different information e.g. user names, passwords, urls,
d8e2119
attachemts and comments in one single database. For a better management
d8e2119
user-defined titles and icons can be specified for each single entry.
d8e2119
Furthermore the entries are sorted in groups, which are customizable as well.
d8e2119
The integrated search function allows to search in a single group or the
d8e2119
complete database.
d8e2119
KeePassXC offers a little utility for secure password generation. The password
d8e2119
generator is very customizable, fast and easy to use. Especially someone who
d8e2119
generates passwords frequently will appreciate this feature.
d8e2119
The complete database is always encrypted either with AES (alias Rijndael) or
d8e2119
Twofish encryption algorithm using a 256 bit key. Therefore the saved
d8e2119
information can be considered as quite safe.
d8e2119
d8e2119
d8e2119
d8e2119
%prep
d8e2119
%setup -n %{name}-%{version}
d8e2119
ab18181
# get rid of icon tag in appdata file
ab18181
# icon tag is not allowed in desktop appdata file
0bdcdfb
sed -i '/\
0bdcdfb
ab18181
d8e2119
%build
d8e2119
mkdir build
d8e2119
cd build
d8e2119
d8e2119
%cmake .. \
d8e2119
    -DCMAKE_INSTALL_PREFIX=/usr \
d8e2119
    -DCMAKE_VERBOSE_MAKEFILE=OFF \
d8e2119
    -DWITH_TESTS=OFF \
d8e2119
    -DWITH_XC_HTTP=ON \
d8e2119
    -DWITH_XC_AUTOTYPE=ON \
89a018f
    -DWITH_XC_YUBIKEY=ON \
d8e2119
    -DCMAKE_BUILD_TYPE=Release
d8e2119
 
d8e2119
make %{?_smp_mflags}
d8e2119
 
d8e2119
%install
d8e2119
cd build
d8e2119
make install DESTDIR=%{buildroot}
d8e2119
 
d8e2119
desktop-file-install \
d8e2119
    --dir %{buildroot}%{_datadir}/applications \
d8e2119
    --delete-original \
d8e2119
    --add-mime-type application/x-keepassxc \
0bdcdfb
    %{buildroot}%{_datadir}/applications/org.%{name}.KeePassXC.desktop
d8e2119
 
d8e2119
# Associate KDB* files
d8e2119
cat > x-keepassxc.desktop << EOF
d8e2119
[Desktop Entry]
d8e2119
Comment=
d8e2119
Hidden=false
d8e2119
Icon=keepassxc.png
d8e2119
MimeType=application/x-keepassxc
d8e2119
Patterns=*.kdb;*.KDB;*.kdbx;*.KDBX*
d8e2119
Type=MimeType
d8e2119
EOF
d8e2119
install -D -m 644 -p x-keepassxc.desktop \
d8e2119
    %{buildroot}%{_datadir}/mimelnk/application/x-keepassxc.desktop
d8e2119
ab18181
#install appdata files
0bdcdfb
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.%{name}.KeePassXC.appdata.xml
ab18181
d8e2119
%find_lang keepassx --with-qt
d8e2119
d8e2119
%check
d8e2119
ctest -V %{?_smp_mflags}
d8e2119
d8e2119
%post
d8e2119
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
d8e2119
update-desktop-database &> /dev/null ||:
d8e2119
 
0bdcdfb
Page missing%postun
d8e2119
if [ $1 -eq 0 ] ; then
d8e2119
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
d8e2119
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
d8e2119
fi
d8e2119
update-desktop-database &> /dev/null ||:
d8e2119
d8e2119
%posttrans
d8e2119
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
d8e2119
desktop-file-validate %{_datadir}/applications/keepassxc.desktop &> /dev/null || :
d8e2119
d8e2119
%files
d8e2119
%doc README.md
d8e2119
%license COPYING LICENSE*
d8e2119
%{_bindir}/keepassxc
df10cac
%{_bindir}/keepassxc-cli
d8e2119
%{_datadir}/keepassxc
0bdcdfb
%{_datadir}/applications/org.%{name}.KeePassXC.desktop
0bdcdfb
%{_datadir}/metainfo/org.%{name}.KeePassXC.appdata.xml
d8e2119
%{_datadir}/mimelnk
d8e2119
%{_datadir}/mime/packages/*.xml
d8e2119
%{_datadir}/icons/hicolor/*/*/*keepassxc*
d8e2119
%{_libdir}/%{name}
d8e2119
d8e2119
%changelog
0bdcdfb
* Sat Dec 16 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.2.4-2
0bdcdfb
- Adjust for changes in appdata and desktop filename change
0bdcdfb
0f8a41c
* Thu Dec 14 2017 Germano Massullo <germano.massullo@gmail.com> - 2.2.4-1
0f8a41c
- 2.2.4 release
0f8a41c
- removed patch to fix typo in a XML tag
0f8a41c
f2bbef4
* Tue Dec 12 2017 Germano Massullo <germano.massullo@gmail.com> - 2.2.3-1
f2bbef4
- 2.2.3 release
805dc0e
- added patch to fix typo in a XML tag
f2bbef4
ab18181
* Sun Oct 22 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.2.2-1
ab18181
- Update to 2.2.2
ab18181
- Fix desktop file names
ab18181
- Added BR on libappstream-glib
ab18181
- Install appdata file
ab18181
4190484
* Mon Oct 02 2017 Germano Massullo <germano.massullo@gmail.com> - 2.2.1-1
4190484
- 2.2.1 release
4190484
3ac1c55
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
3ac1c55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3ac1c55
62906bc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
62906bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
62906bc
df10cac
* Mon Jun 26 2017 Germano Massullo <germano.massullo@gmail.com> - 2.2.0-1
df10cac
- 2.2.0 release
df10cac
- added %{_bindir}/keepassxc-cli
89a018f
- changed -DWITH_XC_YUBIKEY=OFF to -DWITH_XC_YUBIKEY=ON
5139286
- added BuildRequires: ykpers-devel and BuildRequires: libyubikey-devel
df10cac
df10cac
* Fri May 19 2017 Germano Massullo <germano.massullo@gmail.com> - 2.1.4-2
23f02e1
- Disabled Yubikey support. It will be re-enabled on 2.2.0 release
23f02e1
d8e2119
* Sun May 14 2017 Germano Massullo <germano.massullo@gmail.com> - 2.1.4-1
d8e2119
- First release on Fedora repository