]> git.pld-linux.org Git - packages/QtKeychain.git/blame - QtKeychain.spec
- updated to 0.9.1
[packages/QtKeychain.git] / QtKeychain.spec
CommitLineData
2e1a2913
ER
1#
2# Conditional build:
65e353b0
JB
3%bcond_without qt4 # Qt4 library
4%bcond_without qt5 # Qt5 library
2e1a2913 5
8f55f1bc 6Summary: Qt API to store passwords and other secret data securely
65e353b0 7Summary(pl.UTF-8): API Qt do bezpiecznego przechowywania haseł i innych tajnych danych
8f55f1bc 8Name: QtKeychain
65e353b0 9Version: 0.9.1
5498a8aa 10Release: 1
8f55f1bc
LM
11License: Modified BSD License
12Group: Libraries
65e353b0 13#Source0Download: https://github.com/frankosterfeld/qtkeychain/releases
fbb6061a 14Source0: https://github.com/frankosterfeld/qtkeychain/archive/v%{version}/%{name}-%{version}.tar.gz
65e353b0
JB
15# Source0-md5: e6921de6f256259784f2a9edd1eeb8f5
16Patch0: %{name}-qt4.patch
07788830 17URL: https://github.com/frankosterfeld/qtkeychain
65e353b0
JB
18BuildRequires: cmake >= 2.8.11
19BuildRequires: libsecret-devel
8f55f1bc 20BuildRequires: libstdc++-devel
f3986110 21BuildRequires: rpmbuild(find_lang) >= 1.37
65e353b0 22BuildRequires: rpmbuild(macros) >= 1.605
2e1a2913 23%if %{with qt4}
65e353b0
JB
24BuildRequires: QtCore-devel >= 4
25BuildRequires: QtDBus-devel >= 4
26BuildRequires: qt4-build >= 4
27BuildRequires: qt4-linguist >= 4
28BuildRequires: qt4-qmake >= 4
2e1a2913
ER
29%endif
30%if %{with qt5}
65e353b0
JB
31BuildRequires: Qt5Core-devel >= 5
32BuildRequires: Qt5DBus-devel >= 5
33BuildRequires: qt5-build >= 5
34BuildRequires: qt5-linguist >= 5
35BuildRequires: qt5-qmake >= 5
2e1a2913 36%endif
65e353b0 37Requires: QtKeychain-common = %{version}-%{release}
8f55f1bc
LM
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
8f55f1bc 40%description
07788830 41QtKeychain a Qt API to store passwords and other secret data securely.
d72e11a6 42
8f55f1bc
LM
43How the data is stored depends on the platform:
44- Mac OS X: Passwords are stored in the OS X Keychain.
45- Linux/Unix: If running, GNOME Keyring is used, otherwise qtkeychain
46 tries to use KWallet (via D-Bus), if available.
47- Windows: Windows does not provide a service for secure storage.
48 QtKeychain uses the Windows API function
49
65e353b0
JB
50%description -l pl.UTF-8
51API Qt do bezpiecznego przechowywania haseł i innych tajnych danych.
52
53Sposób przechowywania danych zależy od platformy:
54- Mac OS X: hasła są przechowywanie poprzez usługę OS X Keychain
55- Linux/Unix: używany jest GNOME Keyring jeśli jest uruchomiony,
56 w przeciwnym wypadku używany jest KWallet (przez DBus), o ile jest
57 dostępny
58- Windows: system nie udostępnia usługi do bezpiecznego przechowywania
59 danych; QtKeychain używa funkcji Windows API
60
8f55f1bc 61%package devel
8f55f1bc 62Summary: Development files for QtKeychain
65e353b0 63Summary(pl.UTF-8): Pliki programistyczne biblioteki QtKeychain
8f55f1bc
LM
64Group: Development/Libraries
65Requires: %{name} = %{version}-%{release}
8f55f1bc
LM
66
67%description devel
65e353b0
JB
68This package contains the header files for developing applications
69that use QtKeychain.
70
71%description devel -l pl.UTF-8
72Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
73wykorzystujących bibliotekę QtKeychain.
74
75%package common
76Summary: Common data for QtKeychain libraries
77Summary(pl.UTF-8): Wspólne dane dla bibliotek QtKeychain
78Group: Libraries
79Conflicts: QtKeychain < 0.9.1-1
80
81%description common
82Common data for QtKeychain libraries (both Qt 4 and Qt 5).
83
84%description common -l pl.UTF-8
85Wspólne dane dla bibliotek QtKeychain (zarówno dla Qt 4, jak i Qt 5).
8f55f1bc 86
2e1a2913 87%package -n Qt5Keychain
65e353b0
JB
88Summary: Qt 5 API to store passwords and other secret data securely
89Summary(pl.UTF-8): API Qt 5 do bezpiecznego przechowywania haseł i innych tajnych danych
2e1a2913 90Group: Libraries
65e353b0 91Requires: QtKeychain-common = %{version}-%{release}
2e1a2913
ER
92
93%description -n Qt5Keychain
94QtKeychain a Qt API to store passwords and other secret data securely.
95
96How the data is stored depends on the platform:
97- Mac OS X: Passwords are stored in the OS X Keychain.
98- Linux/Unix: If running, GNOME Keyring is used, otherwise qtkeychain
99 tries to use KWallet (via D-Bus), if available.
100- Windows: Windows does not provide a service for secure storage.
101 QtKeychain uses the Windows API function
102
65e353b0
JB
103%description -n Qt5Keychain -l pl.UTF-8
104API Qt do bezpiecznego przechowywania haseł i innych tajnych danych.
105
106Sposób przechowywania danych zależy od platformy:
107- Mac OS X: hasła są przechowywanie poprzez usługę OS X Keychain
108- Linux/Unix: używany jest GNOME Keyring jeśli jest uruchomiony,
109 w przeciwnym wypadku używany jest KWallet (przez DBus), o ile jest
110 dostępny
111- Windows: system nie udostępnia usługi do bezpiecznego przechowywania
112 danych; QtKeychain używa funkcji Windows API
113
2e1a2913 114%package -n Qt5Keychain-devel
65e353b0
JB
115Summary: Development files for Qt5Keychain
116Summary(pl.UTF-8): Pliki programistyczne biblioteki Qt5Keychain
2e1a2913
ER
117Group: Development/Libraries
118Requires: Qt5Keychain = %{version}-%{release}
2e1a2913
ER
119
120%description -n Qt5Keychain-devel
65e353b0
JB
121This package contains the header files for developing applications
122that use Qt5Keychain.
123
124%description -n Qt5Keychain-devel -l pl.UTF-8
125Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
126wykorzystujących bibliotekę Qt5Keychain.
2e1a2913 127
8f55f1bc 128%prep
fbb6061a 129%setup -q -n qtkeychain-%{version}
5498a8aa 130%patch0 -p1
8f55f1bc
LM
131
132%build
2e1a2913
ER
133%if %{with qt4}
134install -d build-qt4
135cd build-qt4
65e353b0
JB
136%cmake .. \
137 -DBUILD_WITH_QT4:BOOL=ON \
138 -DECM_MKSPECS_INSTALL_DIR=%{_datadir}/qt4/mkspecs/modules
139
8f55f1bc 140%{__make}
2e1a2913
ER
141cd ..
142%endif
143
144%if %{with qt5}
145install -d build-qt5
146cd build-qt5
65e353b0 147%cmake .. \
5498a8aa 148 -DBUILD_WITH_QT4:BOOL=OFF \
65e353b0 149 -DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules
2e1a2913
ER
150%{__make}
151%endif
8f55f1bc
LM
152
153%install
154rm -rf $RPM_BUILD_ROOT
65e353b0 155
2e1a2913
ER
156%if %{with qt4}
157%{__make} -C build-qt4 install \
07788830 158 DESTDIR=$RPM_BUILD_ROOT
2e1a2913
ER
159%endif
160
161%if %{with qt5}
162%{__make} -C build-qt5 install \
163 DESTDIR=$RPM_BUILD_ROOT
65e353b0 164%endif
2e1a2913
ER
165
166%find_lang qtkeychain --with-qm
d72e11a6 167
8f55f1bc
LM
168%clean
169rm -rf $RPM_BUILD_ROOT
170
171%post -p /sbin/ldconfig
07788830 172%postun -p /sbin/ldconfig
8f55f1bc 173
2e1a2913 174%if %{with qt4}
65e353b0 175%files
8f55f1bc 176%defattr(644,root,root,755)
8f55f1bc 177%attr(755,root,root) %{_libdir}/libqtkeychain.so.*.*.*
65e353b0 178%attr(755,root,root) %ghost %{_libdir}/libqtkeychain.so.1
8f55f1bc
LM
179
180%files devel
181%defattr(644,root,root,755)
65e353b0 182%attr(755,root,root) %{_libdir}/libqtkeychain.so
2e1a2913 183%{_includedir}/qtkeychain
2e1a2913 184%{_libdir}/cmake/QtKeychain
65e353b0 185%{_datadir}/qt4/mkspecs/modules/qt_QtKeychain.pri
2e1a2913
ER
186%endif
187
65e353b0
JB
188%files common -f qtkeychain.lang
189%defattr(644,root,root,755)
190%doc COPYING ChangeLog ReadMe.txt
191
2e1a2913
ER
192%if %{with qt5}
193%files -n Qt5Keychain
194%defattr(644,root,root,755)
65e353b0 195%doc COPYING ChangeLog ReadMe.txt
2e1a2913 196%attr(755,root,root) %{_libdir}/libqt5keychain.so.*.*.*
65e353b0 197%attr(755,root,root) %ghost %{_libdir}/libqt5keychain.so.1
2e1a2913
ER
198
199%files -n Qt5Keychain-devel
200%defattr(644,root,root,755)
65e353b0 201%attr(755,root,root) %{_libdir}/libqt5keychain.so
2e1a2913 202%{_includedir}/qt5keychain
2e1a2913 203%{_libdir}/cmake/Qt5Keychain
65e353b0 204%{_libdir}/qt5/mkspecs/modules/qt_Qt5Keychain.pri
2e1a2913 205%endif
This page took 0.097737 seconds and 4 git commands to generate.