3 %bcond_without qt4 # build Qt4
4 %bcond_without qt5 # build Qt5
6 Summary: Qt API to store passwords and other secret data securely
10 License: Modified BSD License
12 Source0: https://github.com/frankosterfeld/qtkeychain/archive/v%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: e4e48d8742a9fd2664425d58be236424
14 URL: https://github.com/frankosterfeld/qtkeychain
16 BuildRequires: gettext-tools
17 BuildRequires: libstdc++-devel
19 BuildRequires: QtCore-devel
20 BuildRequires: qt4-build
21 BuildRequires: qt4-linguist
22 BuildRequires: qt4-qmake
25 BuildRequires: Qt5Core-devel
26 BuildRequires: qt5-build
27 BuildRequires: qt5-linguist
28 BuildRequires: qt5-qmake
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 QtKeychain a Qt API to store passwords and other secret data securely.
35 How the data is stored depends on the platform:
36 - Mac OS X: Passwords are stored in the OS X Keychain.
37 - Linux/Unix: If running, GNOME Keyring is used, otherwise qtkeychain
38 tries to use KWallet (via D-Bus), if available.
39 - Windows: Windows does not provide a service for secure storage.
40 QtKeychain uses the Windows API function
43 Summary: Development files for QtKeychain
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
50 This package contains libraries and header files for developing
51 applications that use QKeychain.
53 %package -n Qt5Keychain
54 Summary: Qt API to store passwords and other secret data securely
59 %description -n Qt5Keychain
60 QtKeychain a Qt API to store passwords and other secret data securely.
62 How the data is stored depends on the platform:
63 - Mac OS X: Passwords are stored in the OS X Keychain.
64 - Linux/Unix: If running, GNOME Keyring is used, otherwise qtkeychain
65 tries to use KWallet (via D-Bus), if available.
66 - Windows: Windows does not provide a service for secure storage.
67 QtKeychain uses the Windows API function
69 %package -n Qt5Keychain-devel
70 Summary: Development files for QtKeychain
71 Group: Development/Libraries
72 Requires: Qt5Keychain = %{version}-%{release}
76 %description -n Qt5Keychain-devel
77 This package contains libraries and header files for developing
78 applications that use QKeychain.
81 %setup -q -n qtkeychain-%{version}
98 -DBUILD_WITH_QT4=OFF \
104 rm -rf $RPM_BUILD_ROOT
106 %{__make} -C build-qt4 install \
107 DESTDIR=$RPM_BUILD_ROOT
109 %find_lang qtkeychain --with-qm
113 %{__make} -C build-qt5 install \
114 DESTDIR=$RPM_BUILD_ROOT
116 %find_lang qtkeychain --with-qm
120 rm -rf $RPM_BUILD_ROOT
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
126 %files -f qtkeychain.lang
127 %defattr(644,root,root,755)
128 %doc COPYING ReadMe.txt ChangeLog
129 %attr(755,root,root) %{_libdir}/libqtkeychain.so.*.*.*
130 %ghost %{_libdir}/libqtkeychain.so.0
133 %defattr(644,root,root,755)
134 %{_includedir}/qtkeychain
135 %{_libdir}/libqtkeychain.so
136 %{_libdir}/cmake/QtKeychain
140 %files -n Qt5Keychain
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libqt5keychain.so.*.*.*
143 %ghost %{_libdir}/libqt5keychain.so.0
145 %files -n Qt5Keychain-devel
146 %defattr(644,root,root,755)
147 %{_includedir}/qt5keychain
148 %{_libdir}/libqt5keychain.so
149 %{_libdir}/cmake/Qt5Keychain