]>
Commit | Line | Data |
---|---|---|
dedd1591 JP |
1 | %define qtver 5.12.0 |
2 | ||
e580663c JP |
3 | Summary: KeePassXC - Cross Platform Password Manager |
4 | Summary(pl.UTF-8): KeePassXC - Wieloplatformowy zarządca haseł | |
5 | Name: keepassxc | |
6548349e | 6 | Version: 2.7.8 |
002a2ce2 | 7 | Release: 1 |
545b64ca JB |
8 | License: GPL v2+ |
9 | Group: X11/Applications | |
87533e38 | 10 | Source0: https://github.com/keepassxreboot/keepassxc/releases/download/%{version}/%{name}-%{version}-src.tar.xz |
6548349e | 11 | # Source0-md5: 5bf705a6277e17b162a4ad2a8fd60dbf |
e580663c | 12 | URL: https://keepassxc.org/ |
dedd1591 JP |
13 | BuildRequires: Qt5Concurrent-devel >= %{qtver} |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
16 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
17 | BuildRequires: Qt5Network-devel >= %{qtver} | |
18 | BuildRequires: Qt5Svg-devel >= %{qtver} | |
19 | BuildRequires: Qt5Test-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
87533e38 | 22 | BuildRequires: botan2-devel >= 2.11.0 |
dedd1591 | 23 | BuildRequires: cmake >= 3.10.0 |
e580663c | 24 | BuildRequires: libargon2-devel |
87533e38 JP |
25 | BuildRequires: libusb-devel |
26 | BuildRequires: minizip-devel | |
27 | BuildRequires: pcsc-lite-devel | |
28 | BuildRequires: pkgconfig | |
a43b024f | 29 | BuildRequires: qrencode-devel |
dedd1591 JP |
30 | BuildRequires: qt5-build >= %{qtver} |
31 | BuildRequires: qt5-linguist >= %{qtver} | |
32 | BuildRequires: qt5-qmake >= %{qtver} | |
bbc8f8ff | 33 | BuildRequires: readline-devel |
172c6aad | 34 | BuildRequires: rpmbuild(find_lang) >= 1.37 |
d3646772 | 35 | BuildRequires: rpmbuild(macros) >= 1.605 |
e8b4ba4c | 36 | BuildRequires: ruby-asciidoctor |
57e52a5c | 37 | BuildRequires: tar >= 1:1.22 |
dddba08b | 38 | BuildRequires: xorg-lib-libX11-devel |
e580663c | 39 | BuildRequires: xorg-lib-libXi-devel |
ac3eab8f | 40 | BuildRequires: xorg-lib-libXtst-devel |
57e52a5c | 41 | BuildRequires: xz |
7faa084d | 42 | BuildRequires: ykpers-devel |
e580663c | 43 | BuildRequires: zlib-devel >= 1.2.0 |
dedd1591 | 44 | Requires: Qt5Concurrent >= %{qtver} |
4152993c | 45 | %requires_ge_to Qt5Core Qt5Core-devel |
dedd1591 JP |
46 | Requires: Qt5DBus >= %{qtver} |
47 | Requires: Qt5Gui >= %{qtver} | |
48 | Requires: Qt5Network >= %{qtver} | |
49 | Requires: Qt5Svg >= %{qtver} | |
50 | Requires: Qt5Widgets >= %{qtver} | |
51 | Requires: Qt5X11Extras >= %{qtver} | |
c638693c ER |
52 | Requires: desktop-file-utils |
53 | Requires: hicolor-icon-theme | |
54 | Requires: shared-mime-info | |
e580663c | 55 | Requires: zlib >= 1.2.0 |
e902ed13 | 56 | Obsoletes: KeePassX |
046632b4 | 57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
58 | ||
59 | %description | |
e580663c | 60 | KeePassXC is a free/open-source password manager or safe which helps |
8a4f5eb1 | 61 | you to manage your passwords in a secure way. You can put all your |
62 | passwords in one database, which is locked with one master key or a | |
63 | key-disk. So you only have to remember one single master password or | |
64 | insert the key-disk to unlock the whole database. The databases are | |
65 | encrypted using the best and most secure encryption algorithms | |
66 | currently known (AES and Twofish). | |
046632b4 | 67 | |
7870ed46 | 68 | %description -l pl.UTF-8 |
e580663c JP |
69 | KeePassXC to darmowy i mający otwarte źródła zarządca do |
70 | przechowywania haseł, który pozwala na zarządzanie hasłami w bardzo | |
71 | bezpieczny sposób. Pozwala umieścić wszystkie swoje hasła w jednej | |
72 | bazie, która jest zabezpieczona poprzez jedno bardzo trudne hasło albo | |
73 | dysk z kluczem. Wystarczy więc zapamiętać jedno trudne hasło lub | |
74 | umieścić dysk z kluczem aby odblokować całą bazę z kluczami. Baza jest | |
545b64ca | 75 | zaszyfrowana najlepszymi i najbardziej bezpiecznymi algorytmami |
7870ed46 | 76 | szyfrowania jakie są do tej pory znane (AES i TwoFish). |
046632b4 | 77 | |
78 | %prep | |
92f6d886 | 79 | %setup -q |
046632b4 | 80 | |
81 | %build | |
e334b5b1 JR |
82 | install -d build |
83 | cd build | |
84 | %cmake \ | |
e580663c JP |
85 | -DKEEPASSXC_BUILD_TYPE=Release \ |
86 | -DWITH_XC_BROWSER=ON \ | |
dedd1591 | 87 | -DWITH_XC_BROWSER_PASSKEYS=ON \ |
a43b024f | 88 | -DWITH_XC_KEESHARE=ON \ |
e580663c | 89 | -DWITH_XC_SSHAGENT=ON \ |
7faa084d | 90 | -DWITH_XC_YUBIKEY=ON \ |
e902ed13 | 91 | .. |
e334b5b1 | 92 | %{__make} |
194bc162 | 93 | |
12fc2b00 | 94 | %install |
046632b4 | 95 | rm -rf $RPM_BUILD_ROOT |
e334b5b1 JR |
96 | %{__make} -C build install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
12fc2b00 | 98 | |
87533e38 | 99 | %find_lang %{name} --with-qm |
172c6aad ER |
100 | |
101 | %{__sed} -i -e ' | |
102 | s/%lang(en_plurals)/%%lang(en)/ | |
103 | s/%lang(nl_NL)/%%lang(nl)/ | |
104 | ' %{name}.lang | |
105 | ||
046632b4 | 106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
046632b4 | 108 | |
c638693c ER |
109 | %post |
110 | %update_icon_cache hicolor | |
111 | %update_desktop_database | |
112 | %update_mime_database | |
113 | ||
114 | %postun | |
115 | %update_icon_cache hicolor | |
116 | %update_desktop_database_postun | |
117 | %update_mime_database | |
118 | ||
172c6aad | 119 | %files -f %{name}.lang |
046632b4 | 120 | %defattr(644,root,root,755) |
e580663c JP |
121 | %attr(755,root,root) %{_bindir}/keepassxc |
122 | %attr(755,root,root) %{_bindir}/keepassxc-cli | |
123 | %attr(755,root,root) %{_bindir}/keepassxc-proxy | |
124 | %{_datadir}/metainfo/org.keepassxc.KeePassXC.appdata.xml | |
125 | %{_datadir}/mime/packages/keepassxc.xml | |
126 | %{_desktopdir}/org.keepassxc.KeePassXC.desktop | |
127 | %dir %{_datadir}/keepassxc | |
c0939916 | 128 | %{_datadir}/keepassxc/docs |
e580663c JP |
129 | %{_datadir}/keepassxc/icons |
130 | %dir %{_datadir}/keepassxc/translations | |
131 | %{_datadir}/keepassxc/wordlists | |
132 | %dir %{_libdir}/keepassxc | |
87533e38 | 133 | %attr(755,root,root) %{_libdir}/keepassxc/libkeepassxc-autotype-xcb.so |
e580663c | 134 | %{_iconsdir}/hicolor/*x*/apps/keepassxc*.png |
a43b024f JP |
135 | %{_iconsdir}/hicolor/scalable/apps/keepassxc*.svg |
136 | %{_iconsdir}/hicolor/scalable/mimetypes/application-x-keepassxc.svg | |
c0939916 | 137 | %{_mandir}/man1/keepassxc.1* |
e580663c | 138 | %{_mandir}/man1/keepassxc-cli.1* |