]>
Commit | Line | Data |
---|---|---|
1 | %define qtver 5.12.0 | |
2 | ||
3 | Summary: KeePassXC - Cross Platform Password Manager | |
4 | Summary(pl.UTF-8): KeePassXC - Wieloplatformowy zarządca haseł | |
5 | Name: keepassxc | |
6 | Version: 2.7.8 | |
7 | Release: 1 | |
8 | License: GPL v2+ | |
9 | Group: X11/Applications | |
10 | Source0: https://github.com/keepassxreboot/keepassxc/releases/download/%{version}/%{name}-%{version}-src.tar.xz | |
11 | # Source0-md5: 5bf705a6277e17b162a4ad2a8fd60dbf | |
12 | URL: https://keepassxc.org/ | |
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} | |
22 | BuildRequires: botan2-devel >= 2.11.0 | |
23 | BuildRequires: cmake >= 3.10.0 | |
24 | BuildRequires: libargon2-devel | |
25 | BuildRequires: libusb-devel | |
26 | BuildRequires: minizip-devel | |
27 | BuildRequires: pcsc-lite-devel | |
28 | BuildRequires: pkgconfig | |
29 | BuildRequires: qrencode-devel | |
30 | BuildRequires: qt5-build >= %{qtver} | |
31 | BuildRequires: qt5-linguist >= %{qtver} | |
32 | BuildRequires: qt5-qmake >= %{qtver} | |
33 | BuildRequires: readline-devel | |
34 | BuildRequires: rpmbuild(find_lang) >= 1.37 | |
35 | BuildRequires: rpmbuild(macros) >= 1.605 | |
36 | BuildRequires: ruby-asciidoctor | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xorg-lib-libX11-devel | |
39 | BuildRequires: xorg-lib-libXi-devel | |
40 | BuildRequires: xorg-lib-libXtst-devel | |
41 | BuildRequires: xz | |
42 | BuildRequires: ykpers-devel | |
43 | BuildRequires: zlib-devel >= 1.2.0 | |
44 | Requires: Qt5Concurrent >= %{qtver} | |
45 | %requires_ge_to Qt5Core Qt5Core-devel | |
46 | Requires: Qt5DBus >= %{qtver} | |
47 | Requires: Qt5Gui >= %{qtver} | |
48 | Requires: Qt5Network >= %{qtver} | |
49 | Requires: Qt5Svg >= %{qtver} | |
50 | Requires: Qt5Widgets >= %{qtver} | |
51 | Requires: Qt5X11Extras >= %{qtver} | |
52 | Requires: desktop-file-utils | |
53 | Requires: hicolor-icon-theme | |
54 | Requires: shared-mime-info | |
55 | Requires: zlib >= 1.2.0 | |
56 | Obsoletes: KeePassX | |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
58 | ||
59 | %description | |
60 | KeePassXC is a free/open-source password manager or safe which helps | |
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). | |
67 | ||
68 | %description -l pl.UTF-8 | |
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 | |
75 | zaszyfrowana najlepszymi i najbardziej bezpiecznymi algorytmami | |
76 | szyfrowania jakie są do tej pory znane (AES i TwoFish). | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
82 | install -d build | |
83 | cd build | |
84 | %cmake \ | |
85 | -DKEEPASSXC_BUILD_TYPE=Release \ | |
86 | -DWITH_XC_BROWSER=ON \ | |
87 | -DWITH_XC_BROWSER_PASSKEYS=ON \ | |
88 | -DWITH_XC_KEESHARE=ON \ | |
89 | -DWITH_XC_SSHAGENT=ON \ | |
90 | -DWITH_XC_YUBIKEY=ON \ | |
91 | .. | |
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | %{__make} -C build install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | %find_lang %{name} --with-qm | |
100 | ||
101 | %{__sed} -i -e ' | |
102 | s/%lang(en_plurals)/%%lang(en)/ | |
103 | s/%lang(nl_NL)/%%lang(nl)/ | |
104 | ' %{name}.lang | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
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 | ||
119 | %files -f %{name}.lang | |
120 | %defattr(644,root,root,755) | |
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 | |
128 | %{_datadir}/keepassxc/docs | |
129 | %{_datadir}/keepassxc/icons | |
130 | %dir %{_datadir}/keepassxc/translations | |
131 | %{_datadir}/keepassxc/wordlists | |
132 | %dir %{_libdir}/keepassxc | |
133 | %attr(755,root,root) %{_libdir}/keepassxc/libkeepassxc-autotype-xcb.so | |
134 | %{_iconsdir}/hicolor/*x*/apps/keepassxc*.png | |
135 | %{_iconsdir}/hicolor/scalable/apps/keepassxc*.svg | |
136 | %{_iconsdir}/hicolor/scalable/mimetypes/application-x-keepassxc.svg | |
137 | %{_mandir}/man1/keepassxc.1* | |
138 | %{_mandir}/man1/keepassxc-cli.1* |