]> git.pld-linux.org Git - packages/keepassxc.git/blame - keepassx.spec
use find lang
[packages/keepassxc.git] / keepassx.spec
CommitLineData
7510dc9e
JR
1%define pre beta2
2%define rel 2
046632b4 3Summary: KeePassX - Cross Platform Password Manager
eee068c0 4Summary(pl.UTF-8): KeePassX - Wieloplatformowy zarządca haseł
e902ed13 5Name: keepassx
e334b5b1
JR
6Version: 2.0
7Release: 0.%{pre}.%{rel}
545b64ca
JB
8License: GPL v2+
9Group: X11/Applications
e334b5b1 10#Source0: http://downloads.sourceforge.net/keepassx/keepassx-%{version}.tar.gz
172c6aad 11Source0: http://www.keepassx.org/dev/attachments/download/115/%{name}-%{version}-%{pre}.tar.gz
a8dc1267 12# Source0-md5: 95114e6719d12eb9a1e3ac618b7bd275
28c3672f 13Patch0: git.patch
545b64ca 14URL: http://keepassx.sourceforge.net/
28c3672f 15BuildRequires: Qt5Concurrent-devel >= 5.2.0
172c6aad 16BuildRequires: Qt5Core-devel >= 5.2.0
28c3672f 17BuildRequires: Qt5Test-devel >= 5.2.0
172c6aad 18BuildRequires: Qt5Widgets-devel >= 5.2.0
28c3672f
JR
19BuildRequires: Qt5X11Extras-devel >= 5.2.0
20BuildRequires: cmake >= 2.8.12
dddba08b 21BuildRequires: libgcrypt-devel >= 1.6
28c3672f
JR
22BuildRequires: qt5-build >= 5.2.0
23BuildRequires: qt5-linguist >= 5.2.0
24BuildRequires: qt5-qmake >= 5.2.0
172c6aad 25BuildRequires: rpmbuild(find_lang) >= 1.37
046632b4 26BuildRequires: rpmbuild(macros) >= 1.230
dddba08b
JR
27BuildRequires: xorg-lib-libX11-devel
28BuildRequires: xorg-lib-libXext-devel
ac3eab8f 29BuildRequires: xorg-lib-libXtst-devel
dddba08b 30BuildRequires: zlib-devel
c638693c
ER
31Requires: desktop-file-utils
32Requires: hicolor-icon-theme
33Requires: shared-mime-info
e902ed13 34Obsoletes: KeePassX
046632b4 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
8a4f5eb1 38KeePassX is a free/open-source password manager or safe which helps
39you to manage your passwords in a secure way. You can put all your
40passwords in one database, which is locked with one master key or a
41key-disk. So you only have to remember one single master password or
42insert the key-disk to unlock the whole database. The databases are
43encrypted using the best and most secure encryption algorithms
44currently known (AES and Twofish).
046632b4 45
7870ed46
JR
46%description -l pl.UTF-8
47KeePassX to darmowy i mający otwarte źródła zarządca do przechowywania
48haseł, który pozwala na zarządzanie hasłami w bardzo bezpieczny
49sposób. Pozwala umieścić wszystkie swoje hasła w jednej bazie, która
50jest zabezpieczona poprzez jedno bardzo trudne hasło albo dysk z
51kluczem. Wystarczy więc zapamiętać jedno trudne hasło lub umieścić
52dysk z kluczem aby odblokować całą bazę z kluczami. Baza jest
545b64ca 53zaszyfrowana najlepszymi i najbardziej bezpiecznymi algorytmami
7870ed46 54szyfrowania 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
61install -d build
62cd build
63%cmake \
e902ed13 64 ..
e334b5b1 65%{__make}
194bc162 66
12fc2b00 67%install
046632b4 68rm -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
80rm -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
This page took 0.136797 seconds and 4 git commands to generate.