]> git.pld-linux.org Git - packages/QtKeychain.git/blame - QtKeychain.spec
- note on qt5/6 versions
[packages/QtKeychain.git] / QtKeychain.spec
CommitLineData
8f55f1bc 1Summary: Qt API to store passwords and other secret data securely
65e353b0 2Summary(pl.UTF-8): API Qt do bezpiecznego przechowywania haseł i innych tajnych danych
8f55f1bc 3Name: QtKeychain
ddb34acb 4# keep 0.11.x here for qt4 support; for newer versions see Qt5Keychain.spec, Qt6Keychain.spec
e3bf21e2 5Version: 0.11.1
5498a8aa 6Release: 1
8f55f1bc
LM
7License: Modified BSD License
8Group: Libraries
65e353b0 9#Source0Download: https://github.com/frankosterfeld/qtkeychain/releases
fbb6061a 10Source0: https://github.com/frankosterfeld/qtkeychain/archive/v%{version}/%{name}-%{version}.tar.gz
e3bf21e2 11# Source0-md5: 4c398ebd45e7753efa1951b0857e840d
07788830 12URL: https://github.com/frankosterfeld/qtkeychain
e3bf21e2
JB
13BuildRequires: QtCore-devel >= 4
14BuildRequires: QtDBus-devel >= 4
65e353b0
JB
15BuildRequires: cmake >= 2.8.11
16BuildRequires: libsecret-devel
8f55f1bc 17BuildRequires: libstdc++-devel
e3bf21e2 18BuildRequires: pkgconfig
f3986110 19BuildRequires: rpmbuild(find_lang) >= 1.37
65e353b0 20BuildRequires: rpmbuild(macros) >= 1.605
e3bf21e2
JB
21BuildRequires: qt4-build >= 4
22BuildRequires: qt4-linguist >= 4
23BuildRequires: qt4-qmake >= 4
24Obsoletes: QtKeychain-common < 0.10
8f55f1bc
LM
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
8f55f1bc 27%description
07788830 28QtKeychain a Qt API to store passwords and other secret data securely.
d72e11a6 29
8f55f1bc
LM
30How 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
38API Qt do bezpiecznego przechowywania haseł i innych tajnych danych.
39
40Sposó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
49Summary: Development files for QtKeychain
50Summary(pl.UTF-8): Pliki programistyczne biblioteki QtKeychain
2e1a2913 51Group: Development/Libraries
e3bf21e2
JB
52Requires: %{name} = %{version}-%{release}
53Requires: QtCore-devel >= 4
2e1a2913 54
e3bf21e2 55%description devel
65e353b0 56This package contains the header files for developing applications
e3bf21e2 57that use QtKeychain.
65e353b0 58
e3bf21e2 59%description devel -l pl.UTF-8
65e353b0 60Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
e3bf21e2 61wykorzystujących bibliotekę QtKeychain.
2e1a2913 62
8f55f1bc 63%prep
fbb6061a 64%setup -q -n qtkeychain-%{version}
8f55f1bc
LM
65
66%build
e3bf21e2
JB
67install -d build-qt4
68cd 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
75rm -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
83rm -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
This page took 0.103508 seconds and 4 git commands to generate.