]>
Commit | Line | Data |
---|---|---|
8f55f1bc | 1 | Summary: Qt API to store passwords and other secret data securely |
65e353b0 | 2 | Summary(pl.UTF-8): API Qt do bezpiecznego przechowywania haseł i innych tajnych danych |
8f55f1bc | 3 | Name: QtKeychain |
ddb34acb | 4 | # keep 0.11.x here for qt4 support; for newer versions see Qt5Keychain.spec, Qt6Keychain.spec |
e3bf21e2 | 5 | Version: 0.11.1 |
5498a8aa | 6 | Release: 1 |
8f55f1bc LM |
7 | License: Modified BSD License |
8 | Group: Libraries | |
65e353b0 | 9 | #Source0Download: https://github.com/frankosterfeld/qtkeychain/releases |
fbb6061a | 10 | Source0: https://github.com/frankosterfeld/qtkeychain/archive/v%{version}/%{name}-%{version}.tar.gz |
e3bf21e2 | 11 | # Source0-md5: 4c398ebd45e7753efa1951b0857e840d |
07788830 | 12 | URL: https://github.com/frankosterfeld/qtkeychain |
e3bf21e2 JB |
13 | BuildRequires: QtCore-devel >= 4 |
14 | BuildRequires: QtDBus-devel >= 4 | |
65e353b0 JB |
15 | BuildRequires: cmake >= 2.8.11 |
16 | BuildRequires: libsecret-devel | |
8f55f1bc | 17 | BuildRequires: libstdc++-devel |
e3bf21e2 | 18 | BuildRequires: pkgconfig |
f3986110 | 19 | BuildRequires: rpmbuild(find_lang) >= 1.37 |
65e353b0 | 20 | BuildRequires: rpmbuild(macros) >= 1.605 |
e3bf21e2 JB |
21 | BuildRequires: qt4-build >= 4 |
22 | BuildRequires: qt4-linguist >= 4 | |
23 | BuildRequires: qt4-qmake >= 4 | |
24 | Obsoletes: QtKeychain-common < 0.10 | |
8f55f1bc LM |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
8f55f1bc | 27 | %description |
07788830 | 28 | QtKeychain a Qt API to store passwords and other secret data securely. |
d72e11a6 | 29 | |
8f55f1bc LM |
30 | How the data is stored depends on the platform: |
31 | - Mac OS X: Passwords are stored in the OS X Keychain. | |
32 | - Linux/Unix: If running, GNOME Keyring is used, otherwise qtkeychain | |
33 | tries to use KWallet (via D-Bus), if available. | |
34 | - Windows: Windows does not provide a service for secure storage. | |
35 | QtKeychain uses the Windows API function | |
36 | ||
65e353b0 JB |
37 | %description -l pl.UTF-8 |
38 | API Qt do bezpiecznego przechowywania haseł i innych tajnych danych. | |
39 | ||
40 | Sposób przechowywania danych zależy od platformy: | |
41 | - Mac OS X: hasła są przechowywanie poprzez usługę OS X Keychain | |
42 | - Linux/Unix: używany jest GNOME Keyring jeśli jest uruchomiony, | |
43 | w przeciwnym wypadku używany jest KWallet (przez DBus), o ile jest | |
44 | dostępny | |
45 | - Windows: system nie udostępnia usługi do bezpiecznego przechowywania | |
46 | danych; QtKeychain używa funkcji Windows API | |
47 | ||
e3bf21e2 JB |
48 | %package devel |
49 | Summary: Development files for QtKeychain | |
50 | Summary(pl.UTF-8): Pliki programistyczne biblioteki QtKeychain | |
2e1a2913 | 51 | Group: Development/Libraries |
e3bf21e2 JB |
52 | Requires: %{name} = %{version}-%{release} |
53 | Requires: QtCore-devel >= 4 | |
2e1a2913 | 54 | |
e3bf21e2 | 55 | %description devel |
65e353b0 | 56 | This package contains the header files for developing applications |
e3bf21e2 | 57 | that use QtKeychain. |
65e353b0 | 58 | |
e3bf21e2 | 59 | %description devel -l pl.UTF-8 |
65e353b0 | 60 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji |
e3bf21e2 | 61 | wykorzystujących bibliotekę QtKeychain. |
2e1a2913 | 62 | |
8f55f1bc | 63 | %prep |
fbb6061a | 64 | %setup -q -n qtkeychain-%{version} |
8f55f1bc LM |
65 | |
66 | %build | |
e3bf21e2 JB |
67 | install -d build-qt4 |
68 | cd build-qt4 | |
65e353b0 | 69 | %cmake .. \ |
e3bf21e2 JB |
70 | -DBUILD_WITH_QT4:BOOL=ON \ |
71 | -DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt4/mkspecs/modules | |
2e1a2913 | 72 | %{__make} |
8f55f1bc LM |
73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
65e353b0 | 76 | |
e3bf21e2 | 77 | %{__make} -C build-qt4 install \ |
2e1a2913 ER |
78 | DESTDIR=$RPM_BUILD_ROOT |
79 | ||
80 | %find_lang qtkeychain --with-qm | |
d72e11a6 | 81 | |
8f55f1bc LM |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
e3bf21e2 JB |
85 | %post -p /sbin/ldconfig |
86 | %postun -p /sbin/ldconfig | |
65e353b0 | 87 | |
e3bf21e2 | 88 | %files -f qtkeychain.lang |
2e1a2913 | 89 | %defattr(644,root,root,755) |
e3bf21e2 JB |
90 | %doc COPYING ChangeLog ReadMe.txt |
91 | %attr(755,root,root) %{_libdir}/libqtkeychain.so.*.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libqtkeychain.so.1 | |
93 | %dir %{_datadir}/qtkeychain | |
94 | %dir %{_datadir}/qtkeychain/translations | |
2e1a2913 | 95 | |
e3bf21e2 | 96 | %files devel |
2e1a2913 | 97 | %defattr(644,root,root,755) |
e3bf21e2 JB |
98 | %attr(755,root,root) %{_libdir}/libqtkeychain.so |
99 | %{_includedir}/qtkeychain | |
100 | %{_libdir}/cmake/QtKeychain | |
101 | %{_libdir}/qt4/mkspecs/modules/qt_QtKeychain.pri |