]>
Commit | Line | Data |
---|---|---|
7510dc9e JR |
1 | %define pre beta2 |
2 | %define rel 2 | |
046632b4 | 3 | Summary: KeePassX - Cross Platform Password Manager |
eee068c0 | 4 | Summary(pl.UTF-8): KeePassX - Wieloplatformowy zarządca haseł |
e902ed13 | 5 | Name: keepassx |
e334b5b1 JR |
6 | Version: 2.0 |
7 | Release: 0.%{pre}.%{rel} | |
545b64ca JB |
8 | License: GPL v2+ |
9 | Group: X11/Applications | |
e334b5b1 | 10 | #Source0: http://downloads.sourceforge.net/keepassx/keepassx-%{version}.tar.gz |
172c6aad | 11 | Source0: http://www.keepassx.org/dev/attachments/download/115/%{name}-%{version}-%{pre}.tar.gz |
a8dc1267 | 12 | # Source0-md5: 95114e6719d12eb9a1e3ac618b7bd275 |
28c3672f | 13 | Patch0: git.patch |
545b64ca | 14 | URL: http://keepassx.sourceforge.net/ |
28c3672f | 15 | BuildRequires: Qt5Concurrent-devel >= 5.2.0 |
172c6aad | 16 | BuildRequires: Qt5Core-devel >= 5.2.0 |
28c3672f | 17 | BuildRequires: Qt5Test-devel >= 5.2.0 |
172c6aad | 18 | BuildRequires: Qt5Widgets-devel >= 5.2.0 |
28c3672f JR |
19 | BuildRequires: Qt5X11Extras-devel >= 5.2.0 |
20 | BuildRequires: cmake >= 2.8.12 | |
dddba08b | 21 | BuildRequires: libgcrypt-devel >= 1.6 |
28c3672f JR |
22 | BuildRequires: qt5-build >= 5.2.0 |
23 | BuildRequires: qt5-linguist >= 5.2.0 | |
24 | BuildRequires: qt5-qmake >= 5.2.0 | |
172c6aad | 25 | BuildRequires: rpmbuild(find_lang) >= 1.37 |
046632b4 | 26 | BuildRequires: rpmbuild(macros) >= 1.230 |
dddba08b JR |
27 | BuildRequires: xorg-lib-libX11-devel |
28 | BuildRequires: xorg-lib-libXext-devel | |
ac3eab8f | 29 | BuildRequires: xorg-lib-libXtst-devel |
dddba08b | 30 | BuildRequires: zlib-devel |
c638693c ER |
31 | Requires: desktop-file-utils |
32 | Requires: hicolor-icon-theme | |
33 | Requires: shared-mime-info | |
e902ed13 | 34 | Obsoletes: KeePassX |
046632b4 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
8a4f5eb1 | 38 | KeePassX is a free/open-source password manager or safe which helps |
39 | you to manage your passwords in a secure way. You can put all your | |
40 | passwords in one database, which is locked with one master key or a | |
41 | key-disk. So you only have to remember one single master password or | |
42 | insert the key-disk to unlock the whole database. The databases are | |
43 | encrypted using the best and most secure encryption algorithms | |
44 | currently known (AES and Twofish). | |
046632b4 | 45 | |
7870ed46 JR |
46 | %description -l pl.UTF-8 |
47 | KeePassX to darmowy i mający otwarte źródła zarządca do przechowywania | |
48 | haseł, który pozwala na zarządzanie hasłami w bardzo bezpieczny | |
49 | sposób. Pozwala umieścić wszystkie swoje hasła w jednej bazie, która | |
50 | jest zabezpieczona poprzez jedno bardzo trudne hasło albo dysk z | |
51 | kluczem. Wystarczy więc zapamiętać jedno trudne hasło lub umieścić | |
52 | dysk z kluczem aby odblokować całą bazę z kluczami. Baza jest | |
545b64ca | 53 | zaszyfrowana najlepszymi i najbardziej bezpiecznymi algorytmami |
7870ed46 | 54 | szyfrowania jakie są do tej pory znane (AES i TwoFish). |
046632b4 | 55 | |
56 | %prep | |
e902ed13 | 57 | %setup -q -n %{name}-%{version}-%{pre} |
28c3672f | 58 | %patch0 -p1 |
046632b4 | 59 | |
60 | %build | |
e334b5b1 JR |
61 | install -d build |
62 | cd build | |
63 | %cmake \ | |
e902ed13 | 64 | .. |
e334b5b1 | 65 | %{__make} |
194bc162 | 66 | |
12fc2b00 | 67 | %install |
046632b4 | 68 | rm -rf $RPM_BUILD_ROOT |
e334b5b1 JR |
69 | %{__make} -C build install \ |
70 | DESTDIR=$RPM_BUILD_ROOT | |
12fc2b00 | 71 | |
172c6aad ER |
72 | %find_lang %{name} --with-qm |
73 | ||
74 | %{__sed} -i -e ' | |
75 | s/%lang(en_plurals)/%%lang(en)/ | |
76 | s/%lang(nl_NL)/%%lang(nl)/ | |
77 | ' %{name}.lang | |
78 | ||
046632b4 | 79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
046632b4 | 81 | |
c638693c ER |
82 | %post |
83 | %update_icon_cache hicolor | |
84 | %update_desktop_database | |
85 | %update_mime_database | |
86 | ||
87 | %postun | |
88 | %update_icon_cache hicolor | |
89 | %update_desktop_database_postun | |
90 | %update_mime_database | |
91 | ||
172c6aad | 92 | %files -f %{name}.lang |
046632b4 | 93 | %defattr(644,root,root,755) |
d96d5228 | 94 | %attr(755,root,root) %{_bindir}/keepassx |
470f0279 | 95 | %{_datadir}/mime/packages/keepassx.xml |
543e0291 | 96 | %{_desktopdir}/keepassx.desktop |
6928501e ER |
97 | %dir %{_datadir}/keepassx |
98 | %{_datadir}/keepassx/icons | |
dddba08b | 99 | %dir %{_datadir}/keepassx/translations |
e334b5b1 | 100 | %dir %{_libdir}/keepassx |
28c3672f | 101 | %attr(755,root,root) %{_libdir}/keepassx/libkeepassx-autotype-xcb.so |
e334b5b1 JR |
102 | %{_iconsdir}/hicolor/*x*/apps/keepassx.png |
103 | %{_iconsdir}/hicolor/*x*/mimetypes/application-x-keepassx.png | |
104 | %{_iconsdir}/hicolor/scalable/apps/keepassx.svgz |